Page 1 of 1
error undefined
Posted: Tue Mar 15, 2016 8:42 pm
by evilfx
Hello,
If i access my stores admin url, or click on add to cart on the frontpage i get a popup with:
Error
Undefined
This happens ONLY if i access my websites without the www.
My websites are:
www.beleza21.com (OC 2.1.0.2) and
www.kawibikini.com (latest version of OC)
Do you know how i can fix this?
Best regards,
evilfx
Re: error undefined
Posted: Tue Mar 15, 2016 10:19 pm
by OSWorX
evilfx wrote:Do you know how i can fix this?
Yes.
To be serious, you should avoid the calling with AND without www
The error you have is based on this:
Re: error undefined
Posted: Wed Mar 16, 2016 1:33 am
by evilfx
Hi Osworx, thanks for your reply.
Sometimes my browser auto-completes without the "www.". And then i get that error. I'm afraid my customers might see this error as well.
From your reply i didn't quite get it how i can fix it? Could you be more accurate as to what the fix is?
Is this something that happens to everybody?
Re: error undefined
Posted: Wed Mar 16, 2016 3:46 am
by MariOiraM
Sory for outside of theme question, what is your slideshow called?
Is it aditional or it comes with theme? Please PM me when you can.
Re: error undefined
Posted: Wed Mar 16, 2016 3:55 am
by OSWorX
evilfx wrote:Hi Osworx, thanks for your reply.
Sometimes my browser auto-completes without the "www.". And then i get that error. I'm afraid my customers might see this error as well.
From your reply i didn't quite get it how i can fix it? Could you be more accurate as to what the fix is?
Is this something that happens to everybody?
Fixing that can be done via 2 methods:
1. if you are using Plesk, simply define that there that you want URLs with / or without www (do not know if that can be done with other server panels like cPanel etc.)
2. simply add 2 lines to your .htaccess (either with or without www)
With both methods you are fine.
Re: error undefined
Posted: Wed Mar 16, 2016 7:12 pm
by evilfx
2. simply add 2 lines to your .htaccess (either with or without www)
how do i do this Osworx?
Sorry for all the trouble but i'm new at this.
Re: error undefined
Posted: Wed Mar 16, 2016 7:24 pm
by OSWorX
To allow only non-www pages, add this here into your .htaccess
Code: Select all
RewriteCond %{HTTP_HOST} ^www.beleza21.com [NC]
RewriteRule (.*) http://beleza21.com/$1 [R=301,L]
Re: error undefined
Posted: Wed Mar 16, 2016 8:50 pm
by evilfx
if i do that, i get the error all the time because it is without www. that i get the error.
i changed it to:
and now it is always
www.beleza21.com and it works.
Thanks!
Re: error undefined
Posted: Wed Mar 16, 2016 10:35 pm
by OSWorX
Important that it works.
While a 'www' is not really needed, it is just a subdomain technically.
So there is something else wrong.
Re: error undefined
Posted: Fri Apr 29, 2016 1:11 pm
by princerocky
HI Osworkx,
I m also getting same error for my new developed site ..
If i access my store and click on add to cart on the front page i get a pop up with:
Error
Undefined
This happens ONLY if i access my websites without the www. on mobile
My websites are:
www.kuchdeals.com (OC 2.2.0.0) and
www.waydeal.com (OC 2.1.0.2)
Do you know how i can fix this?
Pls help
Re: error undefined
Posted: Mon May 09, 2016 7:00 pm
by zezjulin
1. make redirect (with or without www) into your .htaccess
2. into config.php (main and admin folders) add or delete
www. in "define('HTTP_SERVER', '
http://www.yoursite.com/');"
Re: error undefined
Posted: Mon May 30, 2016 7:50 am
by dragonfly-ie
zezjulin wrote:1. make redirect (with or without www) into your .htaccess
2. into config.php (main and admin folders) add or delete
www. in "define('HTTP_SERVER', '
http://www.yoursite.com/');"
That's it in a nutshell. Cheers.
[keywords=undefined+error+in+subdomain+www]
Re: error undefined
Posted: Wed Jul 13, 2016 10:23 pm
by himanshug.com
Hello,
Thanks for your conversation and observations but seriously I got solution from here, as I read that this is going because of www and someone said that www. is a sub-domain and that strikes in mind that yes, a sub-domain can be a issue as in some CMS the file paths are used according to the installation directory and its URL and thus, creates an issue with most common sub-domain i.e. www.
Well, making a permanents re-direct without using www helps a lot in case site is installed on without www directory and vice-versa in case of if site is installed in with www directory.
Re: error undefined
Posted: Mon Jul 18, 2016 10:28 pm
by onedeveloper
Correção
Altere os arquivos config.php
De
define('HTTP_SERVER', '
http://seudominio.com.br/admin/');
define('HTTP_CATALOG', '
http://seudominio.com.br/');
Para
define('HTTP_SERVER', '/admin/');
define('HTTP_CATALOG', '/');
Re: error undefined
Posted: Mon Sep 19, 2016 5:51 pm
by waniegreeny
OSWorX wrote:To allow only non-www pages, add this here into your .htaccess
Code: Select all
RewriteCond %{HTTP_HOST} ^www.beleza21.com [NC]
RewriteRule (.*) http://beleza21.com/$1 [R=301,L]
HI Osworkx,
I m also getting same error for admin site. If i access admin page and click on view latest order i get a pop up with:
Error
Undefined
My websites are:
www.dinarglobal.com (OC 2.2.0.0) and admin page
www.dinarglobal.com/admin
Do you know how I can fix this?
Pls help
Re: error undefined
Posted: Sun Sep 25, 2016 3:49 am
by srvec
hello everybody
i hav a problem in location side; specialy when i choose morocco as location for my store.
it give me error unexeption token < in JSON position 3581.
can you help me ??
Re: error undefined
Posted: Tue Nov 01, 2016 11:07 pm
by mrfifagamer
This worked for me, thanks!
Re: error undefined
Posted: Sun Apr 23, 2017 7:55 pm
by reginamor
Re: error undefined
Posted: Thu Mar 08, 2018 2:41 am
by halitorak72
waniegreeny wrote: ↑Mon Sep 19, 2016 5:51 pm
OSWorX wrote:To allow only non-www pages, add this here into your .htaccess
Code: Select all
RewriteCond %{HTTP_HOST} ^www.beleza21.com [NC]
RewriteRule (.*) http://beleza21.com/$1 [R=301,L]
HI Osworkx,
I m also getting same error for admin site. If i access admin page and click on view latest order i get a pop up with:
Error
Undefined
My websites are:
www.dinarglobal.com (OC 2.2.0.0) and admin page
www.dinarglobal.com/admin
Do you know how I can fix this?
Pls help
Hello everybody,
I have same problem. When I click wiev latest order on admin page, get a pop up like this:
Error
Undefined
Please help me...