Pages not shown in Pagemanager

A place to report and discuss bugs - please mention CMSimple-version, server, platform and browser version
Tata
Posts: 2789
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Pages not shown in Pagemanager

Post by Tata » Thu Jan 18, 2018 10:27 am

I have exact copies both on localhost and on the server (http://plugins_171.cmsimple.sk).
On localhost runs PHP7.1.8 on the server PHP7.0.0.
The problem is:
1. On localhost the pagemanager shows empty window (no pages are visible) and the Calendar 1.4.8 returns
Warning: A non-numeric value encountered in /Users/msereday/webpages/plugins_171/plugins/calendar/includes/eventlist.php on line 84
Warning: A non-numeric value encountered in /Users/msereday/webpages/plugins_171/plugins/calendar/includes/eventlist.php on line 84
Cannot modify header information - headers already sent (output started at /Users/msereday/webpages/plugins_171/plugins/calendar/includes/eventlist.php:84)
2. On the server I can't login getting
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at support@exohosting.sk to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
I am on the edge with any tries to find the reason. The last log says
[Thu Jan 18 11:24:39.491647 2018] [core:error] cmsimple.sk [pid 90761:tid 34594685952] [client 213.160.190.148:56313] End of script output before headers: index.php, referer http://plugins_171.cmsimple.sk/?Plugins-Test&login
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

cmb
Posts: 12766
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, RLP, DE
Contact:

Re: Pages not shown in Pagemanager

Post by cmb » Thu Jan 18, 2018 12:00 pm

Tata wrote:
Thu Jan 18, 2018 10:27 am
1. On localhost the pagemanager shows empty window (no pages are visible) and the Calendar 1.4.8 returns
Warning: A non-numeric value encountered in /Users/msereday/webpages/plugins_171/plugins/calendar/includes/eventlist.php on line 84
Warning: A non-numeric value encountered in /Users/msereday/webpages/plugins_171/plugins/calendar/includes/eventlist.php on line 84
Cannot modify header information - headers already sent (output started at /Users/msereday/webpages/plugins_171/plugins/calendar/includes/eventlist.php:84)
That's pretty strange. If a warning is issued, it shouldn't cause any output to be sent. Anyhow, let's fix the root cause: change this line to

Code: Select all

    $date_input   = ($year_input ?: 0) * 100 + ($month_input ?: 0);
(This code requires PHP ≥ 5.4.0, and is not a good solution, but should fix the immediate problem.)
Tata wrote:
Thu Jan 18, 2018 10:27 am
I am on the edge with any tries to find the reason. The last log says
That appears to be the Apache error log. Is there any PHP error log?
Christoph M. Becker –Plugins for CMSimple_XH, but not for CMSimple 4+

Tata
Posts: 2789
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Pages not shown in Pagemanager

Post by Tata » Thu Jan 18, 2018 12:09 pm

cmb wrote:
Thu Jan 18, 2018 12:00 pm
That appears to be the Apache error log. Is there any PHP error log?
I can't see any other logs on the server.
The change on localhost solved the warnings.
There must be something wrong in installed plugins combination, as all other subdomains work fine there.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

cmb
Posts: 12766
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, RLP, DE
Contact:

Re: Pages not shown in Pagemanager

Post by cmb » Thu Jan 18, 2018 12:20 pm

Tata wrote:
Thu Jan 18, 2018 12:09 pm
I can't see any other logs on the server.
Not good. If you're still running XH 1.7.1, I suggest to update to XH 1.7.2, which might give a useful error message.
Tata wrote:
Thu Jan 18, 2018 12:09 pm
The change on localhost solved the warnings.
Good. Does Pagemanager work now?
Christoph M. Becker –Plugins for CMSimple_XH, but not for CMSimple 4+

Tata
Posts: 2789
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Pages not shown in Pagemanager

Post by Tata » Thu Jan 18, 2018 12:52 pm

Actually the page has only the old name 171, it is 172 however.
The pagemanager keeps hidding the pages in its window.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

Tata
Posts: 2789
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Pages not shown in Pagemanager

Post by Tata » Thu Jan 18, 2018 1:18 pm

Adding the login call directly to the URL, the login is successfull. But opening any page for editting, the "500" is back.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

cmb
Posts: 12766
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, RLP, DE
Contact:

Re: Pages not shown in Pagemanager

Post by cmb » Thu Jan 18, 2018 1:28 pm

Tata wrote:
Thu Jan 18, 2018 12:52 pm
The pagemanager keeps hidding the pages in its window.
Request http://localhost/?pagemanager&admin=plu ... _data&edit manually after login (you may have to adjust the URL to your environment). Is there any error message?
Tata wrote:
Thu Jan 18, 2018 1:18 pm
Adding the login call directly to the URL, the login is successfull. But opening any page for editting, the "500" is back.
Without an error message, there's probably no way to solve the issue. Can you temporarily disable the 500 ErrorDocument?
Christoph M. Becker –Plugins for CMSimple_XH, but not for CMSimple 4+

Tata
Posts: 2789
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Pages not shown in Pagemanager

Post by Tata » Thu Jan 18, 2018 2:47 pm

cmb wrote:
Thu Jan 18, 2018 1:28 pm
Tata wrote:
Thu Jan 18, 2018 12:52 pm
The pagemanager keeps hidding the pages in its window.
Request http://localhost/?pagemanager&admin=plu ... _data&edit manually after login (you may have to adjust the URL to your environment). Is there any error message?
No error message. But it opens something like this (seems to be the complete content.htm in some form)
0
text "Plugins Test"
li_attr
id "pagemanager_0"
data-url "/plugins_171/?Plugins-Test"
children
0
text "Landingpage"
li_attr
id "pagemanager_1"
data-url "/plugins_171/?Plugins-Test%2FLandingpage"
children []
state
checked false
1
text "roto01"
li_attr
id "pagemanager_2"
data-url "/plugins_171/?Plugins-Test%2Froto01"
children []
state
checked false
2
text "roto02"
li_attr
id "pagemanager_3"
data-url "/plugins_171/?Plugins-Test%2Froto02"
children []
state
checked false
...
5
text "News05"
li_attr
id "pagemanager_97"
data-url "/plugins_171/?News05"
children []
state
checked false
6
text "Site/CMS Info"
li_attr
id "pagemanager_98"
data-url "/plugins_171/?Site%252FCMS-Info"
children []
state
checked false
cmb wrote:
Thu Jan 18, 2018 1:28 pm
Without an error message, there's probably no way to solve the issue. Can you temporarily disable the 500 ErrorDocument?
How?
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

cmb
Posts: 12766
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, RLP, DE
Contact:

Re: Pages not shown in Pagemanager

Post by cmb » Thu Jan 18, 2018 3:14 pm

Tata wrote:
Thu Jan 18, 2018 2:47 pm
No error message. But it opens something like this (seems to be the complete content.htm in some form)
Hm, that looks okay. Open the browser console, and request Pagemanager as usual – are there any errors reported?
Tata wrote:
Thu Jan 18, 2018 2:47 pm
cmb wrote:
Thu Jan 18, 2018 1:28 pm
Without an error message, there's probably no way to solve the issue. Can you temporarily disable the 500 ErrorDocument?
How?
The ErrorDocument handler is either contained in a .htaccess, or maybe you can disable it in the website's control panel.
Christoph M. Becker –Plugins for CMSimple_XH, but not for CMSimple 4+

Tata
Posts: 2789
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Pages not shown in Pagemanager

Post by Tata » Thu Jan 18, 2018 3:24 pm

Well, I have found some hints on the internet. Removing the .htaccess made no change. But now I have uploaded a celar 172 installation. It works fine. So I upload plugins one-one and hope to find the problem. Let you know, but it will take time with this ammount of plugins. :(
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

Post Reply