WebSite X5Help Center

 
J. Van Parys
J. Van Parys
User

Php error after upgrading to 2022.1.4  en

Auteur : J. Van Parys
Visité 1590, Followers 2, Partagé 0  

Hi,

I have a webshop built in version 2019.1.6. Now I copied this site to adapt some things. When opening the copied site I was informed that the sit would be converted to version 2022.1.4 (my current version).

No problem, no errors during conversion.

But when I want to check out my cart (buy now) I get a popoup window saying "generic error" and I stay on the "buy now" page. But the order is processed because I receive a confirmation email with order number etc...

But if I go to the admin page , I get below error message on top of the page : 

"Warning: Undefined array key "column" in /customers/b/9/1/vpsystem.be/httpd.www/brunch2022/res/x5engine.php on line 6548 Warning: Undefined array key "column" in /customers/b/9/1/vpsystem.be/httpd.www/brunch2022/res/x5engine.php on line 6548 Warning: Undefined array key "column" in /customers/b/9/1/vpsystem.be/httpd.www/brunch2022/res/x5engine.php on line 6548 Warning: Undefined array key "select" in /customers/b/9/1/vpsystem.be/httpd.www/brunch2022/res/x5engine.php on line 6415"

The admin page does load and I can perform whatever actions.

Can this have something to do with the conversion ? This site is accessing the same database as the previous version so maybe I have to sort of update my database as well as the latest version expects another table structure maybe ??

my URL is vpsystem.be/brunch2022 (in Dutch)

Thanks in advance

Johan

Posté le
11 RéPONSES - 1 UTILES - 1 CORRECT
J. Van Parys
J. Van Parys
User
Auteur

In addition : this is the database structure

Lire plus
Posté le de J. Van Parys
Andre E
Andre E
Moderator
Meilleur utilisateur du mois EN

please check php version used at your host is this set at 8.0 or higher?

if it still does not work do a full upload and try again.

Lire plus
Posté le de Andre E
Andre E
Andre E
Moderator
Meilleur utilisateur du mois EN

komt wel binnen trouwens ondanks error.....

Lire plus
Posté le de Andre E
J. Van Parys
J. Van Parys
User
Auteur

Dag Andre

ja het lukt wel ondanks de error. Ik heb ook de bevestigingsmail van je bestelling gezien.

PHP is idd 8.0

Ik heb gisteren nog een full upload gedaan maar dat bracht geen soelaas

Groeten,

Johan

Lire plus
Posté le de J. Van Parys
J. Van Parys
J. Van Parys
User
Auteur

I also renamed the databse tables and tried again.

The new tables were neatly created , but I still get the "generic error" message and the error on the admin page. although the orders are correctly processed and the admin page displays the correct information.

Johan

Lire plus
Posté le de J. Van Parys
J. Van Parys
J. Van Parys
User
Auteur

When I try in preview mode it works fine (but there is no database involved then obviously...)

Lire plus
Posté le de J. Van Parys
J. Van Parys
J. Van Parys
User
Auteur

I exported the template settings of my site & imported them in a brand new project. I recreated my shopping cart, pages, etc....

Same errors, so I guess it has nothing to do with copying and upgrading  but rather a bug in the latest version ...

Lire plus
Posté le de J. Van Parys
J. Van Parys
J. Van Parys
User
Auteur

Apparently it is the PHP version used.

Although there is no error message when exporting the site ("checking PHP version") there is something wrong. The PHP version used is 8.0

I experimented with 8.1 but that was even worse : the admin page wouldn't load anymore and the PHPmailer also didn't work anymore.

some thoughts ?

Lire plus
Posté le de J. Van Parys
J. Van Parys
J. Van Parys
User
Auteur

the exact PHP version used is 8.0.17

Lire plus
Posté le de J. Van Parys
Incomedia
Stefano G.
Incomedia

Good afternoon Van Parys

I believe this might be due to PHP Warnings, which are error messages meant for development only that can cause trouble in a live website.

For this reason, they must always be turned off

Please contact your hosting provider's support and ask them to disable any PHP Warning for your website. The issue should be solved then and you should never see those messages again

Please try this out and let me know if it works

Thank you

Stefano

Lire plus
Posté le de Stefano G.
J. Van Parys
J. Van Parys
User
Auteur

Hi Stefano,

I disabled the PHP warnings.

Now everything is running fine.

THANKS !!

Johan

Lire plus
Posté le de J. Van Parys