From error log:
[13-Mar-2020 16:28:42 UTC] PHP Fatal error: Call to a member function getAttributeKeyID() on null in /home/lifereso/public_html/packages/core_commerce/models/order/model.php on line 523
the site is running on Php 5.6
eCommerce - ver 2.8.13
Not sure when this happened or what happened before. Client pretty much edits and changes without my help until I need to fix something.
The first time this error shows up is 28 Feb. The errors just before that are:
[07-Feb-2020 05:05:02 UTC] PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/lifereso/public_html/updates/concrete188.8.131.52/concrete/libraries/3rdparty/adodb/drivers/adodb-mysql.inc.php:442
#0 /home/lifereso/public_html/updates/concrete184.108.40.206/concrete/libraries/3rdparty/adodb/adodb.inc.php(557): ADODB_mysql->_connect('localhost', 'lifereso_ptest', 'eXpect2B', 'lifereso_C5New')
#1 /home/lifereso/public_html/updates/concrete220.127.116.11/concrete/libraries/3rdparty/adodb/adodb.inc.php(4358): ADOConnection->Connect('localhost', 'lifereso_ptest', 'eXpect2B', 'lifereso_C5New')
#2 /home/lifereso/public_html/updates/concrete18.104.22.168/concrete/libraries/3rdparty/adodb/adodb.inc.php(4194): ADONewConnection('mysqlt')
#3 /home/lifereso/public_html/updates/concrete22.214.171.124/concrete/core/libraries/loader.php(251): NewADOConnection('mysqlt://lifere...')
#4 /home/lifereso/public_html/updates/concrete126.96.36.199/concrete/startup/exceptions.php(6): Concrete5_Library_Loader::db()
#5 [internal function]: Concrete5_Exception_Handler(Objec in /home/lifereso/public_html/updates/concrete188.8.131.52/concrete/libraries/3rdparty/adodb/drivers/adodb-mysql.inc.php on line 442
I'm thinking from when the site was migrated to a different server and Php was sent to 7. When I changed it back to 6.6 everything seemed fine.
Thankfully, with Concrete5 I don't have to do a lot of code because I suck at it. Can someone please point me in the right direction.
mysql was deprecated in PHP7 instead it uses mysgli.
I guess there could have been something changed in the database at the same time that is now causing the new error...
Then upgrade to 5.6.4 (supports PHP7), then upgrade to PHP7
Keep us posted...
Then I updated to Concrete 184.108.40.206
Then I changed Php tp 7.0 and got a 500 server error.
Changed back to Php 5.6 and the site works ... except for core_commerce. When I select a product, it doesn't go anywhere.
Error log states:
PHP Fatal error: Call to a member function rescanOrderProductPricePaid() on null in .../packages/core_commerce/models/order/product.php on line 94
eCommerce - 2.8.12