• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

class base_modules_session Error

L

llaehn

Guest
Hello Forum,

i have installed the Sitebuilder 4.2.3 on a Debian Etch Server.
The php have utf8 supprt. I checked it with php -i
i can open sb_modules.php in data folder with sqlite_open() and can rwad data with sqlite_query.
i think the sqlite in php5 works.

but if i publish the site via ftp in the local confixx account i get the following error:
Main check script has been uploaded via FTP.
Check script file name: f12bd37f8b226dc1dcde812a5ab13e1b.php
Site name: Test2
Site owner: web2
Publication settings target: ftp://web2@localhost/html/sitebuilder
Publication settings url: http://sitebuilder.XXXXX.de/

Target environment has been checked successfully.
Site name: Test2
Site owner: web2
Publication settings target: ftp://web2@localhost/html/sitebuilder
Publication settings url: http://sitebuilder.XXXXX.de/

Invalid server response:
fatal error: class base_modules_session: cannot inherit from undefined class http_session in /var/www/web2/html/sitebuilder/include/base/modules/session.php on line 17

Cannot update modules data.
Site name: Test2
Site owner: web2
Publication settings target: ftp://web2@localhost/html/sitebuilder
Publication settings url: http://sitebuilder.XXXXX.de/

The site 'Test2' has been published, but with errors.
Site name: Test2
Site owner: web2
Publication settings target: ftp://web2@localhost/html/sitebuilder
Publication settings url: http://sitebuilder.XXXXX.de/

What can i do?
can anyone help me please.

regards
lar
 
Most probably you use PHP 5.2.5 version on publishing side.
This is a known issue caused by one of security bug fixed in PHP version 5.2.5, option php_admin_value set in apache configuration cannot be overwritten by function ini_set: http://www.php.net/ChangeLog-5.php#5.2.5
Sitebuilder uses ini_set to redefine include_path and look into other directories through its scripts. However it cannot overwrite include_path to required files in PHP version 5.2.5, hence it fails.

You can check also following bugs: http://bugs.php.net/bug.php?id=43755 http://bugs.php.net/bug.php?id=43677

To resolve the problem I can advise you to:

1) downgrade PHP to version 5.2.4 or under / or upgrade to 5.2.6 version. According to PHP bugs it should be corrected in 5.2.6 release.
2) replace option 'php_admin_value include_path' with 'php_value include_path' in all apache confutation files.
 
Hello Dmitry,

thanks for reply.
i have PHP 5.2.6 fom dotdeb.
i have compiled with some individual options but it is 5.2.6.
I have replace the php_admin_value include_path from confixx_mhost.conf with php_value and it works fine.

thanks for help
regards
lars
 
Back
Top