CMS install problems

Issues related to the CMS tools of WYSIWYG Web Builder.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/cms_tools.html
A lot of information about the Content Manager System can be found in the help/manual. Please read this first before posting any questions! Also check out the demo template that is include with the software.

CMS trouble shooting / FAQ:
viewtopic.php?f=10&t=43245
Post Reply
AlbertoMeyer
 
 
Posts: 26
Joined: Thu Mar 25, 2021 3:09 pm

CMS install problems

Post by AlbertoMeyer »

I'm making a website that uses CMS. I set up an AMPPS server and everything was ok. When trying to upload to my server, I'm getting this error "Invalid query: Invalid default value for 'last_update_date'"

Settings are right. Any additional tips?

No tables are created. I am trying to run the SQL on manual, but give an erro.
User avatar
Pablo
 
Posts: 21712
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: CMS install problems

Post by Pablo »

This is most likely related to the format of the date field in the database.

In the MYSQL database, set default value for last_update_date to '0000-00-00 00:00:00'.
This works for me.
AlbertoMeyer
 
 
Posts: 26
Joined: Thu Mar 25, 2021 3:09 pm

Re: CMS install problems

Post by AlbertoMeyer »

Not working. It´s a MySQL directive for MYSQL 5.7. I have to deactivate the NO_ZERO_DATE setting and I don´t know how.
User avatar
Pablo
 
Posts: 21712
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: CMS install problems

Post by Pablo »

Did you set a default date in the database? That should work.
AlbertoMeyer
 
 
Posts: 26
Joined: Thu Mar 25, 2021 3:09 pm

Re: CMS install problems

Post by AlbertoMeyer »

Pablo, the script is not running or creating the tables. Accuses error in

`last_update_date` timestamp NOT NULL default '0000-00-00 00:00:00',

I don't know how to solve this. It's sad because it's an important site for me and without the CMS I'll have to see another alternative. As it is my production server, I have to be careful not to make mistakes and take down other hosted sites.

I know that is not a WYSWYG problem, but can affect customers.
User avatar
Pablo
 
Posts: 21712
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: CMS install problems

Post by Pablo »

I'm sorry, I cannot help you with the server configuration. I do not know every variation of every server.
However, if your server does not support this SQL then you will have to change the syntax.
For example, you can try to remove the 'default' part

So, instead of

Code: Select all

`last_update_date` timestamp NOT NULL default '0000-00-00 00:00:00',
use

Code: Select all

`last_update_date` timestamp,
AlbertoMeyer
 
 
Posts: 26
Joined: Thu Mar 25, 2021 3:09 pm

Re: CMS install problems

Post by AlbertoMeyer »

#1067 - Valor padrão (default) inválido para 'last_update_date'

Means Invalid default fo Last_update_date. I have tried it before. I create the databse without last_update_dat, than i create the field manually. Then i update de default. No good. Same error. I just update de set no zero state. No luck. I think update to 8.0 will solve, but it is too risky for my other sites.
AlbertoMeyer
 
 
Posts: 26
Joined: Thu Mar 25, 2021 3:09 pm

Re: CMS install problems

Post by AlbertoMeyer »

Solution was modify your script and put default value for '1970-01-01 00:00:01'
This is the first valid date now (range).
I have run the script before in PHP My Admin with Aloow invalid dates too. So, i don´t know exactly what works.
The default script on CMS upload was wrong, works on old Mysqls
Thanks for the help, Pablo!
Post Reply