Post by ab.hasham » Thu Nov 23, 2017 2:42 pm

Whenever I load the www.computerplanet.co.ke homepage , I get a pop up error

Error

Undefined.
The error comes on the homepage itself, and not on the other pages.
https and http settings are configured well. works fine on localhost server, but error is persistent.

Please help.

Newbie

Posts

Joined
Thu Nov 23, 2017 2:38 pm

Post by paulfeakins » Thu Nov 23, 2017 6:37 pm

I do not see the error?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by ab.hasham » Wed Nov 29, 2017 4:19 pm

Thanks Paul.

The error occurs when the internet connection is slow. Apparently the awesome font also do not load when the error pops up. However, after refreshing the site again, awesome fonts are loaded and the error does not come.

I think this is a known issue with 2.3.0.2

Newbie

Posts

Joined
Thu Nov 23, 2017 2:38 pm

Post by ab.hasham » Fri Dec 01, 2017 3:58 pm

I solved the error.

Basically, the config file defines http and https with the www prefix to the site. On typing the site address without the www, the error comes and the awesome fonts do not load.

I added the following to the htaccess file

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

This sorted out everything.

Newbie

Posts

Joined
Thu Nov 23, 2017 2:38 pm
Who is online

Users browsing this forum: No registered users and 68 guests