WebSite X5Help Center

 
Bert E.
Bert E.
User

Generic error sending shopping card.  en

Autor: Bert E.
Visitado 931, Seguidores 1, Compartilhado 0  

It is not possible to send the shopping card anymore. Customes receive the messege ' Generic error' The PHP version is 8.3 (latest). The provider says the problem lies within the programma. What can be wrong? 

Publicado em
28 RESPOSTAS - 2 ÚTEIS - 1 CORRIGIR
Incomedia
Elisa B.
Incomedia

Hi Bert!

WebSite X5 isn't unfortunately compatible with version 8.3 of PHP, you may want to try with a different version from 7.1 to 8.2

Thanks! Kind regards.

Ler mais
Publicado em de Elisa B.
Bert E.
Bert E.
User
Autor

Hi Elise,

Thanks. I changed the PHP to 8.1 but the problem is not over yet. Can there be something else go wrong? 

Kind regards,

Bert 

Ler mais
Publicado em de Bert E.
Incomedia
Elisa B.
Incomedia

Hi Bert, 

could you please report the link to your website?

Thanks! Kind regards.

Ler mais
Publicado em de Elisa B.
Bert E.
Bert E.
User
Autor

and some more information: My provider tried all kinds of php versions (8.0, 8.1, 8,2 and older) but says it is a problem in the programm. The error code is as follows: 
<?php $cart = Configuration::getCart(); $id = isset($_GET['id']) ? $_GET['id'] : $cart->getProductIdBySlug(array_keys($_GET)[0]); if ($id == null || $id == '') { header('Location: ' . $imSettings['general']['homepage_url']); } $product =  $cart->getProductsData($id)[$id]; if ($product == null || !isset($product['productPageLinkType']) || $product['productPageLinkType'] != 'productpage') { header('Location: ' . $imSettings['general']['homepage_url']); } ?>
<!DOCTYPE html><!-- HTML5 -->

Ler mais
Publicado em de Bert E.
Bert E.
Bert E.
User
Autor

Hello Axel.

We tried this also, but unfortunately without any result. We even tried it with different PHP versions. But thanks for the information. 

Bert 

Ler mais
Publicado em de Bert E.
Axel  
Axel  
User

Ok ...pffff...

Ask to your provider or check by yourself PHP error logs and alos Apache error logs too.

Your previous PHP message is not enough.... Need to have logs before and after this message were nothing indicates that's an ERROR just by the wording.

Could be useful

Axel

Ler mais
Publicado em de Axel  
Bert E.
Bert E.
User
Autor

ok thanks, I have asked them. Hope to answer you soon. 

Kind regards, Bert 

Ler mais
Publicado em de Bert E.
Bert E.
Bert E.
User
Autor

This is what I can see for myself as PHP error logs: 

[Thu May 02 21:25:46.164083 2024] [lsapi:warn] [pid 955350:tid 139718417123072] [client 159.138.109.164:36356] [host miniaturesandhistory.com] Backend log: PHP Warning: Undefined array key 0 in /home/u46159p41776/domains/miniaturesandhistory.com/public_html/product/index.php on line 2\n [Thu May 02 21:25:46.166648 2024] [lsapi:warn] [pid 955350:tid 139718417123072] [client 159.138.109.164:36356] [host miniaturesandhistory.com] Backend log: PHP Warning: Undefined array key "" in /home/u46159p41776/domains/miniaturesandhistory.com/public_html/product/index.php on line 2\n [Thu May 02 21:25:46.166878 2024] [lsapi:warn] [pid 955350:tid 139718417123072] [client 159.138.109.164:36356] [host miniaturesandhistory.com] Backend log: PHP Warning: Trying to access array offset on value of type null in /home/u46159p41776/domains/miniaturesandhistory.com/public_html/product/index.php on line 57\n

Ler mais
Publicado em de Bert E.
Daniel W.
Daniel W.
User

Have the display of PHP error messages in the web host's customer area been set to "off"?

Ler mais
Publicado em de Daniel W.
Incomedia
Elisa B.
Incomedia

Hi Bert, 

thank you for providing the error logs, I will report them and keep you posted about this matter. 

Thanks! Kind regards.

Ler mais
Publicado em de Elisa B.
Axel  
Axel  
User

Hello Bert,

Could be also an issue during email sending.

Check this one.... Add a directory here

Export again.

Try to do same error and check into this directory if you have something like email_log.txt or other thing

You can check also with th eadmin dahsboard by this way.

Axel

Ler mais
Publicado em de Axel  
Incomedia
Elisa B.
Incomedia

Hi Bert,

this situation seems to be due to a problem connecting to the database, you should therefore check the parameters you entered. 

Thanks! Kind regards.

