Post by larenewadespitler » Sat Jun 11, 2022 6:35 am

catalog/controller/checkout/cart.php

function add()

At the very end I look at the json_encode function and it looks correct. But a JSON error pops up with
re{....} which is not valid JSON. I don't know who is putting up the re in front of JSON


$this->response->addHeader('Content-Type: application/json');
$result = json_encode($json);
$this->log->debug('json final result=' . $result);
#$this->response->setOutput(json_encode($json));
$this->response->setOutput($result);

My webpage:
https://test.summitcitybullets.com/45-ACP-200-grain-SWC

I don't know where else to look.

Larene
Last edited by larenewadespitler on Sun Jun 26, 2022 1:19 am, edited 1 time in total.

New member

Posts

Joined
Thu Apr 20, 2017 11:39 pm

Post by straightlight » Sat Jun 11, 2022 6:42 pm

larenewadespitler wrote:
Sat Jun 11, 2022 6:35 am
catalog/controller/checkout/cart.php

function add()

At the very end I look at the json_encode function and it looks correct. But a JSON error pops up with
re{....} which is not valid JSON. I don't know who is putting up the re in front of JSON


$this->response->addHeader('Content-Type: application/json');
$result = json_encode($json);
$this->log->debug('json final result=' . $result);
#$this->response->setOutput(json_encode($json));
$this->response->setOutput($result);

My webpage:
https://test.summitcitybullets.com/45-ACP-200-grain-SWC

I don't know where else to look.

Larene
OC version. Developers Kit > Console and Network Tabs. Server Error Logs.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by paulfeakins » Mon Jun 13, 2022 6:42 pm

larenewadespitler wrote:
Sat Jun 11, 2022 6:35 am
But a JSON error pops up
Well seeing as your site is behind a password, and developers generally aren't telepathic, perhaps you wouldn't mind sharing what the error actually says?

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


User avatar
Guru Member
Online

Posts

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

Post by larenewadespitler » Tue Jun 14, 2022 6:07 am

Here you go.
User support
Password help4me2022!

I think I missed the Telepathy 101 class also when I earned my BS in Computer Science.

Larene

New member

Posts

Joined
Thu Apr 20, 2017 11:39 pm

Post by JNeuhoff » Tue Jun 14, 2022 5:49 pm

paulfeakins wrote:
Mon Jun 13, 2022 6:42 pm
larenewadespitler wrote:
Sat Jun 11, 2022 6:35 am
But a JSON error pops up
Well seeing as your site is behind a password, and developers generally aren't telepathic, perhaps you wouldn't mind sharing what the error actually says?
With some posters here it's a hopeless case. He can't even provide correct login details for his test site.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by larenewadespitler » Tue Jun 14, 2022 10:51 pm

I removed the .htaccess. It is not hopeless,

Larene

New member

Posts

Joined
Thu Apr 20, 2017 11:39 pm

Post by JNeuhoff » Tue Jun 14, 2022 11:04 pm

You are using the Journal3 framework which isn't supported here. Please contact the Journal3 support.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by larenewadespitler » Wed Jun 22, 2022 2:47 am

The problem was the file
catalog/controller/checkout/cart.php

had the letters "re" in a place they didn't belong.

When they were removed the problem was solved.

It had nothing to do with the Journal Theme.

Larene

New member

Posts

Joined
Thu Apr 20, 2017 11:39 pm

Post by straightlight » Wed Jun 22, 2022 10:09 am

larenewadespitler wrote:
Wed Jun 22, 2022 2:47 am
The problem was the file
catalog/controller/checkout/cart.php

had the letters "re" in a place they didn't belong.

When they were removed the problem was solved.

It had nothing to do with the Journal Theme.

Larene
It may have not been the case. However, you were first asked to provide your developers kit > console / network tab results as your server error logs which, in this case, if you had, the reported issue could of been solved in a much faster rate. Now that the issue has been solved, please add: [SOLVED] at the beginning of the subject line on your first post.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by larenewadespitler » Sun Jun 26, 2022 1:20 am

I have no idea what
developers kit > console / network tab results
means.

Larene

New member

Posts

Joined
Thu Apr 20, 2017 11:39 pm

Post by straightlight » Sun Jun 26, 2022 5:34 am

larenewadespitler wrote:
Sun Jun 26, 2022 1:20 am
I have no idea what
developers kit > console / network tab results
means.

Larene
Hit F12 on your keyboard once you loaded the store.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 144 guests