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 Online

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

#102048 Regular Labs sourcerer TAB image causes error

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 Thursday, 05 December 2019 14:31 GMT

andriusba
Hello.

I use Regular Labs extension Sourcerer for PHP insertion into article and it conflicts with JCE.

I use Sourcerer from the beginning of site building, but the issue came up just after some JCE upgrade, I can't remember exact version.

When code is inserted in backend using Sourcerer "Code" button, it displays arrow images as replacements for TAB symbol.


And in backend it works OK.
But when trying to access page from front-end, I get error "getimagesize(C:\wamp64\www\kt//kt/media/sourcerer/images/tab.png): failed to open stream: No such file or directory".

When correctly displayed in backend, image HTML is "<img src="https://www.joomlacontenteditor.net/kt/media/sourcerer/images/tab.png" alt="" />".

My JCE profile setting "File Directory Path" was set to custom and I tried to clear it, but it changed nothing.

Attachments

Ryan
Without seeing what code you are inserting with Sourcerer, it is difficult for me to assess this issue, but on the surface, I don't see how JCE is at fault here.

JCE is not involved in the rendering of the content in the front-end (when the article is displayed), that is done by the Joomla Article Manager, and in this case, Sourcerer.

If you create the content using the default Tinymce editor, or the No Editor option, do you have the same issue with the front-end display?

Ryan Demmer

Lead Developer / CEO / CTO

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

andriusba
When using TinyMCE it produces source as: & lt;img src="https://www.joomlacontenteditor.net/media/sourcerer/images/tab.png" /& gt; (with lt and gt instead of brackets).
And it doesn't break front-end.
But thanks for pointing out that JCE has nothing to do with front-end rendering, will look elsewhere.

Ryan
When code is inserted in backend using Sourcerer "Code" button, it displays arrow images as replacements for TAB symbol.


I get the same issue when using the Tinymce editor. I think this is one for RegularLabs support.

Ryan Demmer

Lead Developer / CEO / CTO

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