VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: MAD King on October 24, 2023, 19:41:24 PM

Title: Joomla\CMS\HTML\HTMLHelper Select not found
Post by: MAD King on October 24, 2023, 19:41:24 PM
Updated to Joomla 5 and get this error when trying to edit a product.

This is really urgent!

QuoteAn error has occurred.
500 Joomla\CMS\HTML\HTMLHelper Select not found.


VirtueMart 4.2.4 10922
Joomla 5.0
Title: Re: Joomla\CMS\HTML\HTMLHelper Select not found
Post by: hazael on October 24, 2023, 23:48:47 PM
you can temporarily remove it

in /libraries/src/HTML/HTMLHelper.php

in line 158 delete this entry:

// if (!$path) {
//   throw new \InvalidArgumentException(sprintf('%s %s not found.', $prefix, $file), 500);
// }


/libraries/vendor/joomla/filesystem/src/Path.php

in line 193
//   if (!\is_string($path)) {
//           throw new \InvalidArgumentException('You must specify a non-empty path to clean');
  //      }
Title: Re: Joomla\CMS\HTML\HTMLHelper Select not found
Post by: MAD King on October 24, 2023, 23:56:21 PM
Thanks. I restored it back to Joomla 4.4.0 and will wait a few months before updating to J5.
Title: Re: Joomla\CMS\HTML\HTMLHelper Select not found
Post by: hazael on October 25, 2023, 00:08:52 AM
I'm currently testing Joomla 5 - it's not a disaster. I think Milbo will quickly update this VM to the new Joomla.

Ro CSVI for Joomla 5 - will be ready in a week. Generally, all components work without any problems.
The missing languages (​​for joomla 5) can be easily installed from Joomla 4 - I don't see any difference ;-)
Title: Re: Joomla\CMS\HTML\HTMLHelper Select not found
Post by: MAD King on October 25, 2023, 00:24:57 AM
Quote from: hazael on October 25, 2023, 00:08:52 AM
I'm currently testing Joomla 5 - it's not a disaster. I think Milbo will quickly update this VM to the new Joomla.

Ro CSVI for Joomla 5 - will be ready in a week. Generally, all components work without any problems.
The missing languages (​​for joomla 5) can be easily installed from Joomla 4 - I don't see any difference ;-)

Yeah, I will wait.
Title: Re: Joomla\CMS\HTML\HTMLHelper Select not found
Post by: Milbo on October 25, 2023, 22:27:51 PM
The next release will not be tested against j5 by the release team. But after that.
Title: Re: Joomla\CMS\HTML\HTMLHelper Select not found
Post by: MAD King on October 25, 2023, 23:45:38 PM
Quote from: Milbo on October 25, 2023, 22:27:51 PM
The next release will not be tested against j5 by the release team. But after that.

Yeah, I will wait, as long as you can fix the related products not showing.
Title: Re: Joomla\CMS\HTML\HTMLHelper Select not found
Post by: Milbo on November 01, 2023, 20:03:14 PM
Btw all Select. must be select. So just lowercase
Title: Re: Joomla\CMS\HTML\HTMLHelper Select not found
Post by: bestcons on December 14, 2023, 16:51:42 PM
Thanks a lot for the quick fix. Easy piece of cake :-)
Title: Re: Joomla\CMS\HTML\HTMLHelper Select not found
Post by: masterfromf on February 20, 2024, 00:15:46 AM
It is help me, tnx
Title: Re: Joomla\CMS\HTML\HTMLHelper Select not found
Post by: Nilsy on February 20, 2024, 19:15:11 PM
Quote from: hazael on October 24, 2023, 23:48:47 PM
you can temporarily remove it

in /libraries/src/HTML/HTMLHelper.php

in line 158 delete this entry:

// if (!$path) {
//   throw new \InvalidArgumentException(sprintf('%s %s not found.', $prefix, $file), 500);
// }


/libraries/vendor/joomla/filesystem/src/Path.php

in line 193
//   if (!\is_string($path)) {
//           throw new \InvalidArgumentException('You must specify a non-empty path to clean');
  //      }


