You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm puzzled why I cannot reproduce the error on any test instances, only on our production instance.
The production instance is using:
PHP Version 7.0.33-0ubuntu0.16.04.1
MySQL Server version: 5.6.40-log Source distribution (AWS RDS)
Apache/2.4.18 (Ubuntu)
The text was updated successfully, but these errors were encountered:
The real changes besides white space include:
- set `$expression->productionUseInd` to a string in the `else` clause
- avoid rewriting `$expression->productionUseInd` immediately after the `else` clause (if it is an update and the value is already set, it would have been always overwritten)
- set `$expression->lastUpdateDate = date('Y-m-d H:i:s');` so that we don't get the cannot be null error
I have discovered what the problem is for our setup.
AWS RDS MySQL sets the explicit_defaults_for_timestamp option to TRUE in its default parameter group for MySQL 5.6. It can only be changed by someone going in and adjusting a custom parameter for that setting to FALSE and restarting the database service. (See: https://forums.aws.amazon.com/thread.jspa?threadID=132676)
Although this is an edge case, I believe the CORAL code can be improved to overcome it. It is very possible that someone may come along and attempt to use AWS RDS with MySQL 5.6 with default settings and hit the same problem as I did.
I'm posting the contents of my email to the coral-users list because I think it's a legitimate issue after investigating further. https://lists.coral-erm.org/pipermail/coral-user/2019-February/000506.html
We are getting an error when trying to save an Expression on a license.
From what I can tell in the code, this makes sense…
coral/licensing/install/protected/install.sql
Line 51 in 9752600
coral/licensing/admin/classes/common/DatabaseObject.php
Lines 223 to 224 in 9752600
coral/licensing/ajax_processing.php
Lines 259 to 303 in 9752600
I'm puzzled why I cannot reproduce the error on any test instances, only on our production instance.
The production instance is using:
PHP Version 7.0.33-0ubuntu0.16.04.1
MySQL Server version: 5.6.40-log Source distribution (AWS RDS)
Apache/2.4.18 (Ubuntu)
The text was updated successfully, but these errors were encountered: