Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined indexes in Product.php generating multiple warnings in error_log #25810

Closed
agroundworld opened this issue Sep 8, 2021 · 2 comments
Closed
Labels
Duplicate Resolution: issue closed because already reported

Comments

@agroundworld
Copy link

agroundworld commented Sep 8, 2021

Describe the bug

In doing routine maintenance on my website, I noticed that the error_log file was generating multiple warnings. Two warnings are being generated repeatedly due to undefined indexes in the Product.php file. The text of the errors are as follows:

PHP Notice: Undefined index: attribute_price in /home/soccerph/public_html/pshop/classes/Product.php on line 3418

PHP Notice: Undefined index: attribute_ecotax in /home/soccerph/public_html/pshop/classes/Product.php on line 3419

Expected behavior

No warnings written to the log file for undefined indexes.

Steps to Reproduce

Not sure how to replicate since I don't what what actions are generating those calls.
I have been working on adding products

Screenshots
Attaching screenshot of some rows of log file:
Undefined Index

Additional information

  • PrestaShop version: 1.7.7.7
  • PHP version: 7.3
@hibatallahAouadni
Copy link
Contributor

Hello @agroundworld

We are aware of this issue, it is already in our debug backlog. This issue is a duplicate of #25782.
To be informed when it's fixed, please subscribe to the issue mentioned above.

Thanks!

@hibatallahAouadni
Copy link
Contributor

Duplicate of #25782

@hibatallahAouadni hibatallahAouadni marked this as a duplicate of #25782 Sep 8, 2021
@hibatallahAouadni hibatallahAouadni added the Duplicate Resolution: issue closed because already reported label Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate Resolution: issue closed because already reported
Projects
None yet
Development

No branches or pull requests

2 participants