Occasionally, when working with any program, you may encounter an error. We recently ran across a customer account with an error in their OpenCart site. This error occurs due to a missing file named maintenance.php and disrupted the site display when placed in maintenance mode. The error appears when the display error option is enabled, as "Error: Could not load language common/maintenance!". Follow along below as we explain how to correct this error for your OpenCart site.

"Error: Could not load language common/maintenance!" in OpenCart 1.5

  1. First, log into your cPanel.
  2. Now that you are in the main cPanel screen, look the File Manager tool and open it.
  3. Next find your OpenCart program's root folder and navigate to it. Most websites use their OpenCart site as the main domain.  In this case the root folder will be the public_html. If you are using a subfolder, however, (example.com/store) you would need to enter that specific folder (public_html/store).
  4. Once you are in the root folder, you need to find the folder where that is missing the maintenance.php file so you can add a new one. This is located under the catalog/language/english/common folder. (This assumes you are using English as your site's languge. If you are using another language, replace the english folder with the folder for your chosen language.)
  5. Now that you are in the common folder, you should notice there is no maintenance.php file. From here, you will create a new one. To do so, simply click on the New File button from the top toolbar.
  6. Be sure to name your new file maintenance.php and click on the Create New File button. This creates an empty file, which you can now work with.
  7. The file list will refresh and you will see the file listed in the folder along with the header.php and footer.php files. Highlight the maintenance.php file and open it so you can edit the content.
  8. Once in the file editor, copy and paste the following code in it to create an OpenCart 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. Once completed, click the Save Changes button in the upper right to save it. Your maintenance mode should now appear normally and no longer blank or with an error 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!

Did you find this article helpful?

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.

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!

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

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

Not a Customer?

Get web hosting from a company that is here to help.