By Andre on Wednesday, 28 February 2018
Posted in General Issues
Likes 0
Views 613
Votes 0
Hi Team,

I have recently upgraded to Joomla 3.8.5. and the last version of EasyArticle.
First strange thing is this error message: Attachment E.Article_error.tiff

Now I encounter a strange effect.

Neither in articles nor custom modules, I am able to maintain code e.g. like Google CSE code with the TinyMCE or the CodeMirror.

The code would be something like this:
<script>
(function() {
var cx = 'partner-pub-xxxxx:yyyyy';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
</script>
<gcse:searchbox></gcse:searchbox>

According to my memory, I used to switch to CodeMirror and then just stick in the code….and it worked.

Now, the editor always looks the same, no matter what I select in the "global configuration".

I have tried to stick the code into:
- module content / article content
- tools-->Source code
- insert/edit code sample.

In all cases, the front-end only shows the code and doesn't execute the code.

For one article, I could switch to an old version, which at least shows the created object, but I cannot inspect the code with the Editors. There are "there" but not visible anymore.

Modules don't have a version (I guess), thus I could not roll-back.

So, where is the problem?

Is this related to the new Joomla 3.8.5. version? I made some research via Google, but did find anything suitable.

Do I need to adjust some settings in EasyArticles to make things happen?

This seems to be something of general interest, thus you may publish this request in public, if my license details are not visible.


Cheers
Hi Andre,

Kindly find my response for your inquiries below:
First strange thing is this error message: Attachment E.Article_error.tiff

You should download the new launcher installer from your dashboard here https://stackideas.com/dashboard/ then upload this launcher installer through your Joomla backend installer page.

If the issue still persists, can you update your correct Joomla backend and FTP access at your first post so we can better have a check?

According to my memory, I used to switch to CodeMirror and then just stick in the code….and it worked.
Now, the editor always looks the same, no matter what I select in the "global configuration".

I'm not so sure if this is related with EasyArticle, perhaps,Is it possible for you to provide us with the back end and FTP access to your site to check on this issue?

You can add the information needed by edit your first post in the Details section or you can just include your site's access once at http://stackideas.com/dashboard/site rather than needing to keep adding them in your replies
·
Wednesday, 28 February 2018 12:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Fadhli,

Thanx for the quick response.

1. I re-installed the EasyArticle. Now the dashboard becomes visible.

2. For the topic "execution of Javascript" I will prepare a test case and admin user.

Kind regards
Andre
·
Wednesday, 28 February 2018 17:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Andre,

1. I re-installed the EasyArticle. Now the dashboard becomes visible.

Great!

2. For the topic "execution of Javascript" I will prepare a test case and admin user.

Sure, we will take a look of the issue if there is related with our component
·
Wednesday, 28 February 2018 19:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Fahdli,

I have recently upgraded to Joomla 3.8.5. and the last version of EasyArticle.
I have to come back to the problem with Javascript code in articles or modules.

As an example, I would point to GoogleCSE code in a module.
Neither in articles nor custom modules, I am able to maintain code e.g. like Google CSE code with the TinyMCE or the CodeMirror.

The code would be something like this:
<script>
(function() {
var cx = 'partner-pub-xxxxxxx';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
</script>
<gcse:search></gcse:search>

I use the "toggle button" in TinyMCE-editor, to enter the script.
After saving, the result looks like this:
<script>// <![CDATA[
(function() {
var cx = 'partner-pub-xxxxxx';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
// ]]></script>

It means that the code has been "filtered" or "altered" by the editor. The code is now only treated as a text.

--> This didn't happen before the upgrade . I could stick code into a module and it was just saved.

I have checked the settings for the editor plugin:
- TinyMCE: Joomla text filtering is ON
- The text filtering is set to "no filtering" for the superuser.

When I access modules with existing functional scripts on the website, the code mirror doesn't show me the obviously working code. The code is stripped from display.

What is the reason of this behaviour?
Are there some settings in "EasyArticle" to be altered?

Kind regards
Andre
·
Tuesday, 17 April 2018 01:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Andre,

Regarding the issue, as you said previously:
2. For the topic "execution of Javascript" I will prepare a test case and admin user.

Can you provide us with your backend access and FTP access to your site? as I still unsure what is the issue actually
·
Tuesday, 17 April 2018 13:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Fahdli,

While preparing the test case for you, I have found the solution myself.

The problem was in the TinyMCE_plugin. Each set has its own switch for Joomla filtering.
Did't see that the first time.

So when the settings are ALL on "Joomla text filter", the removal of Javascript is not executed for a superuser.

We can close this call.

Kind regards
Andre
·
Friday, 20 April 2018 19:04
·
0 Likes
·
0 Votes
·
0 Comments
·
I see, thanks for the update Andre

Just for your information, I have locked and marked this thread as resolved to avoid confusions in the future. Please start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiries.

Thanks for understanding and have a nice day ahead
·
Friday, 20 April 2018 19:25
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post