Jump to content

Problem with installation, no override?


Recommended Posts

Hi,

I have a problem with a module during installation, and the issue seems to have a connection with overrides as you can see in the screenshot from the debug-process.

This module has no overrides, therefore also no override folder.  

Any thoughts what it could be a result of?

 

installlation-error.thumb.png.0ff787457d5ea0dd117aa567db5789a8.png

Link to comment
Share on other sites

  • 4 weeks later...
On 4/9/2025 at 11:30 AM, bloggus said:

Hi,

I have a problem with a module during installation, and the issue seems to have a connection with overrides as you can see in the screenshot from the debug-process.

This module has no overrides, therefore also no override folder.  

Any thoughts what it could be a result of?

 

installlation-error.thumb.png.0ff787457d5ea0dd117aa567db5789a8.png

Hello,

Please let us know your PHP version and Prestashop version.

Link to comment
Share on other sites

Posted (edited)

I found out that this part of the module gives me a problem during installation:

 $response = json_decode($json);

 if (is_null($response) && json_last_error() !== JSON_ERROR_NONE) {
     $response = $json;
 }

Mainly this part

$response = $json;

 

If I remove that single line, I can install the module. I put it in again, since it is need for the check of json later on.

I just don't get why this snippet is giving install problems? Escpecially Override conflicts.

Edited by bloggus (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...