WebSite X5Help Center

 
Arild G.
Arild G.
User

Generic error when setting up on new server  en

Автор: Arild G.
Просмотрено 1057, Подписчики 1, Размещенный 0  

I have uploadeed the website to a new server, currently using ulsteinminilager.com during testing. I've been struggling for hours to get php working in the submit order procedure. I get "Generic error".

PHP is apparently working: I test local php settings of the php engine (version 7.2.5) with the command "php e:\ulsteinminilager\admin\login.php, but the php error log writes:

"[28-Jan-2023 19:35:18 UTC] PHP Warning: require_once(../res/x5engine.php): failed to open stream: No such file or directory in E:\Ulsteinminilager\admin\includes.php on line 3
[28-Jan-2023 19:35:18 UTC] PHP Fatal error: require_once(): Failed opening required '../res/x5engine.php' (include_path='.;c:\php\includes') in E:\Ulsteinminilager\admin\includes.php on line 3"

If I try the web browser on ulsteinminilager.com/admin/login.php I get error "404 - File or directory not found." By the way, the same 404 error comes up regardless of where I place a php file using test.php (I attach a log of response dump) with content:

<?php
phpinfo();
?>

Thus, may it be a setting in IIS I have missed?

Размещено
3 Ответы - 1 Полезно - 1 Корректно
Franz-Josef H.
Franz-Josef H.
Moderator

you are using an old php version! WebsiteX5 requires php 8.0 in the new version.

Читать больше
Размещено От Franz-Josef H.
Arild G.
Arild G.
User
Автор

Thanks, even if the new version works on th eold sever I've not updated PHP and all necessary settings in fastCGI on the new server (Win2019). Test file phpinfo.php now works well. However, still the "Generic error" persists t the end of order basket pocedure. From Logfile:

[29-Jan-2023 15:01:04 UTC] PHP Warning: Undefined array key "order" in E:\Ulsteinminilager\res\x5engine.php on line 2101
[29-Jan-2023 15:01:04 UTC] PHP Warning: Undefined array key "settings" in E:\Ulsteinminilager\res\x5engine.php on line 2102
[29-Jan-2023 15:01:05 UTC] PHP Warning: Undefined array key "order" in E:\Ulsteinminilager\res\x5engine.php on line 2101
[29-Jan-2023 15:01:05 UTC] PHP Warning: Undefined array key "settings" in E:\Ulsteinminilager\res\x5engine.php on line 2102
[29-Jan-2023 15:01:05 UTC] PHP Warning: Undefined array key "html" in E:\Ulsteinminilager\res\emailtemplates\order.html.template.php on line 245

By the way, I receive emails of the order, like on the old server, but no online "receipt" after sending the order.

Читать больше
Размещено От Arild G.
Incomedia
Stefano G.
Incomedia

Hello Arild

This new issue needs to be solved differently. Ask the hosting provider to disable PHP warnings onto the server, and the issue should be solved.

The parameter to disable is called "display_errors" in case your hosting asks you about this

Thank you

Stefano

Читать больше
Размещено От Stefano G.