ushainformatique / whatacart

E-Commerce Platform on Yii2
http://whatacart.com
GNU General Public License v3.0
76 stars 43 forks source link

Whatcacart 2.0.9 throws Automatic conversion of false to array is deprecated #37

Open prbt2016 opened 4 months ago

prbt2016 commented 4 months ago

Hello,

I was in the process of manual installation of Whatacart on 2.0.9 on AlmaLinux release 8.9 (Midnight Oncilla) with PHP 8.1/8.2/8.3 and MYSQL 5.7, Apache 2.4.

However I get the following issue after successful installation via composer .

i.e :

composer create-project ushainformatique/whatacart '/{{PATH}}/{{TO}}/{{INSTALLATION-DIR}}'

And then running :

http://example.com/{{WHATACART-FOLDER}}

After entering admin and database details Whatacart gets installed successfully.

But after visiting frontend or backend links i.e :

http://example.com/{{WHATACART-FOLDER}}/backend/index.php/users/default/login

or frontend link

http://example.com/{{WHATACART-FOLDER}}

I get the following error i.e :

image

After i enable the debug in instance.php I get the following error i.e please check screenshot below :

waerror


PHP Deprecated Warning – [yii\base\ErrorException](https://www.yiiframework.com/doc-2.0/yii-base-errorexception.html)
Automatic conversion of false to array is deprecated

    1. in /{{PATH}}/{{TO}}/{{WHATACART}}/protected/common/modules/stores/business/ConfigManager.php

Could you please replicate this at your end?.

Kindly let me know.

Regards.

prbt2016 commented 4 months ago

Hello ,

Any updates regarding the above issue?.

Kindly let me know.

Regards.

ushainformatique commented 4 months ago

Hello,

I am sorry for delayed response. I am not able to replicate the same at my end. At my end the configuration is PHP 8.2.19, Apache 2.4 and MySQL 8.0.36.

Please let me know the exact configuration at your end.

Regards, Mayank

whatacart_2 0 9_backend

ushainformatique commented 4 months ago

Please check this "If in php.ini the error reporting is set to E_ALL, there would be depreciation errors. So keep setting as E_ALL & ~E_DEPRECATED & ~E_STRICT in php.ini for the application to work properly." This instruction is given in PHP8_Changes.md.

prbt2016 commented 2 months ago

Hello ,

Apologies for the delay in reply . I didn't have error_reporting variable set in my ini configuration . I had to add it explicitly to ini file i.e :

error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT . After that it's working . Thanks for your help.

Regards.