WebSite X5Help Center

 
Jan V.
Jan V.
User

Generic error Cart  en

Autor: Jan V.
Besucht 1164, Followers 2, Geteilt 0  

I filled products, 3550 records. Then Generic Error "Buy now".

I returned examle data. "Buj now" is working.

Version PHP - 7.4

Generic Error depends only on products. How?

Example data:

id;category;name/code;description;sku;price;weight;options;enable discounts;discounts;availability type;available;pending;images
;Dog food;Bestbones;Nulla ipsum eros, facilisis a massa at.;;10,00;1,00;1.00 kg;1;2:30,00;Fixed;Available;;F:\LAVORO\PT\v14\Pet Shop\risorse_grafiche\product-1.png
;Dog food;Mini Delights;Nunc vel dui efficitur, pretium sapien efficitur, dictum eros. Donec et aliquet diam. ;;15,00;1,00;;0;;Unset;;;F:\LAVORO\PT\v14\Pet Shop\risorse_grafiche\product-2.png
;Dog food;Organic Cat Treats;Proin ullamcorper mattis massa, sed maximus augue pharetra placerat. ;;4,00;0;;0;;Unset;;;F:\LAVORO\PT\v14\Pet Shop\risorse_grafiche\product-4.png
;Dog food;The Minitreats Delight;Nunc vel dui efficitur, pretium sapien efficitur, dictum eros. Donec et aliquet diam. ;;7,00;0;;0;;Unset;;;F:\LAVORO\PT\v14\Pet Shop\risorse_grafiche\product-3.png
;Training;Pet School;;;150,00;0;;1;1:30,00;Unset;;;
;Beds;Brown Cushion;Nunc efficitur ante eu ante ullamcorper imperdiet. Pellentesque rhoncus risus ut massa egestas, a condimentum purus sodales.;;18,00;0;;0;;Unset;;;F:\LAVORO\PT\v14\Pet Shop\risorse_grafiche\cushion.png
;Beds;XL Cushion;Maecenas vitae tellus eu quam tempus accumsan a eget enim. Nullam suscipit metus eget accumsan viverra.;;35,00;0;;0;;Unset;;;F:\LAVORO\PT\v14\Pet Shop\risorse_grafiche\cushion_2.png
;Beds;Cat&Dog Small Cushion;In euismod nisl quam, pretium accumsan ligula feugiat vitae. Etiam a nibh eu magna efficitur fringilla. Sed ac tellus nisl.;;15,00;0;;0;;Unset;;;F:\LAVORO\PT\v14\Pet Shop\risorse_grafiche\cushion_3.png
;Beds;Round Cushion for Cats;Nulla in dolor faucibus, porta enim in, convallis ligula. Integer ac vehicula arcu, a eleifend urna.;;22,00;0;;0;;Unset;;;F:\LAVORO\PT\v14\Pet Shop\risorse_grafiche\cushion_4.png

Gepostet am
11 ANTWORTEN - 1 NüTZLICH - 1 KORREKT
Aleksej H.
Aleksej H.
Moderator

Hello. Please provide a link to a product page or a product catalog page.

Try changing the PHP version to 7.3 or 8.0.

Please provide server logs. You can get this from your hosting provider.

I sent a notification about your question to the company employees, expect an answer from them here in the comments.

Mehr lesen
Gepostet am von Aleksej H.
Jan V.
Jan V.
User
Autor

Hallo Aleksej.

Now, I first tested only 8 my products http://www.pejsankov.cz/test03/cartsearch/

PHP version 7.4, "Buy now" is working

http://www.pejsankov.cz/test02/cartsearch/ does not display products or it takes very very long time. There are 3550 products

And on test02 "Buy now" generates "Generic error" with PHP version 7.3 also. PHP 8.0 is not available.

Here is php_error.log:

