News:

AbanteCart v1.4.3 is released.

Main Menu

Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - kavlito

#1
I used ChatGPT to resolve this based on the error log msg. In my case, it was due to 'allow_url_fopen' not being enabled in my servers PHP settings.

QuoteCHATGPT RESPONSE:

Ahhh, perfect – that error log is the smoking gun.

file_get_contents(https://www.google.com/recaptcha/api/siteverify): failed to open stream: no suitable wrapper could be found

That means:

👉 Your AbanteCart + reCAPTCHA setup is basically fine.
👉 The problem is your server's PHP config can't make HTTPS requests.

So it's not the keys, not the domains, not v2 vs v3. It's PHP.

1. What "no suitable wrapper could be found" actually means

In PHP, file_get_contents() can fetch URLs only if:

allow_url_fopen is On, and

The https stream wrapper is available (usually via the openssl extension).

If either is missing/disabled, PHP can't handle https://... URLs, and you get exactly:

no suitable wrapper could be found

So AbanteCart is trying to call Google here:

https://www.google.com/recaptcha/api/siteverify


...but PHP doesn't know how to speak HTTPS from that environment.

2. The real fix: enable HTTPS URL support in PHP

Since you're on /home/domain/public_html/..., this is almost certainly a cPanel/shared-host style setup.

Step A – Check your PHP configuration

Option 1: From AbanteCart (if phpinfo is available)
Sometimes under System → Engine → Tools or similar, there's a "PHP Info" link.
If you see it:

Open phpinfo.

Look for:

allow_url_fopen → should be On

openssl section → should exist and be enabled

Option 2: Via a tiny phpinfo file

In public_html/, create a file called phpinfo.php with:

<?php phpinfo();


Visit https://domain.com/phpinfo.php

Check:

allow_url_fopen

openssl extension

Registered stream wrappers – you should see https listed.

Delete phpinfo.php when you're done (don't leave it live).

Step B – Turn things ON in cPanel

Log into cPanel for this account:

Go to Select PHP Version or MultiPHP INI Editor (depends on host).

Make sure:

PHP version is reasonably recent (e.g., 7.4 / 8.0 / 8.1, not something ancient).

Extensions: check the box for openssl.

In MultiPHP INI Editor (or similar), ensure:

allow_url_fopen = On


Save / Apply changes.

Clear AbanteCart cache (from admin).

Test your form again.

If you don't see those controls, or they're locked, just send this exact text to your host:

