Page 1 of 1

Serendipity Error After Editing

Posted: Sun Jul 26, 2015 6:43 pm
by Mykel
I'm currently using serendipity 2.0.2 provided by my host.

After Installing it on my website and after editing everything(including the website name, descriptions and plugins), this was the message i got after loginning to my admin panel



 The Serendipity JavaScript- library could not be loaded. This can happen due to PHP or Plugin errors, or even a malformed browser cache. To check the exact error please open http://www.weafricarise.com/index.php?/plugin/admin/serendipity_editor.js
manually in your browser and check
for error messages.


And my website(http://www.weafricarise.com) refused to open...

it keeps saying "Remote Server or file not found".




Please I Need Your Help!

Re: Serendipity Error After Editing

Posted: Sun Jul 26, 2015 7:11 pm
by Timbalu
This are two different reasons, I assume.

You currently have a "white screen of death", caused by a fatal eror.
Please read the servers error.log or php error.log files. The error is noted in there. Ask you ISP if not having access.

The other thing which may cause to get this quoted message, are some other error messages placed into that mentioned file, which stops the system to work properly.

Re: Serendipity Error After Editing

Posted: Fri Jul 31, 2015 5:07 pm
by Mykel
@Timbalu please i don't know how to fix this error!, i've contacted my hosting provider and i was directed to the script developer.....please help me, i don't know anything about php/coding.!!



Please help me, i'm still getting this error on my website.(weafricarise.com)

Re: Serendipity Error After Editing

Posted: Sat Aug 01, 2015 11:11 am
by Timbalu
Hi

Now, this is something different again. A public open fatal error.
Fatal error: Uncaught --> Smarty: Plugin "multilingual_lang" not callable <-- thrown in /home/vol13_5/byethost14.com/b14_16462140/weafricarise.com/htdocs/bundled-libs/Smarty/libs/sysplugins/smarty_internal_templatebase.php on line 137
I assume you try to use the multilingual plugin. First disable this plugin in your Serendipity backend at /serendipity_admin.php, moving it into the 'hidden' called list box, which just disables the use. If you have access to your blogs frontend then, we now know your issues are related to this plugin only.

This plugin has a Smarty registration on Line 375, see here: https://github.com/s9y/additional_plugi ... l.php#L375
Please try to change this

Code: Select all

if ($serendipity['smarty']) {
    $serendipity['smarty']->register_modifier('multilingual_lang', array($this, 'strip_lang'));
}
to this instead

Code: Select all

if (is_object($serendipity['smarty'])) {
    $serendipity['smarty']->register_modifier('multilingual_lang', array($this, 'strip_langs'));
}
(see added is_object() and added missing 's' in strip_lang.

Does that help? I think there will be more issues using this plugin though!
(You might need to erase the Smarty (theme) compiles, before this change will work or show another error. This is in /templates_c/<YOUR THEME NAME>/*. Deleting the theme directory with all its content in here, will force a new compilaton translation of Smarty to PHP code and does not harm your installation.)

You could also give us some more information about anything to know about a custom use of Serendipity at all, differing from a plain simple install, the plugins you use and their order, etc.
Do you already use custom multilang calls in your template? How?

Re: Serendipity Error After Editing

Posted: Sun Oct 11, 2015 6:56 am
by chris_goe
FWIW, I had the same "The Serendipity JavaScript-library could not be loaded..." error when logging in into my s9y v2.0.2 installation today. I haven't seen this error before. The Firefox error console reported an error in serendipity_editor.js:329:54 -

Code: Select all

SyntaxError: missing ; before statement
but this file hasn't changed for quite a while. And I'm not using any multilingual plugin.

Deleting the browser cache did not help - but changing browsers did! I could not reproduce this in Google Chrome or in another Firefox browser profile. I suspect the NoScript plugin installed in my other browser profile to be culprit here.

Re: Serendipity Error After Editing

Posted: Sun Oct 11, 2015 9:09 am
by Timbalu
chris_goe wrote:I suspect the NoScript plugin installed in my other browser profile to be culprit here.
Since the backend needs Javascript to be allowed by browser, at least for all the smooth experiences, this does not wonder...! :) This is a trusted area. So you better set an exception for NoScript.

Re: Serendipity Error After Editing

Posted: Sun Oct 11, 2015 10:35 pm
by chris_goe
Yes, yes - of course! What I meant to say was "I suspect the NoScript plugin installed in my other browser profile to be culprit here - even though I added an exception for my blog." When I don't add the exception (i.e. JS is not allowed), I don't even get any error message.

Sorry, I just wanted to entice the OP to try with another browser (instance) and see if the error persists - not to cause confusion :-\

Re: Serendipity Error After Editing

Posted: Mon Oct 12, 2015 9:02 am
by Timbalu
Sad to hear this. I have NoScript in all my Browsers set with multiple S9y Blog experiences and all these exceptions worked well. I assume you must have another Browser Plugin which interferes here.

(The OPs issues were solved. He just did not give feedback!)

Edit: Make sure it is not based to a “Cross-Origin Request Blocked” and/or “Same Origin Policy” issue, which is something different!