Tuesday, 10 July 2018 08:09

Solution for PHP error Undefined variable: _SERVER in /home/xxx/public_html/libraries/cms34

Written by
Rate this item
(1 Vote)

The following php error is likely to occur when your site PHP version has been changed from PHP 5.xx  to the new PHP 7 version.

The culprit is likely to be the file "php.ini" which was left and wrongly added at root level.

Notice: Undefined variable: _SERVER in /home/yoursitename/public_html/libraries/cms.php

To correct this issue, simply rename your php.ini to phpold.ini.txt and it should do the trick.

Please note that Siteground (hosting provider), tends to automatically add a php.ini at root folder during site transfer or creation of a new CMS site.

Web Hosting

Read 837 times Last modified on Wednesday, 17 July 2019 18:22
Login to post comments