[solved] cannot add new content

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
stevegos

[solved] cannot add new content

Post 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
Last edited by stevegos on Mon Nov 05, 2012 10:27 am, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: cannot add new content

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
stevegos

Re: cannot add new content

Post 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.
stevegos

Re: cannot add new content

Post by stevegos »

A bit more info:

The missing newly added pages only appear once you delete one or more pages.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: cannot add new content

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
stevegos

Re: cannot add new content

Post by stevegos »

Tried that. Still same problem.

I have also made a fresh install and still getting the same problem.
gianpiero
Forum Members
Forum Members
Posts: 221
Joined: Sun Jan 07, 2007 4:32 pm

Re: cannot add new content

Post 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
stevegos

Re: cannot add new content

Post 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
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: cannot add new content

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
stevegos

Re: cannot add new content

Post 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?
stevegos

Re: cannot add new content

Post 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.
Locked

Return to “CMSMS Core”