When working with OpenCart, or any program, there is always the possibility for errors to occur. This article describes a particular error in OpenCart that occurs when placing the OpenCart site into maintenance mode due to a missing maintenance.php file. This results in a blank screen with "Error: Could not load language common/maintenance!" at the top, provided you have the display error message feature enabled. Follow the instructions below as we guide you on how to fix this error in your OpenCart 1.5 store.

Could not load language common/maintenance! Error

  1. Log into your cPanel.
  2. From the main cPanel area, look for and open the File Manager tool.
  3. Navigate to your OpenCart program's root folder. For most, this will be the public_html folder. If you are using a subfolder (example.com/shop) you would need to enter that folder (public_html/shop).
  4. Now that you are in the root folder, we must navigate to the folder where the missing file needs to be included. This is under the catalog/language/english/common folder. Note: if you are using a language other than english, then be sure to use the apporpriately named folder for that language.
  5. Once inside the folder, you should notice there is no maintenance.php file. We will need to create one. Click on the New File button from the toolbar at the top of the screen.
  6. Name the new file maintenance.php and click on the Create New File button.
  7. The screen will refresh and you will see the file in the folder. Highlight the file and open it for editing.
  8. Now that you are in the file editor, copy and paste the following code in it to create a default maintenance page.
    <?php
    // Heading
    $_['heading_title']    = 'Maintenance'; // Text
    $_['text_maintenance'] = 'Maintenance';
    $_['text_message']     = '<h1 style="text-align:center;">
    We are currently performing some scheduled maintenance. <br/>
    We will be back as soon as possible. Please check back soon.</h1>';
    ?>
  9. Click the Save Changes button in the upper right to save the new file content. Now, your maintenance mode should display properly instead of getting the "Error: Could not load language common/maintenance!" message.
Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Like this Article?

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

News / Announcements

WordPress wp-login.php brute force attack
Updated 2014-07-17 06:43 pm EST
Hits: 200942

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!