WebSite X5Help Center

 
J. Van Parys
J. Van Parys
User

Php error after upgrading to 2022.1.4  en

Автор: J. Van Parys
Просмотрено 1001, Подписчики 2, Размещенный 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

Размещено
11 Ответы - 1 Полезно - 1 Корректно
J. Van Parys
J. Van Parys
User
Автор

In addition : this is the database structure

Читать больше
Размещено От 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.

Читать больше
Размещено От Andre E
Andre E
Andre E
Moderator

komt wel binnen trouwens ondanks error.....

Читать больше
Размещено От Andre E
J. Van Parys
J. Van Parys
User
Автор

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

Читать больше
Размещено От J. Van Parys
J. Van Parys
J. Van Parys
User
Автор

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

Читать больше
Размещено От J. Van Parys
J. Van Parys
J. Van Parys
User
Автор

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

Читать больше
Размещено От J. Van Parys
J. Van Parys
J. Van Parys
User
Автор

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

Читать больше
Размещено От J. Van Parys
J. Van Parys
J. Van Parys
User
Автор

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 ?

Читать больше
Размещено От J. Van Parys
J. Van Parys
J. Van Parys
User
Автор

the exact PHP version used is 8.0.17

Читать больше
Размещено От 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

Читать больше
Размещено От Stefano G.
J. Van Parys
J. Van Parys
User
Автор

Hi Stefano,

I disabled the PHP warnings.

Now everything is running fine.

THANKS !!

Johan

Читать больше
Размещено От J. Van Parys