Your SERVER does not support allow_url_fopen, nor cUrl!

Started by EsSa55, September 27, 2020, 12:07:58 PM

Previous topic - Next topic

EsSa55

VirtueMart 3.8.4 10335
Joomla! 3.9.21 Stable
PHP 7.3.22


Message (per screenshot):

"Your SERVER does not support allow_url_fopen, nor cUrl! Registration process stopped. Please enable on your server either allow_url_fopen or cUrl."

Both statements are incorrect.

I cannot actually see any impact, including to Registration; if it means User registration.

TIA



pinochico

Quote"Your SERVER does not support allow_url_fopen, nor cUrl! Registration process stopped. Please enable on your server either allow_url_fopen or cUrl."

This is question to your hosting and joomla forum, not virtuemart.

And read carefoully joomla doc about instalation and recomnded setup for hosting:
https://docs.joomla.org/J3.x:Installing_Joomla
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

EsSa55

Asking the question on here was the last resort, not the first.

It appears only in the VM component and neither statement is true; both are Enabled.



pinochico

My hosting and my configuration are ok:

VirtueMart 3.8.4 10335
Joomla! 3.9.14 Stable
PHP 7.3.5
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

GJC Web Design

Hi Eddie,

this message comes from the function getMemberStatus() in administrator\components\com_virtuemart\controllers\virtuemart.php

Its the
Like VirtueMart?

Become a Supporter

thing in the admin

you could just disable it there if the check is a false negative

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

EsSa55

Hello John

Thanks for the explanation and advice, as ever.

I do have a Supporter number and now realise what is not displaying.

Have you seen it before?

Best

Eddie

GJC Web Design

No I haven't.. the check is fairly basic...

it would only show a failure IF you have a membership key

if(!empty($host) AND !empty($ackey)) {

$link = 'https://extensions.virtuemart.net/index.php?option=com_virtuemart&view=plugin&name=istraxx_download_byhost&ackey='.base64_encode( $ackey ).'&host='.$host.'&vmlang='.VmConfig::$vmlangTag.'&sku=VMMS&vmver='.vmVersion::$RELEASE;

try {
$resObj = JHttpFactory::getHttp(null, array('curl', 'stream'))->get($link);
$request = $resObj->body;
}
catch (RuntimeException $e) {
$d = new stdClass();
$d->res = 'No connection';
$d->html = '<div style="color:red;font-size: 30px;line-height: 32px;">Your SERVER does not support allow_url_fopen, nor cUrl! Registration process stopped. Please enable on your server either allow_url_fopen or cUrl. </div>';
$request = json_encode($d);

}


I think if the url doesn't return then it is deemed a failure .. but i assume it could fail for all sorts of reasons other than no cUrl etc .. e.g. connectivity, server down etc
but the error is hard coded as cUrl failure
I think the https://extensions.virtuemart.net was down for a short time on Friday .. maybe this caused it?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

EsSa55

Ok, so I logged in, again.

The message was still there.

I selected Virtuemart -> Tools and it reverted to the the Yellow box, inviting a new subscription because my previous one had expired.

I have renewed, input the new membership number and all is now ok, again.

I doubt it was the selection of the Tools option which cured the issue as I had gone through the list previously.

Nor, a novel way of inviting a new subs.

More likely the server-down as you suggested.

Anyway, back to sleep now.

Take care

Eddie