Elxis CMS Forum

Support => Administration => Topic started by: armpouniotis on May 07, 2016, 15:10:16

Title: Could not fetch messages
Post by: armpouniotis on May 07, 2016, 15:10:16
Hi there !

I am using Orion 4.4, and in the Administration zone, when I am trying to read my new messages I get: "Could not fetch messages"

How can I fix it ?


Thank you in advance
Christos
Title: Re: Could not fetch messages
Post by: datahell on May 07, 2016, 18:00:41
If you made an update from 4.3 maybe the new database table (elx_messages) failed to be created. Or maybe you didn't updated all the files. Try to fetch the messages and then go see Elxis error.log to find out what is the problem. Copy-paste here the message from error.log.

Alternatively you can debug module admin messages like that:
Open this file:
modules/mod_adminmessages/inc/adminmessages.js
Go to line 77 and change this:
$('#amsgs_list').append('<li class="amsgs_error">Could not fetch messages</li>');
to this:
$('#amsgs_list').append('<li class="amsgs_error">'+errorThrown+'</li>');
Update the file, go to Elxis administration and click control+F5 to refresh browser's cache.
Try again to fetch messages.
What error message do you get now?
Title: Re: Could not fetch messages
Post by: armpouniotis on May 29, 2016, 23:39:21
hi there !

Now I get this error message: "Internal Server Error"

What should I do ?
Title: Re: Could not fetch messages
Post by: datahell on May 30, 2016, 14:28:48
See Elxis error log to find out what is the problem. Copy-paste here the related error message.
Title: Re: Could not fetch messages
Post by: armpouniotis on May 31, 2016, 22:14:14
Hi there !

there is no error in Elxis error log ! There is no error in my cPanel error log too !

But, there problem still continuous !

What should I do ?
Title: Re: Could not fetch messages
Post by: datahell on May 31, 2016, 23:04:47
Quote from: armpouniotis
What should I do ?
Call express service! Send me a personal message with user/pass to your elxis admin panel and ftp and I will fix the problem for you.
Title: Re: Could not fetch messages
Post by: armpouniotis on June 01, 2016, 16:27:33
hi there !

I have send you a message !

Waiting for your reply !
Title: Re: Could not fetch messages
Post by: datahell on June 01, 2016, 23:10:19
Problem fixed temporary for you.

I detected a possible bug in database PDO statement library. This issue affects more things than just the messenger and needs further investigation. I will check it in the next days and reply here with a final solution to the problem.
Title: Re: Could not fetch messages
Post by: armpouniotis on June 02, 2016, 14:53:24
ok thank you !
Title: Re: Could not fetch messages
Post by: datahell on June 04, 2016, 22:25:33
After an extended check I didn't found a bug in Elxis PDO statement library. I restored the original code at your site and check the module again and now it works without errors! Veeeeery strange! As it works on my local test site, on your site, and the code generates no errors under multiple test cases I consider this case as false alarm and the case is closed.
Title: Re: Could not fetch messages
Post by: webgift on June 05, 2016, 13:36:41
There are ghosts @armpouniotis on your Elxis installation! :D I can't give any other
explanation! hahaha!!
Title: Re: Could not fetch messages
Post by: armpouniotis on June 07, 2016, 15:52:47
In any case, maybe I didn't transfer correctly Elxis files via ftp....

thank you all !

Christos