silvasur / ratatoeskr-cms

Ratatöskr is a flexible Content Management System / Blogging Software for PHP
http://r7r.silvasur.net
Other
0 stars 0 forks source link

Some create methods in models don't work any more #8

Open silvasur opened 4 years ago

silvasur commented 4 years ago

At least in my local installation, MariaDB doesn't accept some of those INSERTs with missing values. E.g. I get the following error during setup:

[Mon Apr 27 20:04:45 2020] [::1]:52130 [500]: POST /setup.php?lang=en - Uncaught PDOException: SQLSTATE[HY000]: General error: 1364 Field 'baseurl' doesn't have a default value in /home/laria/src/r7r/ratatoeskr-cms/ratatoeskr/sys/db.php:88
Stack trace:
#0 /home/laria/src/r7r/ratatoeskr-cms/ratatoeskr/sys/db.php(88): PDOStatement->execute()
#1 /home/laria/src/r7r/ratatoeskr-cms/ratatoeskr/sys/models.php(2521): qdb()
#2 /home/laria/src/r7r/ratatoeskr-cms/ratatoeskr/setup/setup.php(230): Repository::create()
#3 /home/laria/src/r7r/ratatoeskr-cms/setup.php(207): require_once('/home/laria/src...')
#4 {main}
  thrown in /home/laria/src/r7r/ratatoeskr-cms/ratatoeskr/sys/db.php on line 88
silvasur commented 4 years ago

Repository::create was fixed in 3f7cbc9. The others might be fine, but I need to check