I was thinking the same!
But wasn't smart enough to get that Path file.
Thank you!
Title: Re: Joomla\CMS\HTML\HTMLHelper Select not found
Post by: balai on February 26, 2024, 18:45:21 PM
Never hack Joomla! core files.
You will be left with surprise if you see your site down, after an update.
Title: Re: Joomla\CMS\HTML\HTMLHelper Select not found
Post by: T.A. Garrison, LLC on March 05, 2024, 20:02:54 PM
It's been quite a while that there has not been the update to address "HTMLHelper.php"

Is there anywhere to download an update until there is an official release?
Title: Re: Joomla\CMS\HTML\HTMLHelper Select not found
Post by: T.A. Garrison, LLC on March 20, 2024, 01:58:56 AM
I've confirmed that the Quantity related price calculation from iStraxx IS the culprit!

When I disable that plugin everything works perfectly.

Of course with another development it could be a different plugin. But disabling plugins will tell you which one is causing the 500 error about the helper file.

It's been nearly 3 weeks with no response from my ticket about the issue and the site is completely on hold as a direct result.
With thousands of child products there is no way I can continue to develop the site until I know I do not need to return to each product to update something - or change to another method that will set me back months.

When is the release for Quantity related price calculation planned? I'm a paying member.
Title: Re: Joomla\CMS\HTML\HTMLHelper Select not found
Post by: Thomas Kampp on April 22, 2024, 11:40:01 AM
On the VirtueMart (VM) webpage is states: "VirtueMart 4.0.x is the latest stable version available. It is compatible with Joomla! 3.10.x and Joomla! 4.2.x. and Joomla! 5.0.x.". (http://virtuemart.net/download)

THUS THE CURRENT VM 4.2.4 SHOULD WORK WITH JOOMLA 5 - And yet it does not work with Joomla 5?
So this error "500 Joomla\CMS\HTML\HTMLHelper Select not found" must have been there for a long time apparently?

I am told that if you buy VM 4.2.6 is should work. But how can that be compared to the above quote?

Can it really be that one needs to buy VM for it to work on the active version of Joomla (thus making it payware)?
Title: Re: Joomla\CMS\HTML\HTMLHelper Select not found
Post by: fotonio on May 08, 2024, 18:23:38 PM
As Milbo wrote on November
QuoteBtw all Select. must be select. So just lowercase

So for VM 4.2.4 to work with Joomla 5.1 you have to replace using a text editor like Notepad++ 'Select.genericlist' with 'select.genericlist' in all files inside the virtuemart component files and vmadmin files.

No joomla core files need to be changed.
Title: Re: Joomla\CMS\HTML\HTMLHelper Select not found
Post by: Milbo on May 12, 2024, 21:37:53 PM
Yes, but you can just download the last vm installer per membership, or just use the svn and download the new template from there.
The svn folder/file structure is the same as on the installation. https://dev.virtuemart.net/projects/virtuemart/repository/virtuemart/show/trunk/virtuemart/administrator/templates/vmadmin
Title: Re: Joomla\CMS\HTML\HTMLHelper Select not found
Post by: AH on May 14, 2024, 16:47:17 PM
[Thomas Kampp link=msg=542389 date=1713778801]

QuoteI am told that if you buy VM 4.2.6 is should work. But how can that be compared to the above quote?

Can it really be that one needs to buy VM for it to work on the active version of Joomla (thus making it payware)?


It is clearly not payware. You pay for an early release package version to simplify the update of your VM code to the latest tested/stable codebase.

You can always choose not to help the project and subscribe, however the code is not hidden from you, it is all avaliable from the dev site for you to manage and maintain your own updates.

Sometimes errors are found after release - when they are fixed you can get the code from the dev site.

https://dev.virtuemart.net/projects/virtuemart/repository
Title: Re: Joomla\CMS\HTML\HTMLHelper Select not found
Post by: Milbo on May 16, 2024, 23:25:12 PM
Quote from: T.A. Garrison, LLC on March 20, 2024, 01:58:56 AMI've confirmed that the Quantity related price calculation from iStraxx IS the culprit!

Just for the chronic, that got fixed just a week later.
Title: Re: Joomla\CMS\HTML\HTMLHelper Select not found
Post by: T.A. Garrison, LLC on May 24, 2024, 00:11:35 AM
Thank you, Milbo. I did install the update last week and "that" part seems to be working fine. It's the error in the shopping cart (due to the type of captcha) that is a thorn in my side.
I decided I'd just put a message in the cart to log in before doing anything, or the user will get errors.
The problem with that is, no guest checkout.