[06-Apr-2022 11:56:21 Europe/Prague] PHP Notice: Undefined index: order in /home/users/pejsankovcz/pejsankov.cz/web/test03/res/x5engine.php on line 2520
[06-Apr-2022 11:56:21 Europe/Prague] PHP Notice: Undefined index: settings in /home/users/pejsankovcz/pejsankov.cz/web/test03/res/x5engine.php on line 2521
[06-Apr-2022 11:56:21 Europe/Prague] PHP Notice: Undefined index: order in /home/users/pejsankovcz/pejsankov.cz/web/test03/res/x5engine.php on line 2520
[06-Apr-2022 11:56:21 Europe/Prague] PHP Notice: Undefined index: settings in /home/users/pejsankovcz/pejsankov.cz/web/test03/res/x5engine.php on line 2521
[06-Apr-2022 11:56:21 Europe/Prague] PHP Notice: Undefined index: html in /home/users/pejsankovcz/pejsankov.cz/web/test03/res/emailtemplates/order.html.template.php on line 245
[06-Apr-2022 12:08:25 Europe/Prague] PHP Notice: Undefined offset: 0 in /home/users/pejsankovcz/pejsankov.cz/web/test02/product/index.php on line 2
[06-Apr-2022 12:08:25 Europe/Prague] PHP Notice: Undefined index: in /home/users/pejsankovcz/pejsankov.cz/web/test02/product/index.php on line 2
[06-Apr-2022 12:08:25 Europe/Prague] PHP Notice: Trying to access array offset on value of type null in /home/users/pejsankovcz/pejsankov.cz/web/test02/product/index.php on line 51
[06-Apr-2022 12:10:08 Europe/Prague] PHP Notice: Undefined offset: 0 in /home/users/pejsankovcz/pejsankov.cz/web/test02/product/index.php on line 2
[06-Apr-2022 12:10:08 Europe/Prague] PHP Notice: Undefined index: in /home/users/pejsankovcz/pejsankov.cz/web/test02/product/index.php on line 2
[06-Apr-2022 12:10:08 Europe/Prague] PHP Notice: Trying to access array offset on value of type null in /home/users/pejsankovcz/pejsankov.cz/web/test02/product/index.php on line 51
[06-Apr-2022 12:12:15 Europe/Prague] PHP Notice: Undefined index: email in /home/users/pejsankovcz/pejsankov.cz/web/test02/res/x5engine.php on line 8157

Mehr lesen
Gepostet am von Jan V.
Axel  
Axel  
User

Hello Jan,

Maybe a way to investigate. Probably you have a lot of products into your catalog  !!

Try to check if you can increase with this value or other into your php.ini file to the provider.

Memory_limit = 192M 

M is Megabytes

Normally 128M is the default value 

And also try to see if you have some PHP error logs to the provider to help you to undertsand.

Enjoy!
Axel

Mehr lesen
Gepostet am von Axel  
Axel  
Axel  
User

In your .htaccess file on the web server you can try these lines to set off the PHP warning message

  • php_flag display_startup_errors off
  • php_flag display_errors off
  • php_flag html_errors off
  • php_value error_reporting -1
Mehr lesen
Gepostet am von Axel  
Jan V.
Jan V.
User
Autor

Hello Axel, yes, I have a lot of products. Now I have 3550 and I will need approximately 8000 products. So I would like to know the limits for products in e-commerce. May by I have too long description of product or the images are too big. But the "Generic error" appear when I clic button "Buy now" and in order is only one product.

The memory limit in php.ini is 256MB.

But in the php_error.log appear new lines when "Buy now" works and e-commerce sends order by e-mail succesfuly.

Mehr lesen
Gepostet am von Jan V.
Axel  
Axel  
User

Hello Jan,

No more idea. Wait for an Incomedia's support.
For sure, the relation of this issue, is the number of products ...

Enjoy!
Axel

Mehr lesen
Gepostet am von Axel  
Jan V.
Jan V.
User
Autor

Yes, catalog with 410 products is working nice.

Catalog with 1089 products displays "Generic error"

Mehr lesen
Gepostet am von Jan V.
Incomedia
Stefano G.
Incomedia

Hello Jan

I can confirm that the server seems to be returning errors, but it is not possible for me to see the real error just by looking at the website

Error 500 is a generic error. You need to contact your hosting provider about this error 500 specifically and ask them what is causing this

Once they tell you, let me know here so that I might advise on how to proceed

Thank you

Stefano

Mehr lesen
Gepostet am von Stefano G.
Yannick S.
Yannick S.
User

Same here - Generic error as the button "buy now" is pressed. PHP 8+ working. This wasn't an issue before. Provider didn't change anything. Noticed error since the last major update of Website X.  Customer can buy tho it's a bit boggling to get an error.

Mehr lesen
Gepostet am von Yannick S.
Incomedia
Stefano G.
Incomedia

Hello Yannick

If possible, please share your website's URL as well. I can check whether the issue seems to be the same

I remain available here

Stefano

Mehr lesen
Gepostet am von Stefano G.
Jan V.
Jan V.
User
Autor

Dear friends,

finally I installed my own server openSUSE 15.3, apache 2 HTTP server, PHP 7.4, MariaDB 10.5

Default value of memory_limit in php.ini was 128M and "Buy now" generated Generic Error.

In php.ini I increased parameter memory_limit from 128M to 1024M and now I have product catalog with 3550 products working (cartseach has 355 pages) and button "Buy now" works fine.

Thank You for help :-) .

Mehr lesen
Gepostet am von Jan V.