VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: thefbi on August 08, 2019, 06:59:04 AM

Title: Error when update any joomla extension
Post by: thefbi on August 08, 2019, 06:59:04 AM
Hello,
i can't perform any auto update extension in my Joomla admin panel. When i try to update, i have the error :

Notice: Undefined offset: 0 in /home/clients/xxxxxxxxxxxxx/web_xxxxxxxxxx/administrator/components/com_virtuemart/plugins/vmplugin.php on line 131
Error: Call to a member function load() on null: Call to a member function load() on null

And have a blank page.
Somebody have an idea ?

Joomla 3.9.10
VM 3.4.5 10045

I know that this VM version is not the latest stable, but have upgrade directly from the auto update system (and so I didn't know it wasn't the stable version) since months.
Is there a way to downgrade from the latest stable version ?

Regards


Title: Re: Error when update any joomla extension
Post by: StefanSTS on August 08, 2019, 11:18:31 AM
Have you tried to copy the file/s manually via FTP?

I doubt there was an autoupdate to 3.4.5.10045. Who would have put that information on the update server?
Title: Re: Error when update any joomla extension
Post by: thefbi on August 08, 2019, 11:47:33 AM
If i upgrade manually, it is ok.
And for the auto update, that was for 3.4.3

I have allways perform my update by this way.
Title: Re: Error when update any joomla extension
Post by: thefbi on August 28, 2019, 15:18:37 PM
Hello, i have upgrade to VM 3.6 just now, and i still have this issue, on another site too.

I cant automatically upgrade extension because Virtuemart bug...

Thanks for help :)
Title: Re: Error when update any joomla extension
Post by: GJC Web Design on August 28, 2019, 17:52:23 PM
QuoteI cant automatically upgrade extension because Virtuemart bug...

what EXACTLY happens?  step by step
Title: Re: Error when update any joomla extension
Post by: thefbi on August 28, 2019, 18:08:42 PM
I go in the admin panel, at the extensions => upgrade (i am not sure in english, i am in french).
I choose the extension to update, and when i click on Update, i have a blank page.
Now i only have the error "Error: Call to a member function load() on null: Call to a member function load() on null".

So i dont sure that VM. I have put the error to Development to show this message.
But before upgrade to VM 3.6, all worked fine.
Title: Re: Error when update any joomla extension
Post by: GJC Web Design on August 28, 2019, 19:19:58 PM
Ok .. so u need to find where the 500 error comes from by the normal methods

http://forum.virtuemart.net/index.php?topic=117042.0

http://forum.virtuemart.net/index.php?topic=121692.0
Title: Re: Error when update any joomla extension
Post by: thefbi on August 28, 2019, 19:58:53 PM
Thanks, but i have nothing in the server error log.
If activate the php developer mode in VM config, nothing change and i didnt see any other message when i try to update an extension...

I wil try to install in local mode to show if problem still here...
Title: Re: Error when update any joomla extension
Post by: thefbi on August 28, 2019, 20:01:16 PM
This problem is only in admin panel. All work in frontend.
And if i update the extension with manual way, it work.

I am now in PHP 7.2, Joomla 3.9.11 and VM 3.6.0.10113
Title: Re: Error when update any joomla extension
Post by: jjk on August 28, 2019, 22:29:06 PM
Did you try this already? Go to your 'tmp' folder in your root directory, search for any remaining (VirtueMart) folders and delete existing ones.
Title: Re: Error when update any joomla extension
Post by: fapi2 on October 25, 2019, 17:17:40 PM
I have the same error:  Call to a member function load() on null
in: home/xxxxxxxxxx/domains/xxxxxxxxx/public_html/administrator/components/com_virtuemart/plugins/vmplugin.php:131
:'(
Title: Re: Error when update any joomla extension
Post by: thefbi on October 26, 2019, 08:03:27 AM
I still haven't found a solution to this problem.... But I don't have it on the other sites. So it's certainly a conflict with another plugin or component, but I don't know which one...
Title: Re: Error when update any joomla extension
Post by: fapi2 on October 30, 2019, 16:29:32 PM
Hi TheFBI, see the attached video: do you also find the error in the same way? Tks
Title: Re: Error when update any joomla extension
Post by: thefbi on October 30, 2019, 16:32:21 PM
Hi, yes, exactly.
I will put my site in a test server and try to find with desactivate the extensions if i find something.
I have another site with VM and i dont have this problem.

