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.

#103256 Code Editor hanging when there is PHP defined in the code

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 ramblerswebs on Friday, 28 February 2020 12:27 GMT

ramblerswebs
One of our sites has a problem when you go into the Code Editor view. The code editor appears to hang.
The case seems to occur when the article has php code defined.
So you edit the article.
The PHP code is displayed as an ICON, so you click the Code View tab and the system hangs.
Looking at Firefox console you also get the error message below

You seem to be able to click on the Editor tab and then the Code tab again and it then works
Article without PHP seem okay

Chris
JCE 2.8.6 Pro, latest versions of Joomla and all extensions

ERROR MSG
TypeError: node.getAttribute is not a function 2 index.php:9:12920
nodeChanged https://www.stokeandnewcastleramblers.org.uk/administrator/index.php?option=com_jce&task=editor.pack&context=22&50a4186199b82264d629824f6479a721=1&ff85c523d851eb6bb21256cb6220ef5d:9
nodeChanged https://www.stokeandnewcastleramblers.org.uk/administrator/index.php?option=com_jce&task=editor.pack&context=22&50a4186199b82264d629824f6479a721=1&ff85c523d851eb6bb21256cb6220ef5d:9
bindNativeEvents https://www.stokeandnewcastleramblers.org.uk/administrator/index.php?option=com_jce&task=editor.pack&context=22&50a4186199b82264d629824f6479a721=1&ff85c523d851eb6bb21256cb6220ef5d:9
dispatch https://www.stokeandnewcastleramblers.org.uk/administrator/index.php?option=com_jce&task=editor.pack&context=22&50a4186199b82264d629824f6479a721=1&ff85c523d851eb6bb21256cb6220ef5d:1
eventHandler https://www.stokeandnewcastleramblers.org.uk/administrator/index.php?option=com_jce&task=editor.pack&context=22&50a4186199b82264d629824f6479a721=1&ff85c523d851eb6bb21256cb6220ef5d:9
executeHandlers https://www.stokeandnewcastleramblers.org.uk/administrator/index.php?option=com_jce&task=editor.pack&context=22&50a4186199b82264d629824f6479a721=1&ff85c523d851eb6bb21256cb6220ef5d:3
defaultNativeHandler https://www.stokeandnewcastleramblers.org.uk/administrator/index.php?option=com_jce&task=editor.pack&context=22&50a4186199b82264d629824f6479a721=1&ff85c523d851eb6bb21256cb6220ef5d:3
.

Ryan
This is working in my very simple test, but perhaps more complicated code is causing a parsing error, result in the issue you are seeing.

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.

ramblerswebs
I have sent you log in details

Ryan
I have fixed this on your site with an install of JCE Pro 2.8.7 RC1 - https://www.joomlacontenteditor.net/downloads/editor/pro/development

Ryan Demmer

Lead Developer / CEO / CTO

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

ramblerswebs
Ryan
thanks for that.
I have updated the site to 2.8.7 that was just released. Is that okay?

Unfortunately I have found that when you go in and click Code the first time it still hangs.

But if you then click Editor and then go back to Code it works the second time.

Ryan
Please try JCE Pro 2.8.8 Beta 1 - https://www.joomlacontenteditor.net/downloads/editor/pro/development/jce-pro-2-8-8-dev

Ryan Demmer

Lead Developer / CEO / CTO

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

ramblerswebs
Ryan
great - that worked for me