Issue using plugin with Nginx/Php-FPM but works with Apache/PHP
Issue using plugin with Nginx/Php-FPM but works with Apache/PHP
I'm using a Wordpress plugin called Ultimate Addons (https://codecanyon.net/item/ultimate-ad ... er/6892199). One of the pages within the plugin allows for uploads of icon files (.zip files). When using Nginx and PHP-FPM, the upload process just hangs. When using Apache and PHP, it's successful. I don't have any errors in php-fpm logs, nginx logs, or with WP_DEBUG. The upload process is dependent on a module ZipArchieve, which I can confirm is installed and working since it's required for another plugin which works fine and I've even got a web config page which reports it's installed and working.
I'm also very certain the issue is not permissions related. All files in my public_html dir are chown'ed to admin:admin (since I'm only using this one default user). I've also set all folder and file permissions to 775 and 664 respectively. I have SELinux turned off.
Operating system is Centos 7.
I'm not sure where else to go with this issue. Any help would be great.
btw, just for fun and for testing, I upgraded to PHP7 to see if the results would be different, but nope.
I'm also very certain the issue is not permissions related. All files in my public_html dir are chown'ed to admin:admin (since I'm only using this one default user). I've also set all folder and file permissions to 775 and 664 respectively. I have SELinux turned off.
Operating system is Centos 7.
I'm not sure where else to go with this issue. Any help would be great.
btw, just for fun and for testing, I upgraded to PHP7 to see if the results would be different, but nope.
Re: Issue using plugin with Nginx/Php-FPM but works with Apache/PHP
Without any errors we really can't help you.
When starting this again try opening Web Developer tool and see if the console reports a Javascript error.
Shouldn't have any effect on nginx / apache but it's worth a shot.
It's either a) it's using .htaccess somewhere and obviously nginx does not use this or b) the module is not installed for nginx.
If it's a) no errors other than "not found" would be produced.
When starting this again try opening Web Developer tool and see if the console reports a Javascript error.
Shouldn't have any effect on nginx / apache but it's worth a shot.
It's either a) it's using .htaccess somewhere and obviously nginx does not use this or b) the module is not installed for nginx.
If it's a) no errors other than "not found" would be produced.
Re: Issue using plugin with Nginx/Php-FPM but works with Apache/PHP
Ok I have a POST error, but I can't really interpret it well. I enabled debug logging for php-fpm but still don't see anything in the error log. Again there's nothing in Nginx error.log either for this site. Here's a copy paste from the console error in Google Chrome:

Code: Select all
POST http://www.practicaldentalassisting.com/wp-admin/admin-ajax.php 500 (Internal Server Error)send @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,plupload&ver=4.6:4ajax @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,plupload&ver=4.6:4$.SmileTrigger.icon_insert @ admin-media.js?ver=4.6:65dispatch @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,plupload&ver=4.6:3r.handle @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,plupload&ver=4.6:3trigger @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,plupload&ver=4.6:3a.event.trigger @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,plupload&ver=4.6:9(anonymous function) @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,plupload&ver=4.6:3each @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,plupload&ver=4.6:2each @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,plupload&ver=4.6:2trigger @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,plupload&ver=4.6:3$.SmileTrigger.media_new_insert @ admin-media.js?ver=4.6:34(anonymous function) @ admin-media.js?ver=4.6:25_ @ load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,unders…:254m @ load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,unders…:254f @ load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,unders…:254u.trigger @ load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,unders…:254_onModelEvent @ load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,unders…:254_ @ load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,unders…:254m @ load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,unders…:254f @ load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,unders…:254u.trigger @ load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,unders…:254clickSelect @ load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,unders…:335click @ load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,unders…:334dispatch @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,plupload&ver=4.6:3r.handle @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,plupload&ver=4.6:3

