Articles on: Amazon Marketplace (PrestaShop)

Why am I getting “PHP Notice: Undefined index” in cron error logs?

You may sometimes see messages like:


“PHP Notice: Undefined index …” in your cron or server logs.


These messages are PHP NOTICE-level warnings, not critical errors.



What does this mean?


A “PHP Notice: Undefined index” occurs when the code tries to read a value from an array that is not set or not available in that specific context.


Example situation:


  • a field is optional
  • a value is not returned by an API response
  • a configuration key is missing in a specific scenario



Is this an error?


No.


These are:


  • PHP NOTICE messages (low severity)
  • non-blocking warnings
  • informational messages from PHP


They do not stop execution of the script.



Impact on the module


These notices:


  • do NOT break the cron
  • do NOT affect synchronization
  • do NOT affect order import/export
  • do NOT affect stock updates


The module continues to work normally.



Why do they appear in logs?


They are logged because:


  • PHP error reporting is enabled on your server
  • the server logs all NOTICE-level messages
  • some environments are configured to be very verbose



Can they be ignored?


Yes.


In production environments, these messages are considered harmless and can be safely ignored.



Optional improvements (if needed)


If you want to reduce log verbosity, your server administrator can:


  • lower PHP error reporting level (recommended for production)
  • disable display of NOTICE messages in logs
  • adjust error_reporting configuration

Updated on: 15/05/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!