Tried to install osclass8.0.2
2022/12/07 04:57:16 [error] 1276#1276: *122 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Undefined constant "WEB_PATH" in /var/www/html/osclass/oc-includes/osclass/default-constants.php:37
So I added in default-constants.php :
if (!defined('WEB_PATH')) {
define('WEB_PATH', 'http:// localhost');
}
And then I get the next error:
2022/12/07 04:59:39 [error] 1276#1276: *126 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught mysqli_sql_exception: Cannot add or update a child row: a foreign key constraint fails (`osclass`.`oc_t_country_stats`, CONSTRAINT `oc_t_country_stats_ibfk_1` FOREIGN KEY (`fk_c_country_code`) REFERENCES `oc_t_country` (`pk_c_code`)) in /var/www/html/osclass/oc-includes/osclass/classes/database/DBCommandClass.php:954
Tried to install the versions below:
osclass3.8.1.zip
osclass-v4.3.2.zip
osclass4.4.zip
osclass-v4.0.1.zip
osclass4.4.zip
In older versions I got errors like this:
2022/12/07 03:57:33 [error] 1277#1277: *67 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function get_magic_quotes_gpc() in /var/www/html/osclass/oc-includes/osclass/helpers/hErrors.php:63
But here I can understand. This is deprecated function.
Why doesn't work installation?
My system configuration:
lubuntu 5.15.0-53-generic
PHP 8.1.12
mysql Ver 8.0.31-0ubuntu0.22.04.1
nginx/1.22.0