MLE: Can't add new pages

This is a FORK of the CMS Made Simple project and is not oficially supported in any way by the CMS Made Simple development team.
Locked
lollol
Forum Members
Forum Members
Posts: 35
Joined: Wed Oct 15, 2008 11:38 pm

MLE: Can't add new pages

Post by lollol »

Hi,

Everything is working just fine. Only problem is: I cannot add new pages!

I have been trying to solve it for many hours now and realy getting frustrated. I looked around the forum here and only one post describes the same problem: http://forum.cmsmadesimple.org/index.ph ... 427.0.html

Unfortunately, he did'nt manage to solve the problem - he's just adding new pages trough phpMyAdmin.

I got all the new versions, did a clean install and folowed all the steps carefully.

Here is what happens (it's just like the guy in the post above describes it):

- In the admin panel - "Add new page".
- Form comes upp like usually and let's you enter the page title, body, etc... One thing that's different from the "editing mode" is that there is only ONE flag next to the "Submit, Preview, Apply, Cancel"  buttons (it's the flag of the default language) - as oposed to ALL flags in the "editing mode".
- Once I fill out all needed fields, I press "Submit" and see the message "The content was successfully added to the database."
- Guess what? Message lied - page was NOT created!!!

Any ideas are more then welcome!!!

Thanks!
-
alby

Re: MLE: Can't add new pages

Post by alby »

lollol wrote: Everything is working just fine. Only problem is: I cannot add new pages!

I have been trying to solve it for many hours now and realy getting frustrated. I looked around the forum here and only one post describes the same problem: http://forum.cmsmadesimple.org/index.ph ... 427.0.html
Have you enable debug in config.php and look for Error(1) or other errors in first page of debug?
Have you look to error_log in your server?

Alby
lollol
Forum Members
Forum Members
Posts: 35
Joined: Wed Oct 15, 2008 11:38 pm

Re: MLE: Can't add new pages

Post by lollol »

Ok, I activated the debug option and here is the output once I press the "Submit" button to try and save the new page:

http://pastebin.com/m67b54655
(It's a long text so I did'nt wanna clutter here, just click on the link)

Thanks!
alby

Re: MLE: Can't add new pages

Post by alby »

lollol wrote: Ok, I activated the debug option and here is the output once I press the "Submit" button to try and save the new page:

http://pastebin.com/m67b54655
(It's a long text so I did'nt wanna clutter here, just click on the link)
(mysql): INSERT INTO cms_content (content_id, content_name_en, content_alias, type, owner_id, parent_id, template_id, item_order, hierarchy, id_hierarchy, active, default_content, show_in_menu, cachable, menu_text_en, markup, metadata, titleattribute, accesskey, tabindex, last_modified_by, create_date, modified_date) VALUES (64,'fsdf','fdsfs','content','1','-1','17',3,'','',1,0,1,1,'fdsfs','html','','','','','1','2008-10-16 10:01:21','2008-10-16 10:01:21')
#
Error (1364): Field 'content_name_sv' doesn't have a default value
ALL fileds *_lang must be NULL

Alby
lollol
Forum Members
Forum Members
Posts: 35
Joined: Wed Oct 15, 2008 11:38 pm

Re: MLE: Can't add new pages

Post by lollol »

alby wrote: Have you enable debug in config.php and look for Error(1) or other errors in first page of debug?
Have you look to error_log in your server?

Alby

Well I was just about to give up...

Code: Select all

Error (1364): Field 'content_name_sv' doesn't have a default value<br>
For you that made the sam misstake: I forgot to set the default value to 'NULL' for the new MLE fields in the table 'cms_content'. Everything is working :D

Much thanks!
lollol
Forum Members
Forum Members
Posts: 35
Joined: Wed Oct 15, 2008 11:38 pm

Re: MLE: Can't add new pages

Post by lollol »

alby wrote: ALL fileds *_lang must be NULL

Alby
Yeah I saw that... THANKS Alby :D
Locked

Return to “[locked] CMSMS MLE fork”