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
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
Yes.evilfx wrote:Do you know how i can fix this?
To be serious, you should avoid the calling with AND without www
The error you have is based on this:
Quellübergreifende (Cross-Origin) Anfrage blockiert: Die Gleiche-Quelle-Regel verbietet das Lesen der externen Ressource auf http://www.beleza21.com/catalog/view/ja ... f2?v=4.4.0. (Grund: CORS-Kopfzeile 'Access-Control-Allow-Origin' fehlt).
Line 0
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
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?
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?
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.
Is it aditional or it comes with theme? Please PM me when you can.
Fixing that can be done via 2 methods: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?
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.
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
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]
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
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:
Thanks!
i changed it to:
and now it is always www.beleza21.com and it works.RewriteCond %{HTTP_HOST} ^beleza21.com [NC]
RewriteRule (.*) http://www.beleza21.com/$1 [R=301,L]
Thanks!
Important that it works.
While a 'www' is not really needed, it is just a subdomain technically.
So there is something else wrong.
While a 'www' is not really needed, it is just a subdomain technically.
So there is something else wrong.
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
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
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
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/');"
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.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/');"
[keywords=undefined+error+in+subdomain+www]
Dum spiro spero.
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.
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.
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', '/');
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', '/');
OSWorX wrote:To allow only non-www pages, add this here into your .htaccessCode: 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
This worked for me, thanks!onedeveloper wrote: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', '/');
thank you so much!!!!!onedeveloper wrote: ↑Mon Jul 18, 2016 10:28 pmCorreçã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', '/');
Hello everybody,waniegreeny wrote: ↑Mon Sep 19, 2016 5:51 pmOSWorX wrote:To allow only non-www pages, add this here into your .htaccessCode: 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
I have same problem. When I click wiev latest order on admin page, get a pop up like this:
Error
Undefined
Please help me...
Who is online
Users browsing this forum: No registered users and 30 guests