Post by Mariogs » Tue Apr 22, 2025 3:35 pm

I use opencart 3.0.4 and When I try to buy something I get this error.
I have checked certificate and it is till valid. I use nginx. I also use google captcha extension.
sellyour3d.com


SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
parsererror

Code: Select all

<b>Warning</b>: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
error:0A000126:SSL routines::unexpected eof while reading in <b>/var/www/html/opencart/catalog/controller/extension/captcha/google.php</b> on line <b>27</b>

New member

Posts

Joined
Mon Dec 02, 2024 12:53 am

Post by ADD Creative » Tue Apr 22, 2025 6:37 pm

Try contacting your host. The error suggests that there may be something wrong with the server missing certificates or ciphers. These will not be the same ones used by you domain.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by paulfeakins » Tue Apr 22, 2025 7:20 pm

As above your host probably needs to update OpenSSL on the server.

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


User avatar
Legendary Member
Online

Posts

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

Post by Mariogs » Tue Apr 22, 2025 7:23 pm

paulfeakins wrote:
Tue Apr 22, 2025 7:20 pm
As above your host probably needs to update OpenSSL on the server.
It is my server and I checked certificates and are ok. And when I disable google captcha and use basic captcha than it is ok.

New member

Posts

Joined
Mon Dec 02, 2024 12:53 am

Post by by mona » Tue Apr 22, 2025 7:49 pm

It is not an opencart error it is a server error.
Something is probably wrong with your server settings or installed packages.
You can request commercial support viewforum.php?f=88

Maybe consider using a host.

FYI Live sites should not have any active error logging it is a security risk

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by paulfeakins » Wed Apr 23, 2025 5:43 pm

Mariogs wrote:
Tue Apr 22, 2025 7:23 pm
paulfeakins wrote:
Tue Apr 22, 2025 7:20 pm
As above your host probably needs to update OpenSSL on the server.
It is my server and I checked certificates and are ok. And when I disable google captcha and use basic captcha than it is ok.
No, you're not understanding, OpenSSL is software on the server it is NOT your SSL certificate.

If you know this little about servers, you should not have an un-managed server with a live ecommerce website, it's a security risk for your customers.

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


User avatar
Legendary Member
Online

Posts

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

Post by faca5 » Thu Apr 24, 2025 5:51 pm

Hello.

Problem is related to OpenSSL and Google reCaptcha.

If you disable Google reCaptcha in Extensions > Extensions > Captcha > Google > Edit > Status: Disabled > Save, error should disappear.

You can change your settings under System > Settings > Options > add the bottom "Captcha Page", check for "Checkout".

Izdelava spletne trgovine | Najem spletne trgovine | PHP programiranje


User avatar
New member

Posts

Joined
Wed Aug 27, 2014 7:23 pm


Post by Mariogs » Tue May 13, 2025 3:37 pm

I will give up on opencart, because nothing works. I am trying to start this store for a 7 months now and all the time something doesn't work. All the time there is a problem. I have installed opencart for 15 times I even install new server and start all over for 3 times. And now google captcha doesn't work also adding paypal into opencart doesn't work, changing theme also doesn't work.. I give up. I never had so many problems with php software and I have installed alot of it.
This takes way too much time for me.

New member

Posts

Joined
Mon Dec 02, 2024 12:53 am

Post by ADD Creative » Tue May 13, 2025 4:00 pm

Mariogs wrote:
Tue May 13, 2025 3:37 pm
I will give up on opencart, because nothing works. I am trying to start this store for a 7 months now and all the time something doesn't work. All the time there is a problem. I have installed opencart for 15 times I even install new server and start all over for 3 times. And now google captcha doesn't work also adding paypal into opencart doesn't work, changing theme also doesn't work.. I give up. I never had so many problems with php software and I have installed alot of it.
This takes way too much time for me.
The issue posted here is definitely a server issue. The code that causes the error is simply as follows with some extra parameters. all it is doing is making a request to Google. Should be not problem for any server configured correctly. You can even try the code on it's own in a .php file.

Code: Select all

file_get_contents('https://www.google.com/recaptcha/api/siteverify?secret=');
The latest PayPal Checkout extension does seem to have some issues connecting, unfortunately. Did you ever try the manual connection method?
https://github.com/Dreamvention/paypal? ... hese-steps

What issue were you having switching theme? Sadly there are some poor quantity themes and extension about.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom
Who is online

Users browsing this forum: lockiedownunder, o3445 and 82 guests