*

qgekdy

  • *
  • 1 posts
Can not install OsClass
« on: December 07, 2022, 03:39:40 AM »
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

*

MB Themes

Re: Can not install OsClass
« Reply #1 on: December 07, 2022, 11:45:02 AM »
WEB_PATH is defined in config.php
PHP 8.1 may not work properly.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Marked as best answer by frosticek on December 08, 2022, 08:42:38 PM
*

qgekd

  • *
  • 1 posts
Re: Can not install OsClass
« Reply #2 on: December 07, 2022, 03:04:19 PM »
Solved this problem by installing OsClass v8.0.0

*

MB Themes

Re: Can not install OsClass
« Reply #3 on: December 08, 2022, 08:42:48 PM »
Cg :-*
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots