Post by jarv » Tue Apr 12, 2016 2:32 am

Hi,

Please help, I get the error: error undefined

this pops up in an alert box when I first login to admin or attempt to purchase something from the store ???

here is my cart: http://www.the-arc-angels.co.uk/shop version 2.2.0.0

New member

Posts

Joined
Wed Feb 17, 2010 11:42 pm

Post by silkcamel » Mon May 02, 2016 2:19 am

Hey Jarv,

I had the same problem with Opencart V2.2.0.0 when I click "add to cart". the error message pop up

This site says
Error
Undefined

Have you solved the problem? Thank you.

New member

Posts

Joined
Sun May 01, 2016 6:05 am

Post by SporeD3v » Fri Sep 30, 2016 4:45 pm

Hello,

For those that still have this problem here is the most likely solution:

1. Check the URL:
- try accessing your website with and without WWW in the URL. Example: http://www.example.com and example.com
- if you discover that the problem is caused by the URL keep in mind in what situation the problem appears (with or without the www)

2. Edit .htaccess
- log in to your FTP client/CPanel -> File Manager and go to the root of your website (public_html or similar)
- if the problem appears when you have www in front of your store's domain (http://www.example.com), follow the instruction in point 2a
- if the problem appears when you DON'T have www in front of your store's domain (example.com), follow the instruction in point 2b

2a.
- copy paste the following code to the bottom of the file*:

#Force non-www:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.example\.com[NC]
RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]

* make sure that you edit the example.com link to suit your actual domain name

2b.
- copy paste the following code to the bottom of the file*:

#Force www:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301,NC]

* make sure that you edit the example.com link to suit your actual domain name

3. Hit save and check if the problem is solved.

New member

Posts

Joined
Sat Nov 14, 2015 7:32 pm

Post by Moggin » Thu Oct 06, 2016 11:31 pm

Thanks SporeD3v.
Lifesaver

Active Member

Posts

Joined
Wed May 05, 2010 4:56 am
Who is online

Users browsing this forum: No registered users and 9 guests