Page 1 of 1

error while creating new article content:

Posted: Tue 1. Jul 2008, 18:15
by mshaker
{STATUS_MESSAGE}error while creating new article content: Field 'acontent_files' doesn't have a default value

After saving the article summary, I try to create a content part and the above message appears when saving.

Re: error while creating new article content:

Posted: Tue 1. Jul 2008, 18:55
by juergen

Re: error while creating new article content:

Posted: Tue 1. Jul 2008, 19:20
by mshaker
I'm a little confused, the post you refer to is for a missing column 'acontent_created'. People having this error migrated from 1.2-->1.3.

I did a new install with 1.3.9. The column is defined in mysql as notnull and it appears it is trying to write a row without a value in this column 'acontent_files'?

Also, my file center can not create a directory either...is the version I'm starting with, "phpwcms_r213", a version I should be using, or is there a more stable version?

I think I answered my own question...I just reinstalled on a clean server, tried to create two articles using the sample temp, and only on article appears. I think the version i'm using is very flakey.

Re: error while creating new article content:

Posted: Tue 1. Jul 2008, 20:15
by update
mshaker wrote:I think I answered my own question...I just reinstalled on a clean server, tried to create two articles using the sample temp, and only on article appears. I think the version i'm using is very flakey.
There seems to be missed something: try to raise the value "-1" to "99" for example (to be found in BE-admin-structure (eg home...)

Re: error while creating new article content:

Posted: Tue 1. Jul 2008, 20:23
by juergen
So .. you are right .. this field didn't cry any further..

The deal is to be made around the database... did you upgrade ?

Re: error while creating new article content:

Posted: Wed 2. Jul 2008, 08:16
by mshaker
When you say "upgrade", what does that mean. I'm starting with a clean server and a database without any tables. I move the phpwcms (from the downloaded zip...phpwcms_r213) files to the web server and run setup.php. The setup runs to completion and I then move the created conf.ini.php to the /config/phpwcms directory. I do not run any upgrade process.

Re: error while creating new article content:

Posted: Wed 2. Jul 2008, 09:21
by juergen
A Windows Server ? IIS ? *guessing*

So there is no upgrade .. this theme can be excluded.....

Re: error while creating new article content:

Posted: Thu 3. Jul 2008, 07:50
by mshaker
Yes, it's 2003 server running apache 2. Definitely a database problem...I'm not having this problem in the linux environment. I used to mysql to delete all of the rows (had orphans after using the be to delete all articles) from _articlecontent and the problem went away. However it is back today.

Re: error while creating new article content:

Posted: Thu 3. Jul 2008, 08:20
by juergen
You see, there are only two ways to truth ... the first was ending, but this you should ask Oliver for support, I did IIS for (at all) 4 hours in my life, which is not toooo much compared with LAMPS ...hrk.. feels like 3 Million hours ;)

Re: error while creating new article content:

Posted: Thu 3. Jul 2008, 11:48
by mshaker
Got around the problem by changing the _articlecontent table DDL from setting TEXT and MEDTEXT from NOT NULL to NULL. Strange problem as mysql (WIN2003) allowed inserting some rows into the table when these datatypes had NULL values...then for no reason decided to not allow in inserting, which was causing my problem. The LINUX server has had no issues.

Anyway, it's a hack but it's working for now. Thanks for all your help!!!