Back to Top

Notice: Use of undefined constant HTTP_IMAGE in OpenCart

Notice: Use of undefined constant HTTP_IMAGE in OpenCart

Here in this quick article, I am going to share solution of notice got in the open cart.Opencart is the free, open-source e-commerce system.OpenCart is robust and lightweight shopping cart system which is easy to install and use.

Today I have download latest version of opencart and install it.Then i have changed theme of opencart and after then run frontend.I got below error:

After searching in Google, I got that HTTP_IMAGE constant has been fully removed from the latest version of Opencart.

Well, to solve above issue ,I have opened config.php file and added below line of code into it.

Keep in Mind If you are using wamp server and above solution not works, you need to pass folder name too.because $_SERVER[‘HTTP_HOST’],only take localhost.

Hope this post will helpful for you, waiting for your responses.

Thank you for reading.Feel free to share your thoughts! Don’t Forget to Follow us on Twitter or Subscribe us to Get the Latest Updates.

Share:
Share on Facebook0

Share on LinkedIn0Tweet about this on TwitterShare on Google+0Buffer this pageDigg thisShare on Reddit0

Comments (1)

  1. Thanks…
    But I used as
    define(‘HTTP_IMAGE’, ‘image/’);

Leave a Reply

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

Most Popular Posts

The Readers’ Poll – November 2012

Posted on 4 years ago

Bhumi

Cursor in IndexedDB API HTML5

Posted on 2 years ago

Bhumi

PHP 5 Abstract classes and Methods

Posted on 5 years ago

Bhumi

How To Create a Temporary File in PHP

Posted on 5 years ago

Bhumi

Introduction to the Instagram API

Updated 4 weeks ago

Bhumi

How to Use the HTML5 Full-Screen API

Updated 1 month ago

Bhumi

What are Lambdas and Closures in PHP?

Updated 1 month ago

Bhumi

MySQL REGEXP Operator

Updated 1 month ago

Bhumi

The Reader’s Poll – June 2015

Posted on 2 years ago

Bhumi

The Reader’s Poll – August 2014

Posted on 2 years ago

Bhumi

The Reader’s Poll – June 2014

Posted on 3 years ago

Bhumi

The Readers’ Poll – May 2014

Posted on 3 years ago

Bhumi

The Readers’ Poll – August 2013

Posted on 3 years ago

Bhumi