Ler mais
Publicado em de Elisa B.
Bert E.
Bert E.
User
Autor

Hello Elisa,

Thanks, but I do not understand what you mean. I did not enter parameters anywhere, just made a the shop and have not changed that for a year. Where can I change those parameters? In the programm or with the provider? 

Regards,

Bert  

Ler mais
Publicado em de Bert E.
Daniel W.
Daniel W.
User

The database access data can be found in WebSiteX5 under ...

5 Export > Export website to the Internet / Parameters

_____/ data management /_____

Ler mais
Publicado em de Daniel W.
Bert E.
Bert E.
User
Autor

Thanks everyone. I tried all your advices...still no result. I also skipped a lot of products from my shop (maybe to much). But still no result. I contacted again my provider and asked them to look at the database access. I hope they can help me. 

Ler mais
Publicado em de Bert E.
Incomedia
Elisa B.
Incomedia

Hi Bert, 

on the Online Control Panel, which you can access by adding /admin to your website URL, you can perform some tests, can you please run them and post a screenshot of the results?

Thanks! Kind regards.

Ler mais
Publicado em de Elisa B.
Bert E.
Bert E.
User
Autor

Hello, I received this answer form my provider. They arge that there is no dabase at all at thei hosting and that the problem is within the programm. I think they still do not understand the problem:

This is the answer they sended to me: 

 Indeed, I currently cannot find any MariaDB (MySQL) database and user on the web hosting package, in accordance with:

https://www.vimexx.nl/help/phpmyadmin-voor-mysql-databases
Not even with the help of the backups of the past 60 days:

https://www.vimexx.nl/help/phpmyadmin-voor-mysql-databases
Which makes me suspect that the database is hosted externally, or that the miniaturesandhistory.com website may not be using a MariaDB (MySQL) database at all. Could that possibly be correct?

Unfortunately, I am not familiar with the WebSite X5 CMS, so it is a mystery to me where the file with the database settings is listed on the Vimexx web hosting package.

Is the problem in this was unsovable and can I mybe better look for another webhoster?

Regards.

Bert 

Ler mais
Publicado em de Bert E.
Bert E.
Bert E.
User
Autor

ANd this is the screenshot pf the admin form my website. It did not passed the test of the database. 

Regards. Bert 

Ler mais
Publicado em de Bert E.
Incomedia
Eric C.
Incomedia

Hello Bert,
in Step 5 - Export --> Online export --> Parameters there is a section called Data Management, in which you should add the parameters related to the database you are using with your hosting space.
Did you write anything there?

Eric

Ler mais
Publicado em de Eric C.
Bert E.
Bert E.
User
Autor

Hello Eric, yes I did. see attachment. 

Regards, Bert 

Ler mais
Publicado em de Bert E.
Incomedia
Eric C.
Incomedia

Hello,
did you check these with your provider?
Usually it is the hosting provider that also manages the database, so it is strange that they were unable to find information about this, unless you have chosen a hosting package that does not include a database.
However, if this is the case, you should not have had a section from which to take the parameters.
If you can provide me with a copy of the project, I can test whether any error appears if the website is hosted elsewhere.
You can export it in Step 5 - Export, choosing the Export the project option to generate an IWZIP file.
You can then upload the file with WeTransfer.com or similar services, and provide a download link at sales @ incomedia.eu (without the spaces).

Eric

Ler mais
Publicado em de Eric C.
Bert E.
Bert E.
User
Autor

Hello Eric,

Thanks for your answer. I choose a hosting package with database, and indeed it is very strange they can not find it. 

This evening I will send the site als IWZIPfile . 

Regards,

Bert 

Ler mais
Publicado em de Bert E.
Axel  
Axel  
User

Hello Bert,

Did you have checked into your dashboard subscription with your provider if you have some icons or section to manage database ?

Sorry in french, but an example.

If your subscription has possibility to create DB, normally you will have into your dashboard a section to manipulate your DB via probably PhpMyadmin tool

Hope this helps.

Axel

Ler mais
Publicado em de Axel  
Bert E.
Bert E.
User
Autor

Hello Axel, Thanks. Yes there is and I am going to try to create a new DB. My hosting provider says that there was never a DB connected to the site. That makes it more strange because I worked with my site an shop already for 5 years with this provider, without problems until some weeks ago. But we are going to give it a try again. 

Ler mais
Publicado em de Bert E.
Bert E.
Bert E.
User
Autor

I think we have solved it. After making a new database, everything old removed and with new passwords etc it looks like it works again. Thanks everyone for the help and cooperation. 

Regards, Bert 

Ler mais
Publicado em de Bert E.
Axel  
Axel  
User

Good news

Don't forget to close your ticket in this case.

Axel

Ler mais
Publicado em de Axel