You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#112618 JCE causing nginx error on one of our servers

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Ryan on Wednesday, 14 December 2022 17:15 GMT

cpaschen
We're running Joomla 3.10.11 with JCE 2.9.32 with a mixture of PHP7 and PHP8 on various sites running on an Ubuntu Linode server with PLESK (Obsidian) management. There was a recent update to the PLESK system and it caused all of the Joomla 3 sites on this server that have JCE installed/enabled to break. The article editor toolbar has dissapeared on all the sites, as well as the content editing area. Additionally, when trying to add the intro/full image, clicking the SELECT button resulted in a window with no folder or files or details appearing. Changing the global editor to TinyMCE (or any other core editor) allowed us to edit content, but the image select options were still broken. We disabled all JCE items (component, package, plugins) and there was no change. Once we uninstalled all JCE files then we were finally able to select images again. Re-installing JCE and enabling it, and setting the global editor to JCE resulted in the image select working properly, and the edit area appearing again; however, there is no editing button bar at the top of the content editing area, and no options to change to code editor, etc. I've checked the default profile that we are using appears to be set-up correctly (as default after removing and re-installing), and all buttons appear in the Current Editor Layout area. After spending quite a bit of time trying various options in the profile configurations, we've not been able to get JCE working properly again. Yet TinyMCE is working without a problem. Initially, before uninstalling and re-installing JCE we were getting these errors in our server logs whenever we would try to edit an article and select an image:

2022-12-13 06:21:13	
    Access	
    63.228.99.999 (MY LOCAL IP ADDRESS)	
    200	
    GET /administrator/index.php?option=com_jce&task=plugin.loadlanguages&lang=en&plugin=browser&standalone=1&context=22&15f462eea0ca946548e59238cbe7080b=1 HTTP/1.0	https://MYDOMAIN/administrator/index.php?option=com_jce&task=plugin.display&element=jform_images_image_intro&mediatype=images&converted=1&context=22&plugin=browser&standalone=1&15f462eea0ca946548e59238cbe7080b=1&client=1&fieldid=jform_images_image_intro&ismoo=0&folder=	
    Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0	
    3.68 K	
    Apache SSL/TLS access
    
    2022-12-13 06:21:13	
    Error	
    63.228.99.999 (MY LOCAL IP ADDRESS)	
    502	
    GET /components/com_jce/editor/tiny_mce/plugins/browser/css/browser.min.css?363878d4dc65b6f2a6ef4aa6bd94c6a4 HTTP/2.0	
    https://MYDOMAIN/administrator/index.php?option=com_jce&task=plugin.display&element=jform_images_image_intro&mediatype=images&converted=1&context=22&plugin=browser&standalone=1&15f462eea0ca946548e59238cbe7080b=1&client=1&fieldid=jform_images_image_intro&ismoo=0&folder=	Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0	
    150 	
    nginx SSL/TLS access
    
    2022-12-13 06:21:13	
    Error	
    63.228.99.999 (MY LOCAL IP ADDRESS)	
    502	
    GET /components/com_jce/editor/tiny_mce/plugins/browser/js/popup.min.js?f8f9cb75d3dc6e99d4554bdeb96849ee HTTP/2.0	
    https://MYDOMAIN/administrator/index.php?option=com_jce&task=plugin.display&element=jform_images_image_intro&mediatype=images&converted=1&context=22&plugin=browser&standalone=1&15f462eea0ca946548e59238cbe7080b=1&client=1&fieldid=jform_images_image_intro&ismoo=0&folder=	Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0	
    150 	
    nginx SSL/TLS access
    
    2022-12-13 06:21:13	
    Error	
    63.228.99.999 (MY LOCAL IP ADDRESS)	
    502	
    GET /components/com_jce/editor/tiny_mce/plugins/browser/js/browser.js?d2b6d1d9821167cecdce5b93948a45e9 HTTP/2.0	
    https://MYDOMAIN/administrator/index.php?option=com_jce&task=plugin.display&element=jform_images_image_intro&mediatype=images&converted=1&context=22&plugin=browser&standalone=1&15f462eea0ca946548e59238cbe7080b=1&client=1&fieldid=jform_images_image_intro&ismoo=0&folder=	Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0	150 	nginx SSL/TLS access
    
    2022-12-13 06:21:13	
    Error	
    63.228.99.999 (MY LOCAL IP ADDRESS)	
    27342#0: *1962880 connect() failed (111: Connection refused) while connecting to upstream				
    nginx error
    
    2022-12-13 06:21:13	
    Error	
    63.228.99.999 (MY LOCAL IP ADDRESS)	
    27342#0: *1962880 connect() failed (111: Connection refused) while connecting to upstream				
    nginx error
    
    2022-12-13 06:21:13	
    Error	
    63.228.99.999 (MY LOCAL IP ADDRESS)	
    27342#0: *1962880 connect() failed (111: Connection refused) while connecting to upstream				
    nginx error
    
    2022-12-13 06:21:14	
    Access	
    63.228.99.999 (MY LOCAL IP ADDRESS)	
    200	
    GET /components/com_jce/editor/libraries/fonts/wfeditor.woff HTTP/1.0	
    https://MYDOMAIN/components/com_jce/editor/libraries/css/plugin.min.css?6bdb53c47cde613b1f4e5d6e909815aa	Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0	
    632 	
    Apache SSL/TLS access
After uninstalling and re-installing we're still getting a JCE warning: 9544#0: *5192 FastCGI sent in stderr: "PHP message: PHP Warning: Attempt to assign property 'params' of non-object in /var/www/vhosts/bulanek.us/httpdocs/components/com_jce/editor/libraries/classes/application.php on line 354" while reading response header from upstream We have confirmed that all server settings and system versions are matching our other identical servers but we are unable to determine what is causing these errors and unable to get JCE to work properly. Any ideas?

Ryan
Please send me a login - https://www.joomlacontenteditor.net/contact/site-login

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Ryan
I think you are going to have to speak to your hosting company about this. The server is generating 502 errors when attempting to load standard assets (javascript and css files) for the JCE File Browser (when accessed from the JCE Control Panel). After this, the editor then fails to load when attempting to edit an article.

The server appears to be taking issue with any asset url with the word "browser" in it, generating the 502 error, and preventing the File Browser and Editor from loading.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

cpaschen
OK. I manage the server myself so I'll have to try and track that down.
Although we've already tried disabling all of the security systems and that didn't resolve the issue.
It's very strange that this only seems to be happening with extensions that work with the image/media selector and nothing else.
Also strange that it doesn't happen with the TinyMCE editor.

Thanks for the info you were able to provide.

Ryan
It's very strange that this only seems to be happening with extensions that work with the image/media selector and nothing else.

JCE enhances the Media selector with the JCE File Browser, which attempts to load those assets referred to above.

Also strange that it doesn't happen with the TinyMCE editor.

Tinymce is a different editor to JCE, and they do not share any javascript or css files. This issue appears to be triggered by the attempted loading of assets with the word "browser" in them, eg:

https://cdn.joomlacontenteditor.net/tmp/112618-jce-causing-nginx-error-on-one-of-our-servers.jpg

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.