VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: ec83 on February 28, 2023, 11:45:46 AM

Title: 0 - Call to undefined method vmconnector::gethttp()
Post by: ec83 on February 28, 2023, 11:45:46 AM
Hello, i randomly get this error message.
"Call to undefined method vmconnector::gethttp()". See screenshot.

It's an error that was reported to me but I don't know when it occurs...

Does anyone know where this could be coming from? I can't find anything in the Virtuemart or Joomla log files

Best Regards
Title: Re: 0 - Call to undefined method vmconnector::gethttp()
Post by: jenkinhill on February 28, 2023, 11:55:41 AM
Joomla/VirtueMart/PHP versions?
Title: Re: 0 - Call to undefined method vmconnector::gethttp()
Post by: ec83 on February 28, 2023, 13:17:20 PM
Ho sorry !

VirtueMart Version Number 3.8.8 10472
Joomla Version Number 3.10.11
PHP 7.4.29

Thanks ;)
Title: Re: 0 - Call to undefined method vmconnector::gethttp()
Post by: ec83 on February 28, 2023, 14:12:12 PM
I think I found a clue...

If in the back office i modify the country of the customer's billing address on his customer file by modifying the Country field. For example, I put "Guadeloupe" or "La Réunion" instead of France, the error appears in the back office.

So I was able to activate the debug mode to analyze the error. The problem stems from the com_istraxx_geolocator component.

The former webmaster added certain French departments to the list of Countries and since "La Réunion" and "Guadeloupe" are not Countries but French departments, the com_istraxx_geolocator component generates an error.

The website only sells its products in France so it would be necessary to add the list of French departments -> https://forum.virtuemart.net/index.php?topic=74599.0
and set the Country field to France only...

If I update the vm_states table to insert the French departments paying attention to the state_id number (autoincrement) will it work?

Then I still have to publish only the French departments in the back office of Virtuemart in the Country section?

Thanks
Title: Re: 0 - Call to undefined method vmconnector::gethttp()
Post by: jenkinhill on February 28, 2023, 15:13:23 PM
If this is related to the iStraxx extension then support is by ticket - https://extensions.virtuemart.net/ticket

Nobody has reported this issue before in the forum so it could be specific to your setup. I have never used a geolocator component. Suggest you try your possible solution out on a backup copy of the site.
Title: Re: 0 - Call to undefined method vmconnector::gethttp()
Post by: ec83 on February 28, 2023, 18:29:36 PM
In the past I have used this ticket system without response.
The com_istraxx_geolocator component is already up to date on the site.

Therefore I applied my solution: publish the departments in a field separate from the Country field and I no longer have the error.

I limited the display of the country field to France ;)

Thanks
Title: Re: 0 - Call to undefined method vmconnector::gethttp()
Post by: Milbo on March 01, 2023, 18:59:24 PM
Hello ec83,
the new geolocator is adjusted for vm4 latest, which has the function in vmConnector. https://dev.virtuemart.net/projects/virtuemart/repository/entry/trunk/virtuemart/administrator/components/com_virtuemart/helpers/connection.php

Btw you can enter new states by vm itself, just click on "states" near the name of the country
Title: Re: 0 - Call to undefined method vmconnector::gethttp()
Post by: ec83 on March 02, 2023, 10:44:30 AM
Thanks a lot for the clarifications!