---
title: "How to fix the fopen and magicquotes error in Prestashop"
description: "When configuring your Prestashop ecommerce site you may run into a problem in the configuration that gives an error for magicquotes or fopen. (See snapshot to the right) This is caused by a..."
url: https://www.inmotionhosting.com/support/edu/prestashop/open-magicquotes-error-prestashop/
date: 2013-03-27
modified: 2022-03-11
author: "InMotion Hosting Contributor"
categories: ["Prestashop"]
type: post
lang: en
---

# How to fix the fopen and magicquotes error in Prestashop

[![Viewof fopen magicquotes error in Prestashop](https://www.inmotionhosting.com/support/wp-content/uploads/2013/03/edu_prestashop1.5_350_fix-open-error-2-magic-error.png)](/support/wp-content/uploads/2013/03/edu_prestashop1.5_350_fix-open-error-2-magic-error.png)

When configuring your Prestashop ecommerce site you may run into a problem in the configuration that gives an error for **magicquotes** or **fopen**. (See snapshot to the right) This is caused by a configuration setting in your *php.ini* that needs to be changed.

Check your configuration Required parameters: OK Optional parameters: Please fix the following error(s) fopen magicquotes

You will need to have **fopen On** and **Magicquotes Off** for these errors to go away. Below are the steps to fix the **fopen** and **magicquotes** error in your PrestaShop configuration.

## Fixing the fopen and magicquotes error

1. [Login into your cPanel](/support/edu/cpanel/how-to-log-into-cpanel/).
2. [Go to the File Manager](/support/edu/cpanel/using-file-manager-in-cpanel/), select your public_html directory and click Go.
3. Open your* php.ini* with the [code editor](/support/edu/cpanel/file-manager-code-editor/). [![Code view of phpini Prestashop](https://www.inmotionhosting.com/support/wp-content/uploads/2013/03/edu_prestashop1.5_350_fix-open-error-3-on.png)](/support/wp-content/uploads/2013/03/edu_prestashop1.5_350_fix-open-error-3-on.png) Find the **allow_url_fopen** line like the code below and change it **from Off to On**. (See image to the right) ;;;;;;;;;;;;;;;;;; ; Fopen wrappers ; ;;;;;;;;;;;;;;;;;; ; Whether to allow the treatment of URLs (like https:// or ftp://) as files. allow_url_fopen = Off [![Code view of magicquotes Prestashop](https://www.inmotionhosting.com/support/wp-content/uploads/2013/03/edu_prestashop1.5_350_fix-open-error-4-magic-quotes.png)](/support/wp-content/uploads/2013/03/edu_prestashop1.5_350_fix-open-error-4-magic-quotes.png) Find the **magic_quotes_gpc** line like the code below and change it **from On to Off**. (See image to the right) ;Magic quotes ; ; Magic quotes for incoming GET/POST/Cookie data. magic_quotes_gpc = On
4. [Log into your PrestaShop Dashboard](/support/edu/prestashop/login-to-dashboard/).
5. [![Click the Configuration Information Prestashop](https://www.inmotionhosting.com/support/wp-content/uploads/2013/03/edu_prestashop1.5_350_fix-open-error-1-click.png)](/support/wp-content/uploads/2013/03/edu_prestashop1.5_350_fix-open-error-1-click.png) Go to **Advanced Parameters > Configuration Information**.
6. [![Parameters OK Prestashop](https://www.inmotionhosting.com/support/wp-content/uploads/2013/03/edu_prestashop1.5_350_fix-open-error-5-parameters-ok.png)](/support/wp-content/uploads/2013/03/edu_prestashop1.5_350_fix-open-error-5-parameters-ok.png) Look at the Check your configuration again. This time you should see the errors gone with the required and optional parameters showing as OK.
