OpenDRR / riskprofiler

Web Application to Support Disaster Resilience / Application web pour soutenir la résilience aux catastrophes
MIT License
10 stars 7 forks source link

Simply Static fails with "Column doesn't exist" site_id #109

Closed anthonyfok closed 1 year ago

anthonyfok commented 1 year ago

With the current code and database export from 2023-05-04, Simply Static fails with "Uncaught Exception: Column doesn't exist for Simply_Static\Page" at Simply_Static\Model->__set('site_id', NULL):

[04-May-2023 23:11:16 UTC] PHP Fatal error:  Uncaught Exception: Column doesn't exist for Simply_Static\Page in /var/www/html/site/assets/plugins/simply-static/src/models/class-ss-model.php:92
Stack trace:
#0 /var/www/html/site/assets/plugins/simply-static/src/models/class-ss-model.php(148): Simply_Static\Model->__set('site_id', NULL)
#1 /var/www/html/site/assets/plugins/simply-static/src/models/class-ss-model.php(136): Simply_Static\Model->attributes(Array)
#2 /var/www/html/site/assets/plugins/simply-static/src/class-ss-query.php(70): Simply_Static\Model::initialize(Array)
#3 /var/www/html/site/assets/plugins/simply-static/src/tasks/class-ss-fetch-urls-task.php(39): Simply_Static\Query->find()
#4 /var/www/html/site/assets/plugins/simply-static/src/class-ss-archive-creation-job.php(122): Simply_Static\Fetch_Urls_Task->perform()
#5 /var/www/html/site/assets/plugins/simply-static/vendor/a5hleyrich/wp-background-processing/classes/wp-background-process.php(301): Simply_Static\Archive_Creation_Job->task('fetch_urls')
#6 /var/www/html/site/assets/plugins/sim in /var/www/html/site/assets/plugins/simply-static/src/models/class-ss-model.php on line 92

It seems that the online development website has auto-updated to a newer version Simply Static plugin with added multisite support (since February 2023; see https://github.com/Simply-Static/simply-static/issues/87

Workaround:

wp plugin update simply-static
wp core update-db

though updating Simply Static plugin in the h7-riskprofiler would be best. Thanks!