Post by demigeek » Fri Nov 29, 2019 1:09 am

hi all, I hope someone can help, I have an issue with my clients site. https://www.toolmegastore.com where each someone visits the site the icons don't show correctly until I click on a product, then the icons appear. During this time if I were to click on the add to cart button, it comes up with an unknown error.
If this has already been answered then I apologise now, other than that id appreciate it if someone could point me in the right direction.
Many Thanks
Neil..

Newbie

Posts

Joined
Fri Jun 14, 2019 12:01 am

Post by OSWorX » Fri Nov 29, 2019 1:32 am

demigeek wrote:
Fri Nov 29, 2019 1:09 am
.. I have an issue with my clients site ..
Sounds like a paid job ..

Nevertheless, you should fix the cors rules (Cross Origin).
Check the config.php and fix the paths (https instead http).
Additionally the .htaccess

And don't mix loading with www. and without.

And beside all: you are using the Journal Theme, ask their support for such - thx.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by letxobnav » Fri Nov 29, 2019 2:01 am

your site doesn't run on https://www.toolmegastore.com but on https://toolmegastore.com, hence the CORS issues.

Someday you may explain how you can have clients and not know this or the use of web developer tools where these errors jump right at you.

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by paulfeakins » Fri Nov 29, 2019 8:52 pm

letxobnav wrote:
Fri Nov 29, 2019 2:01 am
Someday you may explain how you can have clients and not know this or the use of web developer tools where these errors jump right at you.
Lol yeah this is a pretty basic and common issue, you should probably level up your coding / OpenCart knowledge before taking on too many clients.

Anyway as above you need to decide on www or non-www and use that in your config files (I recommend www) and have a redirect in your .htaccess like this:

Code: Select all

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

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


User avatar
Legendary Member

Posts

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

Post by xxvirusxx » Sat Nov 30, 2019 6:27 pm

Or this

Code: Select all

RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
RewriteRule ^ https://www.%1%{REQUEST_URI} [L,NE,R=301]

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România
Who is online

Users browsing this forum: No registered users and 22 guests