Post by darko1991 » Tue Sep 19, 2017 12:32 am

Hi i have two online stores, first was made on 1.5.6.4 with journal 2.0 Theme and dont have any trouble, but the other one is made on 2.1.0.2 with the same theme but compatible with 2.1.0.2 now when i want to add to cart there is error and when i open cart there is another error, and when i open checkout there is another error they all are starting with Syntax error: unexpected token < in JSON at position 0.
I posted photos of each error can someone help me?

ADDING TO CART TROUBLE
Image

OPENING CART PAGE
Image

OPENING CHECKOUT PAGE
Image

Newbie

Posts

Joined
Tue Sep 19, 2017 12:24 am

Post by yodapt » Tue Sep 19, 2017 1:49 am

Was that error there from the beggining?

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by darko1991 » Tue Sep 19, 2017 1:50 am

i didnt even try it i uploaded opencart, theme and language and started modifiying theme, and after i made 16 hours of work i went to try it and got this

Newbie

Posts

Joined
Tue Sep 19, 2017 12:24 am

Post by yodapt » Tue Sep 19, 2017 1:53 am

Can you show the link?

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by IP_CAM » Tue Sep 19, 2017 2:14 am

he seemengly uses both URL's, so, one of the errors could be based on this:
http://malenkosti.com/
<base href="http://www.malenkosti.com/" />

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by darko1991 » Tue Sep 19, 2017 12:38 pm

How could i solve that?

Newbie

Posts

Joined
Tue Sep 19, 2017 12:24 am

Post by IP_CAM » Tue Sep 19, 2017 1:22 pm

ADD in the .htaccess file, AFTER:
UNTESTED!

Code: Select all

RewriteEngine On
RewriteBase /
# THIS:
# Force (http host) non www to www
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTPS_HOST}/$1 [R=301,L]

# Force (https host) non www to www
RewriteCond %{HTTPS} on
RewriteCond %{HTTPS_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTPS_HOST}/$1 [R=301,L]
]
to make every incoming call a https://www. Link, if your config.php files are
linked as https://www. in BOTH Sections, like:

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'https://www .whatever. com/');
define('HTTP_IMAGE', 'https://www .whatever. com/image/');

// HTTPS
define('HTTPS_SERVER', 'https://www .whatever. com/');
define('HTTPS_IMAGE', 'https://www .whatever. com/image/');
It probably won't solve all the problems you have, but at least some, I assume.
Good Luck! ;)
Ernie

PS. Check on this too, to make sure, that HTTPS/SSL is always used 'OC-internally' as well !
(if it codewise matches your Version?!)
---
Forçar HTTPS em Todas as Páginas.
Enforce https on all Pages

https://www.opencart.com/index.php?rout ... n_id=26740
---
And here is a bundle of SSL Knowledge as well:
viewtopic.php?f=190&t=171302#p656833

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 1 guest