I post here if i find something.
Title: Re: Error when update any joomla extension
Post by: thefbi on October 30, 2019, 20:03:55 PM
Hello, i searching... actually i have uninstalled all component, but error still here.
If i turn the debug mode to Maximal, i have this error message :

Notice: Undefined offset: 0 in /home/clients/XXXXXXXXXXX/dev_boutique/administrator/components/com_virtuemart/plugins/vmplugin.php on line 131
Error: Call to a member function load() on null: Call to a member function load() on null

If i go in the file vmplugin.php on line 131, i have : vmLanguage::$languages[$tag]->load($fname, $epath, 'en-GB', true, false);

But i dont know more...
Title: Re: Error when update any joomla extension
Post by: thefbi on October 30, 2019, 20:20:56 PM
What i dont understand is why when i will update another component not of VM, i have an error from VM ?!
Title: Re: Error when update any joomla extension
Post by: StefanSTS on October 30, 2019, 20:31:12 PM
If the other extension is loading VmConfig or triggering some VM event, everything is possible.

For that you should say which extensions you use. Anything which makes calculation rules?

Title: Re: Error when update any joomla extension
Post by: thefbi on October 30, 2019, 20:33:29 PM
Actually, the 2 extensions i have to update is VP One page checkout and Acymailing.
I have the error with both. I dont thing Acymailing have something to do with VM...
Title: Re: Error when update any joomla extension
Post by: StefanSTS on October 30, 2019, 21:23:08 PM
Did you try to update manually via Joomla extension manager, core and aio?
Title: Re: Error when update any joomla extension
Post by: fapi2 on October 31, 2019, 07:24:36 AM
Hi thefbi, Tks for your replay.
I also have a test site, on which I did several tests, especially by changing the default language and the php version, with the downgrade up to 5, but without getting any results.
With Firefox's FireBug, looking at the error line, I find this message:

Request URL: https: //www.xxxxxxx.xxx/administrator/index.php? Option = com_installer & view = update
Request method: POST
Remote address: xxx.xxx.147.39: 443
Status code: 500
Version: HTTP / 2.0
Referrer Policy: no-referrer-when-downgrade

I think this 500 error is the cause, I keep doing tests, we keep up to date  ;)
Title: Re: Error when update any joomla extension
Post by: thefbi on October 31, 2019, 07:56:25 AM
Quote from: StefanSTS on October 30, 2019, 21:23:08 PM
Did you try to update manually via Joomla extension manager, core and aio?
Hello, yes with manual update it work. It is only with automatic i have the problem.
I have talking to Milbo yesterday. We will find a solution for this problem.
Title: Re: Error when update any joomla extension
Post by: fapi2 on November 01, 2019, 09:31:03 AM
Hi all, i think I have found the Solution. In Plugins, find and disable Realex_hpp_api (Type vmuserfield). Then, all automatic update work correctly. I can't explain why, I used the "bruteforce" method by disabling the different plugins one at a time. I'd like to know if the solution is valid for the others, and why. Thanks !!
Title: Re: Error when update any joomla extension
Post by: thefbi on November 01, 2019, 10:12:03 AM
Hello,
Milbo as resloved the problem. Pehaps it is ok in the release right now. I dont have tested yet.
Title: Re: Error when update any joomla extension
Post by: StefanSTS on November 01, 2019, 11:34:01 AM
I tested the automatic update just now, and it worked for me.
It should work from now on again like expected.

It might not have been working earlier today. Please empty your caches too.

Stefan
Title: Re: Error when update any joomla extension
Post by: thefbi on November 01, 2019, 20:01:00 PM
I confirm that all work fine now. Thanks :)
Title: Re: Error when update any joomla extension
Post by: fapi2 on November 02, 2019, 10:48:38 AM
I correct myself: after having disabled the Plugin Realex_hpp_api (type vmuserfileld), just go to the "extension list" and clean the cache of all the extensions. I confirm that after this operation the Plugin can be re-enabled and the extensions can be updated automatically. The error "Call to a member function load () on null" no longer appears and the update operation is regularly performed. Finally I see that on this day when the dead are commemorated, this error also died, and we can commemorate it !!!  ;D ;D