Need help?

Our experts have had an average response time of 13.52 minutes in October 2021 to fix urgent issues.

We will keep your servers stable, secure, and fast at all times for one fixed price.

Prestashop Bad configuration file – Causes and Fixes

by | Oct 26, 2018

For website owners, using a custom theme enhances the overall look, feel and style of their websites.

Usually, theme installs go pretty well. Sometimes, it can result in errors.

One of the common errors that we see as a part of our Outsourced Tech Support for web hosting providers is  “Bad or missing configuration file”.

Today, let’s take a look at the top 2 reasons for this error and how we can fix it.

 

Causes for ‘Bad or missing configuration file’

This error pops up when you try to install a custom theme from your Prestashop Back Office(admin area).

The 2 major causes are:

  1. Theme not compatible with Prestashop version – Some themes may not be compatible with your Prestashop version due to missing libraries, templates, functions, etc.
  2. Corrupted template zip file – Usually, you will get Prestashop themes in zip format. Prestashop expects a default directory structure for these template files. We’ve seen developers create custom theme files that are non-complaint with these Prestashop standards. Prestashop considers this as an invalid file and throws this error.

 

How we fix ‘Bad or missing configuration file’

To fix this, we can use 3 different ways:

 

1.Get a theme compatible with the Prestashop version.

If your theme is not compatible with Prestashop, you need to get a theme that suits your Prestashop version.

You can verify your Prestashop version using the below methods:

  • Go to Prestashop Back Office > Advanced Parameters > Configuration Information.
  • The file “/config/settings.inc.php” lists the Prestashop version on the line that begins with “_PS_VERSION_”.

define(‘_PS_VERSION_’, ‘1.6.0.8’);

You can verify the theme version and its compatibility range from the file  “theme.yml”.

At Bobcares, we cross-check the above files and choose an alternate theme that fits the Prestashop version.

 

2. Correct the directory structure of your zip file

Prestashop looks for a default directory structure like this.

Prestashop bad configuration file - Folder structure

 

If any mismatch found, it will reject that file.

We see cases where the custom theme files non-complaint with this set format.

In such cases, we will extract the files to get a directory structure similar to the default theme and zip it once again.

This way we will create a valid ZIP that can be uploaded to your Prestashop.

 

3. Uploading in case sensitive systems

In some templates the “Config.xml” file is included as “config.xml” (C not in block letters). This is going to fail when you upload the zip file to case sensitive systems like Linux. In such cases renaming config.xml to Config.xml will work.

 

Conclusion

You can come up with “Bad or missing configuration file” at times when you install a  custom theme in Prestashop. Today, we’ve seen the top 2 reasons for this error and 3 ways to fix this.

 

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

SEE SERVER ADMIN PLANS

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF