Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: PHP 8.1 compatibility  (Read 719 times)

Offline HADY

  • Sr. Member
  • ****
  • Posts: 287
  • Karma: +25/-5
    • View Profile
PHP 8.1 compatibility
« 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...
-----------------------------
Regards
HADY

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5201
  • Karma: +260/-2
    • View Profile

Offline HADY

  • Sr. Member
  • ****
  • Posts: 287
  • Karma: +25/-5
    • View Profile
Re: PHP 8.1 compatibility
« Reply #2 on: January 24, 2022, 06:28:10 AM »
-----------------------------
Regards
HADY

Offline HADY

  • Sr. Member
  • ****
  • Posts: 287
  • Karma: +25/-5
    • View Profile
Re: PHP 8.1 compatibility
« Reply #3 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...
-----------------------------
Regards
HADY

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5201
  • Karma: +260/-2
    • View Profile
Re: PHP 8.1 compatibility
« Reply #4 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

Offline HADY

  • Sr. Member
  • ****
  • Posts: 287
  • Karma: +25/-5
    • View Profile
Re: PHP 8.1 compatibility
« Reply #5 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...
« Last Edit: January 27, 2022, 02:39:36 AM by HADY »
-----------------------------
Regards
HADY

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1989
  • Karma: +305/-12
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: PHP 8.1 compatibility
« Reply #6 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)
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline HADY

  • Sr. Member
  • ****
  • Posts: 287
  • Karma: +25/-5
    • View Profile
Re: PHP 8.1 compatibility
« Reply #7 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 ??

-----------------------------
Regards
HADY

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5201
  • Karma: +260/-2
    • View Profile
Re: PHP 8.1 compatibility
« Reply #8 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.

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1989
  • Karma: +305/-12
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: PHP 8.1 compatibility
« Reply #9 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 :-)
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

 

Powered by SMFPacks Social Login Mod