moving to another isp

Permalink
I am changing hosts 1, down upload code as .tar . 2. export import database . 3. modify site.php for new database . screen blank . error log copied below.
any had this before? Help?

[20-Apr-2018 11:56:23 UTC] PHP Warning: Declaration of dbTable::create(&$xmls) should be compatible with dbObject::create() in /home2/starus/public_html/bbg/concrete/libraries/3rdparty/adodb/adodb-xmlschema03.inc.php on line 642
[20-Apr-2018 11:56:23 UTC] PHP Warning: Declaration of dbIndex::create(&$xmls) should be compatible with dbObject::create() in /home2/starus/public_html/bbg/concrete/libraries/3rdparty/adodb/adodb-xmlschema03.inc.php on line 806
[20-Apr-2018 11:56:23 UTC] PHP Warning: Declaration of dbData::create(&$xmls) should be compatible with dbObject::create() in /home2/starus/public_html/bbg/concrete/libraries/3rdparty/adodb/adodb-xmlschema03.inc.php on line 1051
[20-Apr-2018 11:56:23 UTC] PHP Warning: Declaration of dbQuerySet::create(&$xmls) should be compatible with dbObject::create() in /home2/starus/public_html/bbg/concrete/libraries/3rdparty/adodb/adodb-xmlschema03.inc.php on line 1302
[20-Apr-2018 11:56:23 UTC] PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home2/starus/public_html/bbg/concrete/libraries/3rdparty/adodb/drivers/adodb-mysql.inc.php:363
Stack trace:
#0 /home2/starus/public_html/bbg/concrete/libraries/3rdparty/adodb/adodb.inc.php(522): ADODB_mysql->_connect('localhost', 'starus_con2', '78OWRjVo', 'starus_con2')
#1 /home2/starus/public_html/bbg/concrete/libraries/3rdparty/adodb/adodb.inc.php(4276): ADOConnection->Connect('localhost', 'starus_con2', '78OWRjVo', 'starus_con2')
#2 /home2/starus/public_html/bbg/concrete/libraries/3rdparty/adodb/adodb.inc.php(4126): ADONewConnection('mysql')
#3 /home2/starus/public_html/bbg/concrete/core/libraries/loader.php(247): NewADOConnection('mysql://starus_...')
#4 /home2/starus/public_html/bbg/concrete/startup/exceptions.php(6): Concrete5_Library_Loader::db()
#5 [internal function]: Concrete5_Exception_Handler(Object(Error))
#6 {main}

Biged2011
 
JohntheFish replied on at Permalink Reply
JohntheFish
Is that a c5.6 site? (has ADODB calls in trace)

It could be that your new server is running php7, which is much stricter than php5.x on function parameter type compatibility.

If so, you have 2 choices
a) reconfigure your new server for php5.6
b) manually update the core of your site to use c5.6.4 (from the 5.6 github, not officially released).

(a) is the simplest approach
(b) is the best for the long term and gives a speed advantage
(b) could have compatibility issues with some marketplace packages, such as core eCommercehttps://www.concrete5.org/community/forums/legacy-version-5-6-x/hack...
Biged2011 replied on at Permalink Reply
Biged2011
how do I trace? Changed this site to php5.6 I think and still received error . Cpanel said all were php7.
The site is C5.6.2.1
[21-Apr-2018 15:56:52 UTC] PHP Warning: Declaration of dbTable::create(&$xmls) should be compatible with dbObject::create() in /home2/starus/public_html/bbg/concrete/libraries/3rdparty/adodb/adodb-xmlschema03.inc.php on line 642
[21-Apr-2018 15:56:52 UTC] PHP Warning: Declaration of dbIndex::create(&$xmls) should be compatible with dbObject::create() in /home2/starus/public_html/bbg/concrete/libraries/3rdparty/adodb/adodb-xmlschema03.inc.php on line 806
[21-Apr-2018 15:56:52 UTC] PHP Warning: Declaration of dbData::create(&$xmls) should be compatible with dbObject::create() in /home2/starus/public_html/bbg/concrete/libraries/3rdparty/adodb/adodb-xmlschema03.inc.php on line 1051
[21-Apr-2018 15:56:52 UTC] PHP Warning: Declaration of dbQuerySet::create(&$xmls) should be compatible with dbObject::create() in /home2/starus/public_html/bbg/concrete/libraries/3rdparty/adodb/adodb-xmlschema03.inc.php on line 1302
[21-Apr-2018 15:56:52 UTC] PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home2/starus/public_html/bbg/concrete/libraries/3rdparty/adodb/drivers/adodb-mysql.inc.php:363
Stack trace:
#0 /home2/starus/public_html/bbg/concrete/libraries/3rdparty/adodb/adodb.inc.php(522): ADODB_mysql->_connect('localhost', 'starus_con2', 'gn,;+1Ss1e]A', 'starus_con2')
#1 /home2/starus/public_html/bbg/concrete/libraries/3rdparty/adodb/adodb.inc.php(4276): ADOConnection->Connect('localhost', 'starus_con2', 'gn,;+1Ss1e]A', 'starus_con2')
#2 /home2/starus/public_html/bbg/concrete/libraries/3rdparty/adodb/adodb.inc.php(4126): ADONewConnection('mysql')
#3 /home2/starus/public_html/bbg/concrete/core/libraries/loader.php(247): NewADOConnection('mysql://starus_...')
#4 /home2/starus/public_html/bbg/concrete/startup/exceptions.php(6): Concrete5_Library_Loader::db()
#5 [internal function]: Concrete5_Exception_Handler(Object(Error))
#6 {main}
thrown in /home2/starus/public_html/bbg/concrete/libraries/3rdparty/adodb/drivers/adodb-mysql.inc.php on line 363
JohntheFish replied on at Permalink Reply
JohntheFish
Those kind of error messages only come from php7+, so either the change you made in the cPanel was incorrect, or it hasn't taken effect yet.
Biged2011 replied on at Permalink Reply
Biged2011
could the same response come from php5.6? testing the old site it is still PHP Version 5.2.17!!! Just actually queried the site with phpinfo. OOPS cpanel did not do it. Good call. I will get it fixed.

you were on the money. ISP fixed the change and it did actually change. now it is working. on to a permanent fix.