Fatal Error

Hi there,

Long story short but I took over hosting of an old Concrete website for a client after the other agency that built it went bust. It was working without issues since November but all of a sudden I’m getting the following fatal errors when viewing the site:

Warning: realpath(): It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone ‘UTC’ for now, but please set date.timezone to select your timezone. in /home/birdsandbees/public_html/concrete/config/base_pre.php on line 4

Warning: realpath() has been disabled for security reasons in /home/birdsandbees/public_html/concrete/config/base_pre.php on line 4

Warning: realpath(): It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone ‘UTC’ for now, but please set date.timezone to select your timezone. in /home/birdsandbees/public_html/concrete/config/base.php on line 137

Warning: realpath() has been disabled for security reasons in /home/birdsandbees/public_html/concrete/config/base.php on line 137

Warning: require_once(): It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone ‘UTC’ for now, but please set date.timezone to select your timezone. in /home/birdsandbees/public_html/concrete/startup/required.php on line 4

Warning: require_once(/core/libraries/object.php): failed to open stream: No such file or directory in /home/birdsandbees/public_html/concrete/startup/required.php on line 4

Warning: require_once(): It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone ‘UTC’ for now, but please set date.timezone to select your timezone. in /home/birdsandbees/public_html/concrete/startup/required.php on line 4

Fatal error: require_once(): Failed opening required ‘/core/libraries/object.php’ (include_path=‘/libraries/3rdparty:/libraries/3rdparty:.:/opt/cpanel/ea-php56/root/usr/share/pear’) in /home/birdsandbees/public_html/concrete/startup/required.php on line 4

I have no experience in Concrete CMS and the first back-up restore from 4 days ago has not fixed it. The CMS has not been updated for years as it’s running 5.6.3.4 and PHP5.6. If I update PHP it breaks the whole site.

Any help would be much appreciated for a stuck web designer/host.

I would update to Concrete 5.6.4.0 and then upgrade php to 7.4

Okay, thank you @ConcreteOwl - that won’t affect the front-end design of the website at all? My plan is to completely redo the websites anyway, but I just need the original one back up and running until I can launch the new ones.

PHP 7.4 could cause some errors in your addons code.
If it does post the errors here there are plenty of good guys on this forum willing to help.
The ideal solution would be to copy your site into a development environment such as WAMP and thoroughly test it before commiting it to a live server.

Okay thank you. I’ve found the 5.6.4.0 download but I don’t have access to the dashboard with the ongoing fatal error, only access to CPanel through the hosting manager (Linux). Is there an easy way to upgrade or do I need to manually overwrite?

Try this, extract the 5.6.4.0 zipped folder into your root/updates folder.
then tag this code to the end of your site url.
/index.php/tools/required/upgrade?force=1 and click enter.
So the url will look like
https://YOUR_WEBSITE/index.php/tools/required/upgrade?force=1

Hi there, thanks for replying.
I’ve tried that but nothing happens when you try that code at the end of the site url. I’ve fixed the timezone issues (php.ini) and done some more investigation and I think my host as disabled realpath() on my server environment which I think could be the issue.

If realpath() is disabled and Concrete 5.6.3.4 uses realpath() to resolve paths like /core/libraries/object.php. With it disabled, the paths won’t resolve and why I’m getting the error (I think). I’ve contacted my host to find out if they can enable it but as it’s a shared hosting environment and given PHP5.6 hasn’t been supported for a while, I don’t think they will do it.

These are the errors I’m getting:

Warning: realpath() has been disabled for security reasons in /home/[NAME]/public_html/concrete/config/base_pre.php on line 4

Warning: realpath() has been disabled for security reasons in /home/[NAME]/public_html/concrete/config/base.php on line 137

Warning: require_once(/core/libraries/object.php): failed to open stream: No such file or directory in /home/[NAME]/public_html/concrete/startup/required.php on line 4

Fatal error: require_once(): Failed opening required ‘/core/libraries/object.php’ (include_path=‘/libraries/3rdparty:/libraries/3rdparty:.:/opt/cpanel/ea-php56/root/usr/share/pear’) in /home/[NAME]/public_html/concrete/startup/required.php on line 4

Have you upgraded the server to php7.4? It appears you’re still on php56

Did you extract the concrete5.6.4.0.zip folder into your root/updates folder?
Can you post your website address here?