Cannot edit pages

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.
Post Reply
TheServant
Forum Members
Forum Members
Posts: 10
Joined: Sun Apr 18, 2010 10:38 am

Cannot edit pages

Post by TheServant »

I have just started having a problem and I cannot figure out what has changed: If I go to edit a page, there is no content box.  In the "Main Tab" for adding/editing a page, the last box is "Parent:". I have run the debug and got the following but I would really appreciate some help in fixing it.

Code: Select all

Debug: (3.1E-5) - (1010288)
loading smarty
Debug: (0.005376) - (1447384)
loading adodb
Debug: (0.007264) - (1589696)
loading page functions
Debug: (0.010898) - (1872096)
loading content functions
Debug: (0.014178) - (2188632)
loading pageinfo functions
Debug: (0.015007) - (2242864)
loading translation functions
Debug: (0.015575) - (2271568)
loading events functions
Debug: (0.017155) - (2405120)
loading php4 entity decode functions
Debug: (0.01976) - (2750344)
done loading files
Debug: (0.033746) - (3861552)
<br>
(mysql): SET NAMES 'utf8'<br>
 Error (0): <br>
Debug: (0.034668) - (3889848)
<br>
(mysql): SELECT sitepref_name, sitepref_value from cms_siteprefs<br>
 Error (0): <br>
Debug: (0.038922) - (4043120)
<br>
(mysql): SELECT * FROM cms_userplugins<br>
 Error (0): <br>
Debug: (0.064488) - (5077232)
<br>
(mysql): SELECT * FROM cms_modules WHERE active = 1 ORDER by module_name<br>
 Error (0): <br>
Debug display of 'End of include':(0.117574) - (10781808)
Debug: (0.117694) - (10713808)
Session found.  Moving on...
Debug: (0.117753) - (10713920)
Session found.  Moving on...
Debug: (0.124869) - (11266168)
Session found.  Moving on...
Debug: (0.125489) - (11272176)
<br>
(mysql): SELECT preference, value FROM cms_userprefs WHERE user_id = '1'<br>
 Error (0): <br>
Debug display of 'Load Content Operations':(0.14514) - (12555936)
Debug display of 'End Load Content Operations':(0.154638) - (13454384)
Debug: (0.15475) - (13457544)
Session found.  Moving on...
Debug: (0.15683) - (13582024)
<br>
(mysql): SELECT ug.user_id FROM cms_user_groups ug
                     WHERE ug.user_id = '1' AND ug.group_id = 1<br>
 Error (0): <br>
Debug: (0.15734) - (13583448)
<br>
(mysql): SELECT * FROM cms_content WHERE content_id = '17'<br>
 Error (0): <br>
Debug: (0.15976) - (13810048)
Session found.  Moving on...
Debug: (0.160835) - (13923640)
Session found.  Moving on...
Debug: (0.160902) - (13924288)
Session found.  Moving on...
Debug: (0.162992) - (14093688)
<br>
(mysql): SELECT content_id FROM cms_content WHERE default_content = 1<br>
 Error (0): <br>
Debug: (0.163328) - (14096840)
<br>
(mysql): SELECT * FROM cms_content WHERE content_id = '15'<br>
 Error (0): <br>
Debug: (0.164526) - (14136024)
<br>
(mysql): SELECT DISTINCT permission_name FROM cms_user_groups ug INNER JOIN cms_group_perms gp ON gp.group_id = ug.group_id INNER JOIN cms_permissions p ON p.permission_id = gp.permission_id INNER JOIN cms_groups gr ON gr.group_id = ug.group_id WHERE ug.user_id = '1' AND gr.active = 1<br>
 Error (0): <br>
Debug: (0.182859) - (14822472)
<br>
(mysql): SELECT htmlblob_id FROM cms_additional_htmlblob_users WHERE user_id = '1'<br>
 Error (0): <br>
Debug: (0.183138) - (14824336)
<br>
(mysql): SELECT group_id FROM cms_user_groups WHERE user_id = '1'<br>
 Error (0): <br>
Debug: (0.183372) - (14825056)
<br>
(mysql): SELECT htmlblob_id FROM cms_additional_htmlblob_users WHERE user_id IN (-1)<br>
 Error (0): <br>
Debug: (0.183688) - (14825272)
<br>
(mysql): SELECT content_id FROM cms_content WHERE owner_id = '1'<br>
 Error (0): <br>
Debug: (0.184103) - (14826080)
<br>
(mysql): SELECT user_id,content_id FROM cms_additional_users<br>
 Error (0): <br>
