WebSite X5Help Center

 
J. Van Parys
J. Van Parys
User

Php error after upgrading to 2022.1.4  en

Autor: J. Van Parys
Visitado 1587, Seguidores 2, Compartilhado 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

Publicado em
11 RESPOSTAS - 1 ÚTIL - 1 CORRIGIR
J. Van Parys
J. Van Parys
User
Autor

In addition : this is the database structure

Ler mais
Publicado em de J. Van Parys
Andre E
Andre E
Moderator
Usuário do mês 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.

Ler mais
Publicado em de Andre E
Andre E
Andre E
Moderator
Usuário do mês EN

komt wel binnen trouwens ondanks error.....

Ler mais
Publicado em de 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

Ler mais
Publicado em de 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

Ler mais
Publicado em de 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...)

Ler mais
Publicado em de 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 ...

Ler mais
Publicado em de 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 ?

Ler mais
Publicado em de J. Van Parys
J. Van Parys
J. Van Parys
User
Autor

the exact PHP version used is 8.0.17

Ler mais
Publicado em 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

Ler mais
Publicado em de Stefano G.
J. Van Parys
J. Van Parys
User
Autor

Hi Stefano,

I disabled the PHP warnings.

Now everything is running fine.

THANKS !!

Johan

Ler mais
Publicado em de J. Van Parys