"My PHP error log shows:
file_get_contents(https://www.google.com/recaptcha/api/siteverify): failed to open stream: no suitable wrapper could be found

Please enable the PHP https stream wrapper for this account (ensure allow_url_fopen is On and the openssl extension is enabled), so file_get_contents can access HTTPS URLs."

Once they enable that, reCAPTCHA will start validating properly.

3. Optional workaround: use cURL instead of file_get_contents

Only if your host refuses to enable allow_url_fopen or https wrappers, you can hack around it by switching the reCAPTCHA library to use cURL (if cURL is available).

Look at:

/core/vendors/google_recaptcha/ReCaptcha/RequestMethod/Post.php
/core/vendors/google_recaptcha/ReCaptcha/RequestMethod/CurlPost.php  (if present)


In some versions of the official Google library, the main ReCaptcha class chooses cURL automatically when available. If AbanteCart's version is forcing Post (file_get_contents) instead of CurlPost, you could:

Change the code that instantiates RequestMethod\Post to RequestMethod\CurlPost (assuming the file exists and cURL is enabled).

But honestly:
✅ The clean, future-proof solution is to fix PHP config on the server.
That way other things (payments, external APIs, etc.) also work correctly.

4. Summary / what you should do next

Stop worrying about keys/domains – they're not the issue now.

Fix PHP https support:

Ensure allow_url_fopen = On

Ensure openssl is enabled

Confirm https appears in PHP stream wrappers

Retest the form after AbanteCart cache clear.

If you'd like, paste back a couple of lines from your phpinfo (just the bits for allow_url_fopen and whether openssl shows up), and I can confirm if the server is configured correctly.
#2
This has absolutely never worked. I have everything set up correctly (created over a dozen keys both v2 & v3 - it's not that difficult) and still get the error message: Human verification has failed! Please try again.

Error log shows: warning: AbanteCart core v.1.2.16 file_get_contents(https://www.google.com/recaptcha/api/siteverify): failed to open stream: no suitable wrapper could be found in <b>/home/domain/public_html/core/vendors/google_recaptcha/ReCaptcha/RequestMethod/Post.php</b> on line <b>80</b>
#3
Hi, It's 4 years later from the original post, and still wondering how to add JSON-LD Structured Data in Abantecart? The SEO field is changing with AI and wondering how Abantecart is positioned to handle this?

Thanks.
#4
Recently, customers have been calling because they cannot create an account due to reCAPTCHA Human verification has failed! Please try again. error message. I've had this problem exactly 2 years ago and created new keys and it resolved the problem. However, this time it is not.

I assume that something changed on Google's end. I currently have to leave human verification turned off just to receive orders.

What can be done?

Thanks in advance.
#5
Support / Re: Order status and their meanings
November 09, 2021, 01:10:28 PM
Quote from: kavlito on May 02, 2020, 07:38:33 PM
Quote from: abantecart on February 07, 2017, 01:35:53 PM
Careful with just renaming statuses. Changing meaning, does not change functionality. Some statuses are closely tide up with system functionality.

This is what I came here to find out. Can someone please explain which statuses are tied to system functionality with details?

Thanks.

Anyone???

Is there any documentation that details which statuses are tied to system functionality, and which ones are freeform?
#6
Customization help / Re: Convert Invoice to Packing Slip
November 09, 2021, 12:46:00 PM
I also made a modification to admin\view\default\template\responses\sale\order_invoice.tpl so that it will initiate auto print when you click on the Invoice icon (now the Packing Slip Icon).

In the Chrome browser it's great because it pops up a print preview.

Using auto print increases efficiency as it is one less step in the production process for my employees.

Place the following code at the end of the file (see attachments):

<!--  mod to auto print -->
<script language="JavaScript">
window.print();
</script>
#7
General Support / Re: Contact Us Page
November 09, 2021, 11:17:08 AM
Quote from: Janex on July 11, 2019, 02:04:33 AM
Greetings,

Where do I edit the Contact Us PAGE (not the Contact us info on the footer).  The Contact Us page has a Contact Form built in.  I would like to update/add some content on this page - where do I find it to edit?

Thanks!

storefront/view/(yourtheme)/template/pages/content/contact.tpl
#8
I've tried this on my custom template, and it doesn't work. Any other suggestions?

Thanks.
#9
Support / Re: Memory Limitation error
May 27, 2020, 06:05:25 AM
My server shows the PHP memory limit set to 128MB.

Abantecart PHP info shows 32MB?
#10
I am in the process of converting from Zencart, so I am using the latest 1.2.16.
#11
Apache Litespeed
#12
I've been seeing this App Error message, but everything seems to be working OK. Is this something I as an end user need to troubleshoot, or is this a programming issue?

I am converting from Zencart and have migrated all of my data and testing to go live soon. So far everything is testing OK.

Thanks.
#13
Support / Memory Limitation error
May 26, 2020, 05:09:19 PM
I've had this Memory Limitation error ever since I installed v1.2.15 last month. My PHP memory limit is set at 128MB.

I upgraded to v1.2.16 today and the message re-appeared. However, everything is running smoothly.

Do I need to do anything about this?

Thanks.
#14
I received the 'SEO URLs does not work' error message after upgrading to v1.2.16 today (from v1.2.15). However, it seems that it is still working OK as all of my pages have the appropriate friendly URL's.

My cart is currently in development with a go live this coming weekend. Would like to know if I need to worry about this.

Thanks.
#15
I use the Featured Products listing on my homepage. However, the display order is static and I prefer it to be random.

This can be easily accomplished by adding one line to this file: /storefront/view/*mytemplate*/template/blocks/product_list.tpl

Insert: shuffle($products);
between: $icount = 0;
and: foreach ($products as $product) {

See attachment.

Enjoy!

(one caveat: this does not work with HTML Cache enabled - Update 5/26/20 - this statement is moot as of v1.2.16 as HTML Cache has been deprecated)

Forum Rules Code of conduct
AbanteCart.com 2010 -