AbanteCart Community

Shopping Cart Operations => Support => Topic started by: HADY on January 24, 2022, 04:24:56 AM

Title: PHP 8.1 compatibility
Post by: HADY on January 24, 2022, 04:24:56 AM
Hello,

I would like to ask if AbanteCart v1.3.2 compatible with PHP 8.1. Am asking because i gave it a try, the admin page working fine but the website interface appeared just like a blank page.


Thank you...
Title: Re: PHP 8.1 compatibility
Post by: Basara on January 24, 2022, 06:20:48 AM
Hello.
https://abantecart.atlassian.net/wiki/spaces/AD/pages/3768390/AbanteCart+System+Requirements
Try php 8.0 or 7.4
Title: Re: PHP 8.1 compatibility
Post by: HADY on January 24, 2022, 06:28:10 AM
Hello.
https://abantecart.atlassian.net/wiki/spaces/AD/pages/3768390/AbanteCart+System+Requirements
Try php 8.0 or 7.4

I am already using php 8.0, it is working fine.
Title: Re: PHP 8.1 compatibility
Post by: HADY on January 26, 2022, 06:29:02 AM
 Hello,


I did used php 8.0, it is working but when i click on settings in Admin webpage it is becoming blank page. I started to use 7.4 and everything working well.

What should be done in this case to use 8.0 ??

Thank you...
Title: Re: PHP 8.1 compatibility
Post by: Basara on January 26, 2022, 07:27:07 AM
Hello.
You can check the AbanteCart error log to find out.
It can be some 3rd party extension or your modifications
Title: Re: PHP 8.1 compatibility
Post by: HADY on January 27, 2022, 02:27:18 AM
Hello.
You can check the AbanteCart error log to find out.
It can be some 3rd party extension or your modifications

Hello,

According to AbanteCart error log recordes it is related to safe_mode:

in my php.ini my safe_mode is Off and on cPanel it was enabled, I tried many methods on cPanel and php.ini but no positive results.


the error log details as here;
2022-01-27 10:22:21 - Unknown Error: AbanteCart core v.1.3.2 Call to undefined function set_time_limit() in <b>/public_html/admin/controller/responses/common/resource_library.php</b> on line <b>22</b>

I turned Off ModSecurity from cPanel and php.ini and Enabled them in both then cleaned the website and browser cache but nothing did changed.


What is the solution please?

Thank you...
Title: Re: PHP 8.1 compatibility
Post by: abolabo on January 27, 2022, 07:06:52 AM
Hello.
You can check the AbanteCart error log to find out.
It can be some 3rd party extension or your modifications

Hello,

According to AbanteCart error log recordes it is related to safe_mode:

in my php.ini my safe_mode is Off and on cPanel it was enabled, I tried many methods on cPanel and php.ini but no positive results.


the error log details as here;
2022-01-27 10:22:21 - Unknown Error: AbanteCart core v.1.3.2 Call to undefined function set_time_limit() in <b>/public_html/admin/controller/responses/common/resource_library.php</b> on line <b>22</b>

I turned Off ModSecurity from cPanel and php.ini and Enabled them in both then cleaned the website and browser cache but nothing did changed.


What is the solution please?

Thank you...

php8 supports this function.
You can check if this function presents in the disable_functions directive inside phpinfo() output (see admin->system->settings->system->button PHPINFO)
Title: Re: PHP 8.1 compatibility
Post by: HADY on January 27, 2022, 07:36:55 AM


php8 supports this function.
You can check if this function presents in the disable_functions directive inside phpinfo() output (see admin->system->settings->system->button PHPINFO)

On php 8.0 impossible to access  (admin->system->settings->system->button PHPINFO), is there any other way to check if that function included or not ??

Title: Re: PHP 8.1 compatibility
Post by: Basara on January 28, 2022, 02:15:00 AM
On php 8.0 impossible to access  (admin->system->settings->system->button PHPINFO), is there any other way to check if that function included or not ??

Hello. You can ask your hosting support.
Title: Re: PHP 8.1 compatibility
Post by: abolabo on January 28, 2022, 07:04:47 AM


php8 supports this function.
You can check if this function presents in the disable_functions directive inside phpinfo() output (see admin->system->settings->system->button PHPINFO)

On php 8.0 impossible to access  (admin->system->settings->system->button PHPINFO), is there any other way to check if that function included or not ??

looks like phpinfo() forbidden too.
Ask techsupport of provider about their paranoid mode :-)