Page 1 of 1
[SOLVED] Interal Server Error at checkout
Posted: Mon May 20, 2024 4:05 pm
by SimonDen
The problem is the following: In last step of checkout the system sends a error with two times of "Interal Server Error ". I don´t know what I have to do. On line 15 if haved change the route comand (like it was shown in the prevously speakings), that just delete the warning in my backoffice.
This is the LOG Sheet: Whats the meaing of this?
2024-05-20 9:19:00 - PHP Unknown: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /homepages/12/d13526659/htdocs/clickandbuilds/Shop/system/storagev0rayeyzdhrd/modification/system/engine/action.php on line 65
Re: Interal Server Error at checkout
Posted: Mon May 20, 2024 4:08 pm
by OSWorX
Unless you can provide some details, nobody will be able to help you here.
Please read the
Forum Rules before proceeding.
Re: Interal Server Error at checkout
Posted: Mon May 20, 2024 9:27 pm
by Cue4cheap
SimonDen wrote: ↑Mon May 20, 2024 4:05 pm
The problem is the following: In last step of checkout the system sends a error with two times of "Interal Server Error ". I don´t know what I have to do. On line 15 if haved change the route comand (like it was shown in the prevously speakings), that just delete the warning in my backoffice.
This is the LOG Sheet: Whats the meaing of this?
2024-05-20 9:19:00 - PHP Unknown: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /homepages/12/d13526659/htdocs/clickandbuilds/Shop/system/
storagev0rayeyzdhrd/modification/system/engine/action.php on line 65
This is probably from an extension that isn't compatible with your PHP version. BUT there might be other errors you need to tell us about. The "deprecated" says to me that wouldn't cause an "Internal server error".
Please provide:
OC Version
PHP version
extensions you have installed (especially ones that are for the "last step of checkout")
Mike
Re: Interal Server Error at checkout
Posted: Mon May 20, 2024 9:48 pm
by paulfeakins
SimonDen wrote: ↑Mon May 20, 2024 4:05 pm
system/storagev0rayeyzdhrd/modification/
This part means it's probably an extension.
Re: Interal Server Error at checkout
Posted: Mon May 20, 2024 10:38 pm
by straightlight
Re: Interal Server Error at checkout
Posted: Tue May 21, 2024 12:12 am
by Elevate
The naming of the storage file path seems strange.
system/storagev0rayeyzdhrd/modification/
Have you had a malware scan run on your site?
Re: Interal Server Error at checkout
Posted: Tue May 21, 2024 4:44 am
by SimonDen
Sorry it´s my first post.
My OC Version is Version 3.0.3.9. PHP Version I don´t know where I found it.
In line 79 its : if ($reflection->hasMethod($this->method) && $reflection->getMethod($this->method)->getNumberOfRequiredParameters() <= count($args)) {
In line 65 its: $class = 'Controller' . preg_replace('/[^a-zA-Z0-9]/', '', $this->route);
In line 66 its: $class = 'Controller' . preg_replace('/[^a-zA-Z0-9]/', '', (string)$this->route);
Thats nearly the same like yours or?
Malware was not in process.
Re: Interal Server Error at checkout
Posted: Tue May 21, 2024 6:21 am
by straightlight
SimonDen wrote: ↑Tue May 21, 2024 4:44 am
Sorry it´s my first post.
My OC Version is Version 3.0.3.9. PHP Version I don´t know where I found it.
In line 79 its : if ($reflection->hasMethod($this->method) && $reflection->getMethod($this->method)->getNumberOfRequiredParameters() <= count($args)) {
In line 65 its: $class = 'Controller' . preg_replace('/[^a-zA-Z0-9]/', '', $this->route);
In line 66 its: $class = 'Controller' . preg_replace('/[^a-zA-Z0-9]/', '', (string)$this->route);
Thats nearly the same like yours or?
Malware was not in process.
In OC v3.0.3.9 release, it's around line 65-66.
Re: Interal Server Error at checkout
Posted: Tue May 21, 2024 3:43 pm
by SimonDen
This code is inside line 66:
$class = 'Controller' . preg_replace('/[^a-zA-Z0-9]/', '', (string)$this->route);
Thats the same of like your coding in 79 or?
Re: Interal Server Error at checkout
Posted: Tue May 21, 2024 5:01 pm
by ADD Creative
You can see what your system/engine/action.php should be at the following link.
https://github.com/opencart/opencart/bl ... action.php
As Cue4cheap pointed out, that would unlikely be the cause of the "Internal server error". You need to find and look in your PHP or server error logs, not the OpenCart one.
Re: Interal Server Error at checkout
Posted: Tue May 21, 2024 8:13 pm
by SimonDen
Pfad: /clickandbuilds/Shop/system/storagev0rayeyzdhrd/logs/error.log
Is empty
Re: Interal Server Error at checkout
Posted: Tue May 21, 2024 10:17 pm
by ADD Creative
SimonDen wrote: ↑Tue May 21, 2024 8:13 pm
Pfad: /clickandbuilds/Shop/system/storagev0rayeyzdhrd/logs/error.log
Is empty
That is the OpenCart error log. You need to look in the PHP or server error logs for the cause of the "Internal server error". You can use phpinfo() to for the PHP error log or ask your host.
Re: Interal Server Error at checkout
Posted: Wed May 22, 2024 3:33 am
by straightlight
SimonDen wrote: ↑Tue May 21, 2024 3:43 pm
This code is inside line 66:
$class = 'Controller' . preg_replace('/[^a-zA-Z0-9]/', '', (string)$this->route);
Thats the same of like your coding in 79 or?
It's the same.
Re: Interal Server Error at checkout
Posted: Mon May 27, 2024 11:37 pm
by SimonDen
The SMTP config was the problem.