General Discussion

Schlix Broken after ISP PHP 8 Update...Help?

Selezen ·
Hi all,

My ISP upgraded hosting to PHP 8 recently and since then my Schlix installation has broken. Is there any way I can update the site to 2.2.6+ without being able to use the site's upgrade tool? I;ve read a few articles about creating a fix-update.php file to use a manual update option (e.g. https://www.schlix.com/documentation/v2/configuration/recovering-from-database-error-during-upgrade.html) but that has not worked.

Please let me know if you need any more information than this. My website URL is daftworks.co.uk

Thanks in advance

prana ·
Hi Selezen,

v2.2.8 should be working for PHP up until version 8.1. If it still doesn't work, perhaps you could change the error_reporting(....) following code in /web/main/config.inc.php (note that "main" can be any subsite name)

/**********************************************************************/
/* Do not modify below this line - this is for auto http/https switch */
define('SCHLIX_SITE_URL', (defined('SCHLIX_SITE_HTTPS_URL') && SCHLIX_SITE_SSL_ENABLED && SCHLIX_SITE_HTTPS_URL !='' && ($_SERVER==='on' || $_SERVER===1 || $_SERVER===443)) ? SCHLIX_SITE_HTTPS_URL : SCHLIX_SITE_HTTP_URL);
/**********************************************************************/
error_reporting(E_ERROR|E_WARNING|E_PARSE|E_NOTICE|E_CORE_ERROR|E_CORE_WARNING|E_COMPILE_ERROR|E_COMPILE_WARNING);
@ini_set('display_errors',false);
@ini_set('log_errors',true);

Change it to :



/**********************************************************************/
/* Do not modify below this line - this is for auto http/https switch */
define('SCHLIX_SITE_URL', (defined('SCHLIX_SITE_HTTPS_URL') && SCHLIX_SITE_SSL_ENABLED && SCHLIX_SITE_HTTPS_URL !='' && ($_SERVER==='on' || $_SERVER===1 || $_SERVER===443)) ? SCHLIX_SITE_HTTPS_URL : SCHLIX_SITE_HTTP_URL);
/**********************************************************************/
error_reporting(E_ERROR);
@ini_set('display_errors',false);
@ini_set('log_errors',true);

Let me know if it still doesn't work.

Selezen ·
Hi, thanks for the suggestion. Gave it a try and it made no difference to the output.

I am currently using v2.2.4 on the site which is where I feel the problem arises - this version is not compatible with php8+ and I have no way to upgrade.

Happy for more suggestions

prana ·
I need more information about the errors.

1) Can you please copy & paste the error messages?

2) If there's no error message, can you attach a screenshot?

3) What is the control panel of the hosting? DirectAdmin? CPanel? Or something else?

In the mean time, here's several suggestions (since I don't have the exact error messages):

1) Download the ZIP file from https://www.schlix.com/html/schlix-cms-downloads.html and then extract it. Then upload ALL the files in /schlix/ via FTP or SFTP to the ROOT folder of SCHLIX CMS installation (you have to go inside the folder /schlix). Use FileZilla or some FTP/SFTP client if it makes it easier.

2) Go to your hosting control panel, select the PHP version to v7.4. Then upgrade manually.

Let me know if it still doesn't work (and please give me the error message), I'll try to provide assistance as much as possible.