Jump to content

Notice in line 120 in classes/helper/HelperForm.php [8] Undefined variable: id


jarnold

Recommended Posts

I am getting an backoffice error: Notice in line 120 in ../classes/helper/HelperForm.php [8] Undefined variable: id

This appears in the carrier section if I want to edit the carrier settings.
Prestashop 8.1.3

The error is shown only on the top in the BO. It seems that it has no impact on the function. But it would be nice to fix it because it could might cause errors in the future.


I have setup 8 carrier on the backoffice an another comes from the module Packeta v.2.1.19.

Deaktivating the module does not results in any changes.

Does anybody has an idea where to look for?

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

It seems like you're encountering an "Undefined variable" notice in your Prestashop back office, specifically in the carrier section when trying to edit carrier settings. This notice appears in line 120 of the ../classes/helper/HelperForm.php file. While the notice may not currently impact functionality, it's important to address it to prevent potential issues in the future.

One possible solution is to check the HelperForm.php file at line 120 and ensure that the variable "id" is properly defined or initialized before it's being used. If "id" is indeed supposed to be used in that context, you may need to trace back to where it should be defined and identify why it's not being passed or initialized correctly.

Additionally, since you mentioned that the error persists even after deactivating the Packeta module, it's worth examining if any other modules or customizations could be causing conflicts or issues with the carrier settings. Reviewing recent changes or updates to your Prestashop installation may also provide clues as to what could be causing the notice.

If you're unsure where to start, you might consider reaching out to Prestashop support or community forums for assistance. Other Prestashop users or developers may have encountered similar issues and could offer insights or solutions to help resolve the notice effectively.

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...