> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://doc.common-services.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Why am I getting “PHP Notice: Undefined index” in cron error logs? - Amazon Marketplace Plus

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