Debug: (0.190723) - (14948528)
<br>
(mysql): SELECT count(news_id) FROM cms_module_news n
                   WHERE status != 'published'
                     AND (( IFNULL(end_time, '1970-01-01 08:00:01')  = '1970-01-01 08:00:01') OR (end_time > '2010-05-29 12:12:43')) <br>
 Error (0): <br>
Debug: (0.191175) - (14949232)
<br>
(mysql): SELECT version from cms_version<br>
 Error (0): <br>
Debug: (0.192644) - (14999584)
<br>
(mysql): SELECT bookmark_id, user_id, title, url FROM cms_admin_bookmarks WHERE user_id = '1' ORDER BY title<br>
 Error (0): <br>
Debug: (0.198879) - (15336160)
Session found.  Moving on...
Debug: (0.209163) - (15527936)
get all content...
Debug: (0.209709) - (15530272)
<br>
(mysql): SELECT * FROM cms_content ORDER BY hierarchy<br>
 Error (0): <br>
Debug: (0.214988) - (16065968)
Session found.  Moving on...
Debug: (0.217076) - (15537080)
<br>
(mysql): SELECT template_id, template_name, template_content, stylesheet, encoding, active, default_template, modified_date FROM cms_templates WHERE template_id = '23'<br>
 Error (0): <br>
Debug: (0.218159) - (15539024)
<br>
(mysql): SELECT template_id, template_name, template_content, stylesheet, encoding, active, default_template, modified_date FROM cms_templates ORDER BY template_name<br>
 Error (0): <br>
Debug: (0.218959) - (15539456)
<br>
(mysql): SELECT * FROM cms_content_props WHERE content_id = '17'<br>
 Error (0): <br>
Debug: (0.219949) - (15540544)
Session found.  Moving on...
Debug: (0.220316) - (15541096)
<br>
(mysql): SELECT user_id, username, password, first_name, last_name, email, active, admin_access FROM cms_users ORDER BY username<br>
 Error (0): <br>
Debug: (0.220461) - (15541096)
Session found.  Moving on...
Debug: (0.221564) - (15591640)
<br>
(mysql): SELECT user_id, username, password, first_name, last_name, email, active, admin_access FROM cms_users ORDER BY username<br>
 Error (0): <br>
Debug: (0.221836) - (15592704)
<br>
(mysql): SELECT group_id, group_name, active FROM cms_groups ORDER BY group_id<br>
 Error (0): <br>
Debug: (0.222123) - (15594984)
<br>
(mysql): SELECT user_id FROM cms_additional_users WHERE content_id = '17'<br>
 Error (0): <br>
Debug: (0.222276) - (15594984)
Session found.  Moving on...
Debug: (0.222736) - (15594944)
<br>
(mysql): SELECT username, password, active, first_name, last_name, admin_access, email FROM cms_users WHERE user_id = '1'<br>
 Error (0): <br>
NaN

Re: Cannot edit pages

Post by NaN »

Is there at least one {content} in your page template?
(Usually where the content will be shown)
TheServant
Forum Members
Forum Members
Posts: 10
Joined: Sun Apr 18, 2010 10:38 am

Re: Cannot edit pages

Post by TheServant »

I might not have been clear but this is editing the page from the admin panel and so the template is not relevant.

I have done a total deletion and reinstall. This took a long time as it seems something was corrupt and not simply missing, and it also seemed to be in my database, as replacing all the files didn't solve the prob. This was very unfortunate and disturbing as I don't know how it came about. CMSMS is the best CMS available, but this is the second total deletion I have had to do to fix a problem. It might be my host, but what ever it is, I think I might have to find something else which I can't break :(
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Cannot edit pages

Post by Rolf »

TheServant wrote: I might not have been clear but this is editing the page from the admin panel and so the template is not relevant.
Yes, it is!!
If you don't have the {content} tag in your template, the page editor won't show you the WYSIWYG editor. And therefore you can't edit the page...

Grtz. Rolf  :)
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
TheServant
Forum Members
Forum Members
Posts: 10
Joined: Sun Apr 18, 2010 10:38 am

Re: Cannot edit pages

Post by TheServant »

Thanks for that info. I didn't realise that. Unfortunately it's a bit late for me to check that all out, but I will keep it in mind if that ever happens again. Thanks for your time.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Cannot edit pages

Post by RonnyK »

In addition to that, the page that you are editting is presented as what is presented in the edit-part.
In CMSMS, you can call multiple content-blocks in different parts of the page, so when you have {content} and an additional {content block='second'}, then while editting the page attached to that template, the edit will show 2 editareas.

Ronny
Post Reply

Return to “CMSMS Core”