Page 1 of 1

[solved] cannot add new content

Posted: Tue Oct 30, 2012 4:21 pm
by stevegos
Hi

Using latest version 1.11.2.1

Brand new install. No other modules installed.

I cannot add new content pages. I deleted all the default content (except Home) OK. Then added one standard page OK. I cannot add a third. The new page comes up in admin, I give it a title and menu text, add some content to the wysiwyg editor. Click Submit and am taken back to the page list. The green box appear at the top saying the content has been successful but its not listed.

Tried several times, just cannot add content.

Checked the system info and two lines have warnings:

1. E_DEPRECATED is enabled

2. Session Save Path (session_save_path): No check because OS path

I checked with the host and they tell me E_DEPRECATED should not be a problem and they use a system called memcached for sessions and some scripts cannot detect it and should not be a problem.

Any ideas?

Steven

Re: cannot add new content

Posted: Tue Oct 30, 2012 4:34 pm
by calguy1000
1: Error logs? anything in the system error log?

Suggestion: add $config['debug_to_log'] = 1; in the config.php
and then try to add/edit pages. See if anything appears in tmp/cache/debug.log?

2: is site-down enabled? if it is, try turning it off.

Re: cannot add new content

Posted: Tue Oct 30, 2012 4:57 pm
by stevegos
Thanks for that. No errors in the error log.

I have noticed that in the admin log the newly added pages are listed but they are not in the pages list under content.

Site down not enabled.

Re: cannot add new content

Posted: Tue Oct 30, 2012 8:05 pm
by stevegos
A bit more info:

The missing newly added pages only appear once you delete one or more pages.

Re: cannot add new content

Posted: Tue Oct 30, 2012 8:21 pm
by calguy1000
check mysql to make sure that the tables aren't corrupted. there is a repair tables option in 1.11, under system maintenance.

Re: cannot add new content

Posted: Tue Oct 30, 2012 9:45 pm
by stevegos
Tried that. Still same problem.

I have also made a fresh install and still getting the same problem.

Re: cannot add new content

Posted: Tue Oct 30, 2012 10:37 pm
by gianpiero
This happened to me also, in older version of CMSMS when using Firefox, but when I clicked CTRL+F5 into the admin-page with list of Content pages the new page appears

Re: cannot add new content

Posted: Wed Oct 31, 2012 3:27 pm
by stevegos
I've tried it on numerous browsers and all produce the same issue.

I found this bug report for an older version: http://dev.cmsmadesimple.org/bug/view/6394

With this info I edited admin/addcontent.php and it appear to have fixed the problem. But when adding a page I see the following warning message on screen:

Warning: filemtime() [function.filemtime]: stat failed for /var/sites/c/coecostaandmoore.co.uk/public_html/tmp/cache/contentcache.php in /var/sites/c/coecostaandmoore.co.uk/public_html/lib/classes/class.contentoperations.inc.php on line 549

Re: cannot add new content

Posted: Wed Oct 31, 2012 3:34 pm
by calguy1000
That fix is invalid, and incorrect.

Problem appears to be that you are having problems with
a: timezones
b: reading files in the tmp/cache directory.

Re: cannot add new content

Posted: Wed Oct 31, 2012 4:21 pm
by stevegos
permission on the tmp/cache is 777

time zone in config.php is Europe/London

Is there a time zone on the server or db?

Re: cannot add new content

Posted: Mon Nov 05, 2012 10:26 am
by stevegos
This turned out to be a hosting issue. The host spreads the site across multiple servers to add extra resilience. One of the data stores had the wrong time set (one hour ahead) which affected the date on the cache files.

Thanks to Calguy for his help identifying the problem.