WebSite X5Help Center

 
J. Van Parys
J. Van Parys
User

Php error after upgrading to 2022.1.4  en

Autor: J. Van Parys
Besucht 1519, Followers 2, Geteilt 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

Gepostet am
11 ANTWORTEN - 1 NüTZLICH - 1 KORREKT
J. Van Parys
J. Van Parys
User
Autor

In addition : this is the database structure

Mehr lesen
Gepostet am von J. Van Parys
Andre E
Andre E
Moderator

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.

Mehr lesen
Gepostet am von Andre E
Andre E
Andre E
Moderator

komt wel binnen trouwens ondanks error.....

Mehr lesen
Gepostet am von Andre E
J. Van Parys
J. Van Parys
User
Autor

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

Mehr lesen
Gepostet am von J. Van Parys
J. Van Parys
J. Van Parys
User
Autor

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

Mehr lesen
Gepostet am von J. Van Parys
J. Van Parys
J. Van Parys
User
Autor

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

Mehr lesen
Gepostet am von J. Van Parys
J. Van Parys
J. Van Parys
User
Autor

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 ...

Mehr lesen
Gepostet am von J. Van Parys
J. Van Parys
J. Van Parys
User
Autor

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 ?

Mehr lesen
Gepostet am von J. Van Parys
J. Van Parys
J. Van Parys
User
Autor

the exact PHP version used is 8.0.17

Mehr lesen
Gepostet am von 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

Mehr lesen
Gepostet am von Stefano G.
J. Van Parys
J. Van Parys
User
Autor

Hi Stefano,

I disabled the PHP warnings.

Now everything is running fine.

THANKS !!

Johan

Mehr lesen
Gepostet am von J. Van Parys