Articles on: Amazon Marketplace Plus (PrestaShop)

How to Fix Error: "PHP display_errors is enabled" - Amazon Marketplace Plus

When accessing the information page of the Amazon Marketplace Plus module, you may encounter the following diagnostic warning message:

PHP display_errors is enabled


Why Does This Error Occur?


The display_errors directive is a PHP setting that determines whether error messages, warnings, and notices are printed directly onto the screen as part of your website's public output.


While useful during website development, leaving this setting enabled on a live (production) PrestaShop store causes two major issues:

  1. Security Risk: If a PHP error occurs, the module or server could expose sensitive internal information to the public, such as absolute server file paths, database structures, or code snippets.
  2. Module Functionality Breakage: The Amazon Marketplace Plus module relies heavily on background AJAX and JSON requests to sync orders and products. If a minor PHP warning is displayed directly on the page, it corrupts the background data flow, causing module synchronization to fail or hang indefinitely.


For live sites, errors should always be saved silently to an internal server log file rather than printed on the screen.



How to Resolve the Error


To fix this warning, you need to turn the display_errors setting off. Depending on your hosting configuration, you can do this using one of the following methods:



Most modern hosting platforms allow you to change PHP settings with a simple toggle:

  1. Log into your hosting control panel (e.g., cPanel, Plesk, Cloudways, or o2switch).
  2. Look for Select PHP Version, PHP Selector, or PHP Manager.
  3. Go to the Options or Advanced Settings tab.
  4. Locate the display_errors directive and uncheck it, or change its value to Off / 0.
  5. Save your changes.


Method 2: Update Your .htaccess File (Apache Servers)


If your server runs on Apache and allows configuration overrides, you can disable it via your site's root file:

  1. Connect to your server using an FTP client or your hosting File Manager.
  2. Open the .htaccess file located in the root directory of your PrestaShop installation.
  3. Add the following line at the very bottom of the file:
   php_flag display_errors Off

Updated on: 03/06/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!