Re: Issue using plugin with Nginx/Php-FPM but works with Apache/PHP
It's a 500 error so it should be producing errors in the error log for that domain in nginx/apache. 500 errors are always reported in the error logs.
Re: Issue using plugin with Nginx/Php-FPM but works with Apache/PHP
you're absolutely right! And with an nginx restart, it started logging again. Here's the capture.
Code: Select all
2016/08/22 15:31:51 [error] 7013#7013: *1 FastCGI sent in stderr: "PHP message: PHP Warning: simplexml_load_string(): Entity: line 11: parser error : Entity 'raquo' not defined in /home/admin/web/practicaldentalassisting.com/public_html/wp-content/plugins/Ultimate_VC_Addons/modules/Ultimate_Icon_Manager.php on line 395
PHP message: PHP Warning: simplexml_load_string(): application/rss+xml" title="Practical Dental Assisting of Virginia Beach » in /home/admin/web/practicaldentalassisting.com/public_html/wp-content/plugins/Ultimate_VC_Addons/modules/Ultimate_Icon_Manager.php on line 395
PHP message: PHP Warning: simplexml_load_string(): ^ in /home/admin/web/practicaldentalassisting.com/public_html/wp-content/plugins/Ultimate_VC_Addons/modules/Ultimate_Icon_Manager.php on line 395
PHP message: PHP Warning: simplexml_load_string(): Entity: line 12: parser error : Entity 'raquo' not defined in /home/admin/web/practicaldentalassisting.com/public_html/wp-content/plugins/Ultimate_VC_Addons/modules/Ultimate_Icon_Manager.php on line 395
PHP message: PHP Warning: simplexml_load_string(): application/rss+xml" title="Practical Dental Assisting of Virginia Beach » in /home/admin/web/practicaldentalassisting.com/public_html/wp-content/plugins/Ultimate_VC_Addons/modules/Ultimate_Icon_Manager.php on line 395
PHP message: PHP Warning: simplexml_load_string(): ^ in /home/admin/web/practicaldentalassisting.com/public_html/wp-content/plugins/Ultimate_VC_Addons/modules/Ultimate_Icon_Manager.php on line 395
PHP message: PHP Warning: simplexml_load_string(): Entity: line 15: parser error : xmlParseEntityRef: no name in /home/admin/web/practicaldentalassisting.com/public_html/wp-content/plugins/Ultimate_VC_Addons/modules/Ultimate_Icon_Manager.php on line 395
PHP message: PHP Warning: simplexml_load_string(): ction(a,b,c){function d(a){
2016/08/22 15:31:51 [error] 7013#7013: *1 FastCGI sent in stderr: "/modules/Ultimate_Icon_Manager.php on line 395
PHP message: PHP Warning: simplexml_load_string(): Entity: line 15: parser error : EntityRef: expecting ';' in /home/admin/web/practicaldentalassisting.com/public_html/wp-content/plugins/Ultimate_VC_Addons/modules/Ultimate_Icon_Manager.php on line 395
PHP message: PHP Warning: simplexml_load_string(): "),g=f.getContext&&f.getContext("2d"),h=String.fromCharCode;return g&&g.fillText in /home/admin/web/practicaldentalassisting.com/public_html/wp-content/plugins/Ultimate_VC_Addons/modules/Ultimate_Icon_Manager.php on line 395
PHP message: PHP Warning: simplexml_load_string(): ^ in /home/admin/web/practicaldentalassisting.com/public_html/wp-content/plugins/Ultimate_VC_Addons/modules/Ultimate_Icon_Manager.php on line 395
PHP message: PHP Warning: simplexml_load_string(): Entity: line 15: parser error : xmlParseEntityRef: no name in /home/admin/web/practicaldentalassisting.com/public_html/wp-content/plugins/Ultimate_VC_Addons/modules/Ultimate_Icon_Manager.php on line 395
PHP message: PHP Warning: simplexml_load_string(): ty")},c.DOMReady=!1,c.readyCallback=function(){c.DOMReady=!0},c.supports.simple& in /home/admin/web/practicaldentalassisting.com/public_html/wp-content/plugins/Ultimate_VC_Addons/modules/Ultimate_Icon_Manager.php on line 395
PHP message: PHP Warning: simplexml_load_string(): ^ in /home/admin/web/practicaldentalassisting.com/public_html/wp-content/plugins/Ultimate_VC_Addons/modules/Ultimate_Icon_Manager.php on line 395
PHP message: PHP Warning: simplexml_load_string(): Entity: line 15: parser error : EntityRef: expecting ';' in /home/admin/web/practicaldentalassisting.com/public_html/wp-content/plugins/Ultimate_VC_Addons/modules/Ultimate_Icon_Manager.php on line 395
PHP message: PHP Warning
2016/08/22 15:31:51 [error] 7013#7013: *1 FastCGI sent in stderr: "/Ultimate_VC_Addons/modules/Ultimate_Icon_Manager.php on line 395
PHP message: PHP Warning: simplexml_load_string(): Entity: line 15: parser error : xmlParseEntityRef: no name in /home/admin/web/practicaldentalassisting.com/public_html/wp-content/plugins/Ultimate_VC_Addons/modules/Ultimate_Icon_Manager.php on line 395
PHP message: PHP Warning: simplexml_load_string(): nction(){c.DOMReady=!0},c.supports.simple&&c.supports.flag&&c.supports.unicode8& in /home/admin/web/practicaldentalassisting.com/public_html/wp-content/plugins/Ultimate_VC_Addons/modules/Ultimate_Icon_Manager.php on line 395
PHP message: PHP Warning: simplexml_load_string(): ^ in /home/admin/web/practicaldentalassisting.com/public_html/wp-content/plugins/Ultimate_VC_Addons/modules/Ultimate_Icon_Manager.php on line 395
PHP message: PHP Warning: simplexml_load_string(): Entity: line 15: parser error : EntityRef: expecting ';' in /home/admin/web/practicaldentalassisting.com/public_html/wp-content/plugins/Ultimate_VC_Addons/modules/Ultimate_Icon_Manager.php on line 395
PHP message: PHP Warning: simplexml_load_string(): 0},c.supports.simple&&c.supports.flag&&c.supports.unicode8&&c.supports.diversity in /home/admin/web/practicaldentalassisting.com/public_html/wp-content/plugins/Ultimate_VC_Addons/modules/Ultimate_Icon_Manager.php on line 395
PHP message: PHP Warning: simplexml_load_string(): ^ in /home/admin/web/practicaldentalassisting.com/public_html/wp-content/plugins/Ultimate_VC_Addons/modules/Ultimate_Icon_Manager.php on line 395
PHP message: PHP Warning: simplexml_load_string(): Entity: line 15: parser error : xmlParseEntityRef: no name in /home/admin/web/practicaldentalassisting.com/public_html/wp-content/plugins/Ultimate_VC_Addons/modules/Ultimate_Icon_Manager.php on line 395
2016/08/22 15:31:51 [error] 7013#7013: *1 FastCGI sent in stderr: "in/web/practicaldentalassisting.com/public_html/wp-content/plugins/Ultimate_VC_Addons/modules/Ultimate_Icon_Manager.php on line 395
PHP message: PHP Warning: simplexml_load_string(): Entity: line 15: parser error : EntityRef: expecting ';' in /home/admin/web/practicaldentalassisting.com/public_html/wp-content/plugins/Ultimate_VC_Addons/modules/Ultimate_Icon_Manager.php on line 395
PHP message: PHP Warning: simplexml_load_string(): Callback()})),f=c.source||{},f.concatemoji?e(f.concatemoji):f.wpemoji&&f.twemoji in /home/admin/web/practicaldentalassisting.com/public_html/wp-content/plugins/Ultimate_VC_Addons/modules/Ultimate_Icon_Manager.php on line 395
PHP message: PHP Warning: simplexml_load_string(): ^ in /home/admin/web/practicaldentalassisting.com/public_html/wp-content/plugins/Ultimate_VC_Addons/modules/Ultimate_Icon_Manager.php on line 395
PHP message: PHP Warning: simplexml_load_string(): Entity: line 15: parser error : xmlParseEntityRef: no name in /home/admin/web/practicaldentalassisting.com/public_html/wp-content/plugins/Ultimate_VC_Addons/modules/Ultimate_Icon_Manager.php on line 395
PHP message: PHP Warning: simplexml_load_string(): allback()})),f=c.source||{},f.concatemoji?e(f.concatemoji):f.wpemoji&&f.twemoji& in /home/admin/web/practicaldentalassisting.com/public_html/wp-content/plugins/Ultimate_VC_Addons/modules/Ultimate_Icon_Manager.php on line 395
PHP message: PHP Warning: simplexml_load_string(): ^ in /home/admin/web/practicaldentalassisting.com/public_html/wp-content/plugins/Ultimate_VC_Addons/modules/Ultimate_Icon_Manager.php on line 395
PHP message: PHP Warning: simplexml_load_string(): Entity: line 15: parser error : xmlParseEntityRef: no name in /home/admin/web/practicaldentalassisting.com/public_html/wp-content/plugins/Ultimate_VC_Addons/mod
2016/08/22 15:31:51 [error] 7013#7013: *1 FastCGI sent in stderr: "/Ultimate_VC_Addons/modules/Ultimate_Icon_Manager.php on line 395
PHP message: PHP Fatal error: Call to a member function attributes() on null in /home/admin/web/practicaldentalassisting.com/public_html/wp-content/plugins/Ultimate_VC_Addons/modules/Ultimate_Icon_Manager.php on line 396" while reading response header from upstream, client: 128.220.160.15, server: practicaldentalassisting.com, request: "POST /wp-admin/admin-ajax.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9002", host: "www.practicaldentalassisting.com", referrer: "http://www.practicaldentalassisting.com/wp-admin/admin.php?page=bsf-font-icon-manager"
Re: Issue using plugin with Nginx/Php-FPM but works with Apache/PHP
Looks like there's a problem with the plugin?
http://stackoverflow.com/a/6208803
Obviously not wise to directly edit a plugin but the answer is on Stack.
It may be that nginx is not processing an .xml file as xml (mime types)? Hard to tell basically.
raquo is a HTML entity.PHP Warning: simplexml_load_string(): Entity: line 11: parser error : Entity 'raquo' not defined in
http://stackoverflow.com/a/6208803
Obviously not wise to directly edit a plugin but the answer is on Stack.
It may be that nginx is not processing an .xml file as xml (mime types)? Hard to tell basically.