Jump to content

Recommended Posts

Posted

I ve a fresh pw 2.7.3 installation on fresh installation of ubuntu 16.04

The stock mysql version is  5.7.12 and php version is 7.0.4

However, I got a bunch of sql error during installation

BaiduShurufa_2016-7-5_8-32-25.png

BaiduShurufa_2016-7-5_8-32-13.png

Posted

Just a guess: there might be a setting in sql_mode that PW doesn't like.

Maybe NO_ZERO_DATE or NO_ZERO_IN_DATE - I'm not sure what the PW requirements are regarding sql_mode settings.

  • 7 months later...
Posted

@adrianmak We're ecperiencing problems on a PW 2.7.0 install after MySQL upgrade to 5.7. Do you have any further findings, are PW 2.7 and MySQL 5.7 versions not compatible or did you get it to work?

Posted
2 hours ago, gebeer said:

We're ecperiencing problems on a PW 2.7.0 install after MySQL upgrade to 5.7

Maybe you can update to PW 2.8.x? More recent versions of PW have fixed some MySQL 5.7 issues and make some SQL mode settings in /wire/config.php.

Posted

@Robin S 

Thanks for the tip.

In 3.x there is a setting 

$config->dbSqlModes = array(
	"5.7.0" => "remove:STRICT_TRANS_TABLES,ONLY_FULL_GROUP_BY"
);

in https://github.com/processwire/processwire/blob/master/wire/config.php#L869

But it seems that 2.8 is not supporting those mode settings. At least I cant find anything related in https://github.com/processwire/processwire-legacy/blob/master/wire/core/WireDatabasePDO.php or https://github.com/processwire/processwire-legacy/blob/master/wire/config.php

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...