WebSite X5Help Center

 
Peter S.
Peter S.
User

Shopping Cart Pay Now not working - Generic Error - tried all posted suggestions  en

Autor: Peter S.
Visitado 1586, Seguidores 1, Compartilhado 0  

Have noticed many reports of the generic error from other users and I have followed all the recomendations posted and still have the problem..

Cleared cache, removed all files from the server and fully did a re upload. I think problem has only started with the last 2 updates. Am now using Pro 2021.3.4 and PHP7.2..  Following the thread from other users, I changed to PHP 7.4 and no improvement.

So I set the server to PHP 8 and then I got another error "warning: undefined array key "autoincrement" in /XXXXXXXXXXXXXXX/res/x5engine.php on line 6002"

and this is what it displays on the few card pages I tried.. See image attached..  Clearly, that is not usable so I changed back to php 7.4 and the 6002 error goes away and I am back with a site that looks OK but noone can buy anything because of the Generic error..

Site is https://marcoimports.co.nz

Help please..

Publicado em
8 RESPOSTAS - 5 ÚTEIS
Axel  
Axel  
User

Hello Peter,

In your .htaccess file on your web hosting machine tries to add these lines to desactivate PHP errors (useful for dev but not for user)

php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
php_value error_reporting -1

and restart again with php 7.2 before anything

Enjoy!
Axel

Ler mais
Publicado em de Axel  
Axel  
Axel  
User

And to help anymore, check if there is some log files to the provider. probably yes...

Investigate them to get more detailed informations.

Ler mais
Publicado em de Axel  
Peter S.
Peter S.
User
Autor

Thanks for that Axel ..  I have found the .htaccess file and opened it in Multiphp ini editor and only

php_flag display_errors on is there, so could change that to off.

But the other changes you recommend are not there and I am worried as to where they might go as there is so many places in that file where it says DO NOT EDIT

Advice please..

Also I am already using Php 7.4 so do I need to go to 7.2?  I did try Php 8 but that got the error on 6022

It is frustration that all works ok on X5 Preview Browsers but not online browsers, tried Firefox, Edge, Opera and Chrome.. Is this likely to be fixed in next Pro X5 update?

Appreciate your help Axel..  We have nearly 1000 products in here with huge hours to enter them all but today noone can buy!!  My client not happy.  Code is shown below

# WebSite X5 - Start Code [do not edit]


# WebSite X5 - End Code

RewriteEngine on
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-SSL} !on
RewriteCond %{HTTP_HOST} ^marcoimports\.co\.nz$ [OR]
RewriteCond %{HTTP_HOST} ^www\.marcoimports\.co\.nz$
RewriteRule ^/?$ "https\:\/\/marcoimports\.co\.nz\/" [R=301,L]

# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
<IfModule php7_module>
php_value memory_limit 128M
php_flag display_errors On
php_value max_execution_time 30
php_value max_input_time 60
php_value max_input_vars 1000
php_value post_max_size 20M
php_value session.gc_maxlifetime 1440
php_value session.save_path "/var/cpanel/php/sessions/ea-php72"
php_value upload_max_filesize 20M
php_flag zlib.output_compression Off
</IfModule>
<IfModule lsapi_module>
php_value memory_limit 128M
php_flag display_errors On
php_value max_execution_time 30
php_value max_input_time 60
php_value max_input_vars 1000
php_value post_max_size 20M
php_value session.gc_maxlifetime 1440
php_value session.save_path "/var/cpanel/php/sessions/ea-php72"
php_value upload_max_filesize 20M
php_flag zlib.output_compression Off
</IfModule>
# END cPanel-generated php ini directives, do not edit

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php74” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php74 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit

Ler mais
Publicado em de Peter S.
Axel  
Axel  
User

Hello Peter,

Do a copy/paste of your .htaccess before changing.

And if other lines are not present, try to add them into the file, and check. If not result, remove them.

No logs tpo the provider ?

Enjoy!
Axel

Ler mais
Publicado em de Axel  
Peter S.
Peter S.
User
Autor

Well Axel, I have gone back to PHP 7.2

and amended the .htaccess as you suggested..

Here is first part of that file to show you the four changes/additions..

# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
<IfModule php7_module>
php_value memory_limit 128M
php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
php_value max_execution_time 30
php_value max_input_time 60
php_value error_reporting-1
php_value max_input_vars 1000
php_value post_max_size 20M
php_value session.gc_maxlifetime 1440
php_value session.save_path "/var/cpanel/php/sessions/ea-php72"
php_value upload_max_filesize 20M
php_flag zlib.output_compression Off
</IfModule>
<IfModule lsapi_module>
php_value memory_limit 128M
php_flag display_errors On
php_value max_execution_time 30
php_value max_input_time 60
php_value max_input_vars 1000
php_value post_max_size 20M
php_value session.gc_maxlifetime 1440
php_value session.save_path "/var/cpanel/php/sessions/ea-php72"
php_value upload_max_filesize 20M
php_flag zlib.output_compression Off
</IfModule>
# END cPanel-generated php ini directives, do not edit

What now Axel..??

I have asked the server Hosting crew to look at the logs..

On this same website I have other serious issues but will make a separate post on that.. Hope you can comment on the new posts as well.  Everything works ok on X5 preview but not online..  Thanks Axel

Ler mais
Publicado em de Peter S.
Axel  
Axel  
User

Hello Peter,

Now I have no more idea to investigate why this issue continues...foot-in-mouth
Probably an issue with the provider but where and which one ?

Hope your provider will have some logs !

Now a moderator needs to send a notificationt to Incomedia. I will contact one to do that.

Enjoy!
Axel

Ler mais
Publicado em de Axel  
Peter S.
Peter S.
User
Autor

Thank you Axel

Ler mais
Publicado em de Peter S.
Axel  
Axel  
User

Hello Peter,

A last idea.

On your web server, delete all previous files (but not .htaccess file) in your directory where is the web

Into WSX5 press CTRL + Preview to re-construct all project and export again ALL files...

My last idea

Enjoy!
Axel

Ler mais
Publicado em de Axel