Post by jinalis92 » Fri Mar 23, 2018 7:44 pm

Kindly help resolve this issue, i tried going through the forum and did find the similar post but nothing seems to be helpful :(

SyntaxError: Unexpected token < in JSON at position 0
OK
<b>Notice</b>: Undefined index: in <b>/home/mauvejhm/public_html/system/library/cart/currency.php</b> on line <b>25</b><b>Notice</b>: Undefined index: in <b>/home/mauvejhm/public_html/system/library/cart/currency.php</b> on line <b>26</b><b>Notice</b>: Undefined index: in <b>/home/mauvejhm/public_html/system/library/cart/currency.php</b> on line <b>27</b><b>Notice</b>: Undefined index: in <b>/home/mauvejhm/public_html/system/library/cart/currency.php</b> on line <b>30</b>{"success":"Success: Gift Voucher e-mail has been sent!"}

Newbie

Posts

Joined
Fri Aug 25, 2017 3:13 pm

Post by straightlight » Fri Mar 23, 2018 8:56 pm

No OC version posted.

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 jinalis92 » Fri Mar 23, 2018 8:59 pm

Sorry, my bad. The version is 2.3.0.2

Newbie

Posts

Joined
Fri Aug 25, 2017 3:13 pm

Post by straightlight » Fri Mar 23, 2018 9:09 pm

Either caused by a failed upgrade attempt and your old store files are mixed with the new files or the new files do not exist to their new locations or these errors are caused by an installed extension. The relative path to currency.php you are showing on the error messages above is no longer valid even in v2.3.0.2 release.

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 jinalis92 » Fri Mar 23, 2018 9:16 pm

Thank you for the response. If I understand right, I checked the path of currency.php in my downloaded v2.3.0.2 and it's in the exact same path as mentioned in the error. How can I check the possibility of an installed extension causing this error? I am sorry, if I sound lame :|

Newbie

Posts

Joined
Fri Aug 25, 2017 3:13 pm

Post by straightlight » Fri Mar 23, 2018 9:20 pm

My apologize. I must of mixed a filename with a path during this analysis. This is obviously caused by an installed extension since in does not exist on line 25 and 26 unless you explicitly entered in on the OC admin.

If so, from which route location do you notice the JSON error? More information is needed.

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 jinalis92 » Sat Mar 24, 2018 4:11 pm

I encountered this error while I was trying to test the Gift Vouchers and sending it as a mail to the email id. Refer the screenshots.
I have never encountered the error before.

Attachments

Screen Shot 2018-03-24 at 1.40.12 PM.png

Screen Shot 2018-03-24 at 1.40.12 PM.png (117.5 KiB) Viewed 2968 times


Newbie

Posts

Joined
Fri Aug 25, 2017 3:13 pm

Post by straightlight » Sat Mar 24, 2018 7:37 pm

From the v2.3.0.2 ZIP file, replace your admin/controller/extension/total/voucher.php or admin/controller/total/voucher.php file's send() method entirely and see if that resolves the issue. If not, then the issue is related with your store currency settings.

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 jinalis92 » Sat Mar 24, 2018 8:00 pm

I tried replacing the voucher.php file and it still didn't work. I checked my store settings and everything looks fine. I don't know, the error still persists.

Newbie

Posts

Joined
Fri Aug 25, 2017 3:13 pm

Post by straightlight » Sat Mar 24, 2018 8:11 pm

It would then be suggested to upgrade your OC version to at least v2.3.0.2 release since this issue may have been fixed a long time ago on a more recent version.

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 jinalis92 » Sat Mar 24, 2018 9:09 pm

I am using OC v2.3.0.2 at the moment. So you suggest to upgrade to v3.0?

Newbie

Posts

Joined
Fri Aug 25, 2017 3:13 pm

Post by straightlight » Sat Mar 24, 2018 9:16 pm

Send me a PM, I will take a look at this issue.

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 straightlight » Sat Mar 24, 2018 11:27 pm

See if this extension resolves the issue: https://www.opencart.com/index.php?rout ... n_id=19640

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 jinalis92 » Mon Mar 26, 2018 8:02 pm

Thank you. Well the issue is partially resolved. Turned out that the error was in the mail setting that prevented from sending the voucher email. Although, that bit is resolved and now it did send the email, the json error of currency.php still persists.

Newbie

Posts

Joined
Fri Aug 25, 2017 3:13 pm
Who is online

Users browsing this forum: No registered users and 26 guests