Site not working after migrating - 500 error and sql errors
Permalink
Hi,
I have just moved a concrete site to a new server and only html pages are working, the site itself triggers a 500 server error.
I check the php error log but it does not make sense, the files it says are not found are there indeed.
Also noticed some errors when importing the database that might be related to the issue ...
I could do with some help please . Thank you
Below is the php error log and the sql errors as well.
[13-Nov-2020 01:01:52 America/Chicago] PHP Fatal error: Cannot use 'Object' as class name as it is reserved in /home4/elhoster/imprentanetprint.com/concrete/libraries/object.php on line 3
[13-Nov-2020 01:13:19 America/Chicago] PHP Fatal error: Cannot use 'Object' as class name as it is reserved in /home4/elhoster/imprentanetprint.com/concrete/libraries/object.php on line 3
[13-Nov-2020 01:43:25 America/Chicago] PHP Fatal error: Cannot use 'Object' as class name as it is reserved in /home4/elhoster/imprentanetprint.com/concrete/libraries/object.php on line 3
[13-Nov-2020 01:53:04 America/Chicago] PHP Fatal error: Cannot use 'Object' as class name as it is reserved in /home4/elhoster/imprentanetprint.com/concrete/libraries/object.php on line 3
[14-Nov-2020 12:04:20 America/Chicago] PHP Fatal error: Cannot use 'Object' as class name as it is reserved in /home4/elhoster/imprentanetprint.com/concrete/libraries/object.php on line 3
[14-Nov-2020 12:05:16 America/Chicago] PHP Fatal error: Cannot use 'Object' as class name as it is reserved in /home4/elhoster/imprentanetprint.com/concrete/libraries/object.php on line 3
[14-Nov-2020 12:12:01 America/Chicago] PHP Fatal error: Cannot use 'Object' as class name as it is reserved in /home4/elhoster/imprentanetprint.com/concrete/libraries/object.php on line 3
[14-Nov-2020 12:15:09 America/Chicago] PHP Fatal error: Cannot use 'Object' as class name as it is reserved in /home4/elhoster/imprentanetprint.com/concrete/libraries/object.php on line 3
[14-Nov-2020 12:17:16 America/Chicago] PHP Fatal error: Cannot use 'Object' as class name as it is reserved in /home4/elhoster/public_html/imprentanetprint.com/concrete/libraries/object.php on line 3
[14-Nov-2020 12:19:02 America/Chicago] PHP Warning: require_once(/home4/elhoster/public_html/imprentanetprint.com/concrete/libraries/object.php): failed to open stream: No such file or directory in /home4/elhoster/public_html/imprentanetprint.com/concrete/startup/required.php on line 5
[14-Nov-2020 12:19:02 America/Chicago] PHP Fatal error: require_once(): Failed opening required '/home4/elhoster/public_html/imprentanetprint.com/concrete/libraries/object.php' (include_path='/home4/elhoster/public_html/imprentanetprint.com/libraries/3rdparty:/home4/elhoster/public_html/imprentanetprint.com/concrete/libraries/3rdparty:.:/opt/cpanel/ea-php74/root/usr/share/pear') in /home4/elhoster/public_html/imprentanetprint.com/concrete/startup/required.php on line 5
[14-Nov-2020 12:19:08 America/Chicago] PHP Warning: require_once(/home4/elhoster/public_html/imprentanetprint.com/concrete/libraries/object.php): failed to open stream: No such file or directory in /home4/elhoster/public_html/imprentanetprint.com/concrete/startup/required.php on line 5
[14-Nov-2020 12:19:08 America/Chicago] PHP Fatal error: require_once(): Failed opening required '/home4/elhoster/public_html/imprentanetprint.com/concrete/libraries/object.php' (include_path='/home4/elhoster/public_html/imprentanetprint.com/libraries/3rdparty:/home4/elhoster/public_html/imprentanetprint.com/concrete/libraries/3rdparty:.:/opt/cpanel/ea-php74/root/usr/share/pear') in /home4/elhoster/public_html/imprentanetprint.com/concrete/startup/required.php on line 5
[14-Nov-2020 12:20:45 America/Chicago] PHP Fatal error: Cannot use 'Object' as class name as it is reserved in /home4/elhoster/public_html/imprentanetprint.com/concrete/libraries/object.php on line 3
[14-Nov-2020 12:26:56 America/Chicago] PHP Fatal error: Cannot use 'Object' as class name as it is reserved in /home4/elhoster/public_html/imprentanetprint.com/concrete/libraries/object.php on line 3
[14-Nov-2020 12:32:49 America/Chicago] PHP Fatal error: Cannot use 'Object' as class name as it is reserved in /home4/elhoster/public_html/imprentanetprint.com/concrete/libraries/object.php on line 3
[14-Nov-2020 12:48:32 America/Chicago] PHP Fatal error: Cannot use 'Object' as class name as it is reserved in /home4/elhoster/public_html/imprentanetprint.com/concrete/libraries/object.php on line 3
-------------------------------------------------------------------------------------------------------------------
SQL errors
11 errors were found during analysis.
Unexpected character. (near "{" at position 247)
Unexpected beginning of statement. (near "DOCTYPE" at position 2)
Unexpected beginning of statement. (near "HTML" at position 10)
Unexpected beginning of statement. (near "html" at position 16)
Unexpected beginning of statement. (near "lang" at position 21)
Unexpected beginning of statement. (near "'en'" at position 26)
Unexpected beginning of statement. (near "dir" at position 31)
Unexpected beginning of statement. (near "'ltr'" at position 35)
Unexpected beginning of statement. (near "head" at position 42)
Unexpected beginning of statement. (near "meta" at position 48)
Unrecognized statement type. (near "charset" at position 53)
SQL query:
<!DOCTYPE HTML><html lang='en' dir='ltr'><head><meta charset="utf-8" /><meta name="referrer" content="no-referrer" /><meta name="robots" content="noindex,nofollow" /><meta http-equiv="X-UA-Compatible" content="IE=Edge" /><style id="cfs-style">html{display: none
MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '<!DOCTYPE HTML><html lang='en' dir='ltr'><head><meta charset="utf-8" /><meta nam' at line 1
I have just moved a concrete site to a new server and only html pages are working, the site itself triggers a 500 server error.
I check the php error log but it does not make sense, the files it says are not found are there indeed.
Also noticed some errors when importing the database that might be related to the issue ...
I could do with some help please . Thank you
Below is the php error log and the sql errors as well.
[13-Nov-2020 01:01:52 America/Chicago] PHP Fatal error: Cannot use 'Object' as class name as it is reserved in /home4/elhoster/imprentanetprint.com/concrete/libraries/object.php on line 3
[13-Nov-2020 01:13:19 America/Chicago] PHP Fatal error: Cannot use 'Object' as class name as it is reserved in /home4/elhoster/imprentanetprint.com/concrete/libraries/object.php on line 3
[13-Nov-2020 01:43:25 America/Chicago] PHP Fatal error: Cannot use 'Object' as class name as it is reserved in /home4/elhoster/imprentanetprint.com/concrete/libraries/object.php on line 3
[13-Nov-2020 01:53:04 America/Chicago] PHP Fatal error: Cannot use 'Object' as class name as it is reserved in /home4/elhoster/imprentanetprint.com/concrete/libraries/object.php on line 3
[14-Nov-2020 12:04:20 America/Chicago] PHP Fatal error: Cannot use 'Object' as class name as it is reserved in /home4/elhoster/imprentanetprint.com/concrete/libraries/object.php on line 3
[14-Nov-2020 12:05:16 America/Chicago] PHP Fatal error: Cannot use 'Object' as class name as it is reserved in /home4/elhoster/imprentanetprint.com/concrete/libraries/object.php on line 3
[14-Nov-2020 12:12:01 America/Chicago] PHP Fatal error: Cannot use 'Object' as class name as it is reserved in /home4/elhoster/imprentanetprint.com/concrete/libraries/object.php on line 3
[14-Nov-2020 12:15:09 America/Chicago] PHP Fatal error: Cannot use 'Object' as class name as it is reserved in /home4/elhoster/imprentanetprint.com/concrete/libraries/object.php on line 3
[14-Nov-2020 12:17:16 America/Chicago] PHP Fatal error: Cannot use 'Object' as class name as it is reserved in /home4/elhoster/public_html/imprentanetprint.com/concrete/libraries/object.php on line 3
[14-Nov-2020 12:19:02 America/Chicago] PHP Warning: require_once(/home4/elhoster/public_html/imprentanetprint.com/concrete/libraries/object.php): failed to open stream: No such file or directory in /home4/elhoster/public_html/imprentanetprint.com/concrete/startup/required.php on line 5
[14-Nov-2020 12:19:02 America/Chicago] PHP Fatal error: require_once(): Failed opening required '/home4/elhoster/public_html/imprentanetprint.com/concrete/libraries/object.php' (include_path='/home4/elhoster/public_html/imprentanetprint.com/libraries/3rdparty:/home4/elhoster/public_html/imprentanetprint.com/concrete/libraries/3rdparty:.:/opt/cpanel/ea-php74/root/usr/share/pear') in /home4/elhoster/public_html/imprentanetprint.com/concrete/startup/required.php on line 5
[14-Nov-2020 12:19:08 America/Chicago] PHP Warning: require_once(/home4/elhoster/public_html/imprentanetprint.com/concrete/libraries/object.php): failed to open stream: No such file or directory in /home4/elhoster/public_html/imprentanetprint.com/concrete/startup/required.php on line 5
[14-Nov-2020 12:19:08 America/Chicago] PHP Fatal error: require_once(): Failed opening required '/home4/elhoster/public_html/imprentanetprint.com/concrete/libraries/object.php' (include_path='/home4/elhoster/public_html/imprentanetprint.com/libraries/3rdparty:/home4/elhoster/public_html/imprentanetprint.com/concrete/libraries/3rdparty:.:/opt/cpanel/ea-php74/root/usr/share/pear') in /home4/elhoster/public_html/imprentanetprint.com/concrete/startup/required.php on line 5
[14-Nov-2020 12:20:45 America/Chicago] PHP Fatal error: Cannot use 'Object' as class name as it is reserved in /home4/elhoster/public_html/imprentanetprint.com/concrete/libraries/object.php on line 3
[14-Nov-2020 12:26:56 America/Chicago] PHP Fatal error: Cannot use 'Object' as class name as it is reserved in /home4/elhoster/public_html/imprentanetprint.com/concrete/libraries/object.php on line 3
[14-Nov-2020 12:32:49 America/Chicago] PHP Fatal error: Cannot use 'Object' as class name as it is reserved in /home4/elhoster/public_html/imprentanetprint.com/concrete/libraries/object.php on line 3
[14-Nov-2020 12:48:32 America/Chicago] PHP Fatal error: Cannot use 'Object' as class name as it is reserved in /home4/elhoster/public_html/imprentanetprint.com/concrete/libraries/object.php on line 3
-------------------------------------------------------------------------------------------------------------------
SQL errors
11 errors were found during analysis.
Unexpected character. (near "{" at position 247)
Unexpected beginning of statement. (near "DOCTYPE" at position 2)
Unexpected beginning of statement. (near "HTML" at position 10)
Unexpected beginning of statement. (near "html" at position 16)
Unexpected beginning of statement. (near "lang" at position 21)
Unexpected beginning of statement. (near "'en'" at position 26)
Unexpected beginning of statement. (near "dir" at position 31)
Unexpected beginning of statement. (near "'ltr'" at position 35)
Unexpected beginning of statement. (near "head" at position 42)
Unexpected beginning of statement. (near "meta" at position 48)
Unrecognized statement type. (near "charset" at position 53)
SQL query:
<!DOCTYPE HTML><html lang='en' dir='ltr'><head><meta charset="utf-8" /><meta name="referrer" content="no-referrer" /><meta name="robots" content="noindex,nofollow" /><meta http-equiv="X-UA-Compatible" content="IE=Edge" /><style id="cfs-style">html{display: none
MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '<!DOCTYPE HTML><html lang='en' dir='ltr'><head><meta charset="utf-8" /><meta nam' at line 1
This looks like a pre-5.7 install since the 'concrete/libraries/' folder path only exists in 5.6 and earlier.
Thanks for your help ! I changed the php version and everything works fine now .. I will be redesigning the site with the updated version of concrete !
My guess is that you've moved either a concrete5.6.x site that isn't on the latest version, or you've moved a concrete5.7.x site, to a server that is running PHP 7.
The other errors may simply be triggered from similar incompatibilities.
The solution to this is to run the site through PHP 5.6, which you'd change your hosting's control panel. Then aim to upgrade the site to a later version, so you can then eventually run the site under PHP 7.
You might also hit some database issues as well, that's hard to say, but should also be solved by upgrading.
If you're not familiar with upgrading concrete5 sites, you should be able post a job here on the forums, where someone with experience can offer this as a service.