Author Topic: Your SERVER does not support allow_url_fopen, nor cUrl!  (Read 1132 times)

EsSa55

  • Jr. Member
  • **
  • Posts: 93
    • 4FootyFans & 4MovieTVmusicFans
  • Skype Name: talk2-4footyfans
  • VirtueMart Version: Live: 3.4.2
Your SERVER does not support allow_url_fopen, nor cUrl!
« on: September 27, 2020, 12:07:58 pm »
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

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1464
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Your SERVER does not support allow_url_fopen, nor cUrl!
« Reply #1 on: September 27, 2020, 15:28:08 pm »
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

  • Jr. Member
  • **
  • Posts: 93
    • 4FootyFans & 4MovieTVmusicFans
  • Skype Name: talk2-4footyfans
  • VirtueMart Version: Live: 3.4.2
Re: Your SERVER does not support allow_url_fopen, nor cUrl!
« Reply #2 on: September 27, 2020, 16:38:09 pm »
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

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1464
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Your SERVER does not support allow_url_fopen, nor cUrl!
« Reply #3 on: September 27, 2020, 20:52:50 pm »
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10452
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Your SERVER does not support allow_url_fopen, nor cUrl!
« Reply #4 on: September 28, 2020, 10:25:17 am »
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 http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

EsSa55

  • Jr. Member
  • **
  • Posts: 93
    • 4FootyFans & 4MovieTVmusicFans
  • Skype Name: talk2-4footyfans
  • VirtueMart Version: Live: 3.4.2
Re: Your SERVER does not support allow_url_fopen, nor cUrl!
« Reply #5 on: September 28, 2020, 11:01:33 am »
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10452
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Your SERVER does not support allow_url_fopen, nor cUrl!
« Reply #6 on: September 28, 2020, 11:30:52 am »
No I haven't.. the check is fairly basic...

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

Code: [Select]
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 http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

EsSa55

  • Jr. Member
  • **
  • Posts: 93
    • 4FootyFans & 4MovieTVmusicFans
  • Skype Name: talk2-4footyfans
  • VirtueMart Version: Live: 3.4.2
Re: Your SERVER does not support allow_url_fopen, nor cUrl!
« Reply #7 on: September 28, 2020, 12:15:08 pm »
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