- gopeter June 11, 2014 at 12:23 pm
I tried to run WordPress 3.9 and BBQ together on an HHVM + nginx Server. The theme works perfectly under Apache, but with HHVM, some widgets (like Social Widget or Slider) doesn’t display on the frontend.
Example: http://gopeter.de/transfer/bbq-on-hhvm.png
Do you know whats wrong? I think this incompatibility isn’t that huge since the entire backend etc works fine.
gopeter June 11, 2014 at 12:50 pmSome additional informations:
I played around in the /includes/widgets/widget-social.php file and noticed, that the $nice_options variable is empty.
echo ‘###’;
print_r($nice_options);
echo ‘###’;Returns: ######
Are there some troubles with globals?
Juanfra Aldasoro June 11, 2014 at 1:33 pmHello,
Thanks for writing.
I’m trying to visit the site you’ve sent us and I get: 504 Gateway Time-out – nginx/1.6.0
I’m sure these problems have to do with server configuration.
Best,
Juan.Juanfra Aldasoro June 11, 2014 at 1:42 pmWell, I don’t know how is that nginx handle global variables. Check if you get something with print_r($GLOBALS);
The problem must be there, and then there’s a server configuration issue.
Best,
Juangopeter June 11, 2014 at 2:04 pmThe `$GLOBALS` var is full of stuff (320.000 lines), but it seems that `nice_options` is empty but filled inside `wp_object_cache`. Should I attach the file?
gopeter June 11, 2014 at 2:07 pmNot anymore. Anyhow, `wp_object_cache` is an offical WP class: http://codex.wordpress.org/Class_Reference/WP_Object_Cache
Juanfra Aldasoro June 11, 2014 at 3:47 pmThanks for your response. Yes, I am aware it is an official WP class.
My point here is that PHP, with your configuration, is not taking the global variables. At least $nice_options which is the one taking the data to make some modules work/or not. Like the social widget, or the slider.
Did you perform any other test with global variables on that server?
Juan.
gopeter June 11, 2014 at 3:50 pmHi.
I just installed a new local virtual machine with HHVM + Apache and it works!
Now I wonder which nginx config does prevent global vars from working properly? I even tried the official nginx.conf from WordPress, but the global nice_options is always empty.Do you have some ideas?
gopeter June 11, 2014 at 4:42 pmStrange, but I figured it out: I just activated a standard theme and switched back to BBQ. Now it works.
Juanfra Aldasoro June 11, 2014 at 5:07 pmHi Peter,
It is quite strange actually. We are used to work over apache, so in general terms I’m afraid I don’t have too many ideas about this issue. I’m happy it is resolved, though.
Have a nice day,
Juan.
This topic is marked as resolved
Only the topic author can re-open this thread.