Page 1 of 1

OpenCATS System Check Error: PHP.ini: magic_quotes_runtime must be set to Off in php.ini.

Posted: 12 Aug 2024, 15:24
by Venura
I have OpenCATS installed on my cpanel in the home/[user]/public_html folder and I am getting the following error: PHP.ini: magic_quotes_runtime must be set to Off in php.ini.
Check your settings in php.ini..

I am running PHP version 8.1.29 on AlmaLinux which is subset of Linux Red Hat distro. I went into the correct php.ini as it says in the "Loaded Configuration File" part of the output of phpinfo() and set "magic_quotes_runtime = Off", but I still get the same error after restarting the apache server with "systemctl restart httpd" and retrying the installation.

How do I fix this issue? Or get around it?

error.PNG
error.PNG (81.99 KiB) Viewed 18849 times
phpini.PNG
phpini.PNG (14.37 KiB) Viewed 18849 times

Re: OpenCATS System Check Error: PHP.ini: magic_quotes_runtime must be set to Off in php.ini.

Posted: 04 Nov 2024, 15:42
by RussH
Hi,

the release version of Opencats currently does not support PHP higher than v7.2

Re: OpenCATS System Check Error: PHP.ini: magic_quotes_runtime must be set to Off in php.ini.

Posted: 19 Nov 2024, 08:49
by acpsupport
Verify the magic_quotes_runtime is ON or OFF via browser
Just create a info.php file with
<?php
phpinfo();
?>
Access via browser https://your_domain_name/info.php and search for key words "magic_quotes_runtime" to see, if it is ON or OFF.
Once tested, please remove the info.php file for the security concerns.

Alternatively, Disable Magic Quotes using .htaccess file
Create a .htaccess file under the public_html folder of the domain that needs to disable magic_quotes and magic_quotes_gpc and put these lines in htaccess file.
php_value magic_quotes 0
php_flag magic_quotes off
php_value magic_quotes_gpc 0
php_flag magic_quotes_gpc off