johnstray / gs-blog

A simple and easy to use, yet powerful blog for GetSimple. With this plugin, you can create blog posts, sort posts by category, view posts in monthly archives, plus much more.
https://johnstray.com/gs-plugin/gs-blog/
GNU General Public License v3.0
6 stars 9 forks source link

i18n Navigation plugin bug preventing CKEditor from loading #159

Closed juluisz closed 3 years ago

juluisz commented 6 years ago

Uncaught TypeError: Cannot read property 'indexOf' of undefined at changeUrl (load.php?id=gs-blog&edit_post=b-czytajmy-naszym-dzieciom:169) at HTMLDocument. (load.php?id=gs-blog&edit_post=b-czytajmy-naszym-dzieciom:233) at n (jquery.min.js?v=1.7.1:2) at Object.fireWith (jquery.min.js?v=1.7.1:2) at Function.ready (jquery.min.js?v=1.7.1:2) at HTMLDocument.B (jquery.min.js?v=1.7.1:2)

johnstray commented 6 years ago

What versions of GSBlog and GetSimple does this error appear in?

juluisz commented 6 years ago

SERWER1 WORKING : GetSimple CMS – Version 3.3.2 Version 3.4.4 — Author: John Stray http://dnizambrowa.zambrowiacy.pl/test.php - wersion php

SERWER2 NO WORKING: Version 3.3.15 - GS Version 3.4.4 — Author: John Stray http://biblioteka.mokzambrow.pl/test.php - PHP WERSION

In serwer 2 i have 3-4 get simple diferent wersion and no working. i dont see CKDEDITOR in GSBlog CDEDITOR in normal post working.

johnstray commented 6 years ago

This is a JavaScript error, not related to PHP. I am unable to reproduce this error as yet (GS 3.3.13, GSBlog 3.4.4).

Could you please load the page where this error happens into your browser, then Right click -> View source, Copy and Paste into txt document and attach here. Thanks

juluisz commented 6 years ago

strona.txt przechwytywanie

Ithink is loading jquery 1.7.1 but in good page loading 1.8.1 ??????

johnstray commented 6 years ago

Ok, it looks like this issue is actually caused by another plugin that you have installed. The line in the code that the error is referring to is at the spot where there is a hook (allows functionality of other plugins). This other plugin is using that hook to inject some code to do its thing.

Can you please list all the plugins you have installed and I'll see if I can figure out which of the plugins is causing the issue.

juluisz commented 6 years ago

przechwytywanie

juluisz commented 6 years ago

I18N - when i deactivate this then i schow CKEDITOR

johnstray commented 6 years ago

I had a feeling that it would be 'i18n'. I'll have to do a bit of investigation into this to see if the error can be prevented somehow.

Marking this as a compatibility bug.

webservsol commented 5 years ago

Replace GetSimple CMS jQuery library with the latest 3.3.1 example

'jquery' => '3.3.1',

Found in the admin folder > assets.php

However you'll have another issue with i18n_navigation

Uncaught TypeError: $(...).size is not a function Yet I didn't find a solution although I replaced size with lengthbut this didn't solve the problem.

juluisz commented 5 years ago

I dont have this file: Found in the admin folder > assets.php

johnstray commented 3 years ago

For some strange reason, a javascript that was injected by the i18n Navigation plugin was looking for a html element with the post-id id attribute. I have made a fix by adding a hidden div with the id set to post-id so as to satisfy the needs of the script.