Page 1 of 1

[SOLVED] Problem: can't add new content

Posted: Thu May 29, 2008 1:40 pm
by Nagadash
Hello!

I ran into this problem with MLE...
It seems that I can't (or just don't know how to) add new content to my pages using CMSMS MLE.
The installation of MLE and CMSMS went fine, and the pages work otherwise just fine.

In the admin panel, when I go to Content->Pages and try to add new content, it shows the text:
"The content was successfully added to the database." but the content I added won't show in the admin panel and it doesn't show in the navigation menu's, nor in the homepages.
It seems that the maximum amount of Level 1 Navigation pages I can now have is 4.
The content can be added to these 4 content pages, and to their children pages. So the old content can be updated, but the new content can't be made. I was able to add new content normally with regular CMSMS just before installing MLE version.

For the extra information I am using IIS (windows server 2003), PHP, MySQL and phpMyAdmin. I am using my own template (template should work) with MenuManager module in it, I use two menu's to navigate. The other menu is in the top of page and the other one in the left side.
In the code I use these smarty tags for the navigation:
{cms_module module="menumanager" }
{menu template='cssmenu.tpl'} 
I tried to add content also with the "Left simple navigation + 1 column" template, but that didn't work for me either.
Can someone help me out with this? ??? I am really new with CMSMS and MLE, but got it already working so far, and like it a lot. Thanks alby by the way for this great MLE version for CMSMS.

Re: [SOLVED] Problem: can't add new content

Posted: Fri Jun 06, 2008 1:23 pm
by Nagadash
In a way I have now solved the problem. I can add new content with direct SQL-queries within myPphpAdmin program.
So the problem is the wrong query that my admin panel sends to the database, when I try to add new content.
Modifying, updating (well apparently everything else) works out with admin panel (Content->pages) just fine.

Well it would be a bit cooler and easier, if the admin panel would do it for me, but as the sites work as well as they now do, I don't need any urgent help with this.

Re: [SOLVED] Problem: can't add new content

Posted: Fri Jun 06, 2008 1:44 pm
by alby
Nagadash wrote: In a way I have now solved the problem. I can add new content with direct SQL-queries within myPphpAdmin program.
So the problem is the wrong query that my admin panel sends to the database, when I try to add new content.
Modifying, updating (well apparently everything else) works out with admin panel (Content->pages) just fine.

Well it would be a bit cooler and easier, if the admin panel would do it for me, but as the sites work as well as they now do, I don't need any urgent help with this.
I missing this post  :-[

Can you post the wrong query for new page?

Alby

Re: [SOLVED] Problem: can't add new content

Posted: Mon Jun 09, 2008 11:56 am
by Nagadash
Ok, I don't know is this the query you mean, but when I try to add new content in CMSMS debug mode the query it shows to me is:
DELETE FROM cms_content_props WHERE content_id = ? AND prop_name = ?
INSERT INTO cms_content_props ( content_id, type, prop_name, param1, param2, param3, content, modified_date ) VALUES ( ?,?,?,'','','',?,'2008-06-09 14:29:43' )
I can add new content by going to the phpMyAdmin->cms_content->Insert page and modifying every field (there are 30 of them) as I want.

Nagadash

Re: [SOLVED] Problem: can't add new content

Posted: Mon Jun 09, 2008 12:29 pm
by alby
Nagadash wrote: Ok, I don't know is this the query you mean, but when I try to add new content in CMSMS debug mode the query it shows to me is:
DELETE FROM cms_content_props WHERE content_id = ? AND prop_name = ?
INSERT INTO cms_content_props ( content_id, type, prop_name, param1, param2, param3, content, modified_date ) VALUES ( ?,?,?,'','','',?,'2008-06-09 14:29:43' )
I can add new content by going to the phpMyAdmin->cms_content->Insert page and modifying every field (there are 30 of them) as I want.
In debug mode if a query is wrong you have a message:
Error (1):  ..........

That it's the query with problem

Alby