VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: hazael on October 11, 2023, 11:10:55 AM

Title: Joomla 5
Post by: hazael on October 11, 2023, 11:10:55 AM
Joomla 5 will be officially released by the end of October 2023. Will Virtuemart be compatible with this version of Joomla?
Has anyone already tested this connection?
Title: Re: Joomla 5
Post by: StefanSTS on October 11, 2023, 12:40:09 PM
Yes

Stefan
Title: Re: Joomla 5
Post by: MKI-Miro on October 22, 2023, 11:59:47 AM
Can we update to Joomla 5?
Title: Re: Joomla 5
Post by: jenkinhill on October 22, 2023, 20:28:54 PM
There's no reason why you can't try it on a test site. Seems a lot of people are having problems due to the database requirements, though. https://forum.joomla.org/viewtopic.php?f=837&t=1004758

J4 is to be supported for another 2 years (at least) and J3 has independent support for another 2 years or so, so there is no pressure to update yet.
Title: Re: Joomla 5
Post by: hazael on October 24, 2023, 22:24:22 PM
Joomla 5 works a little faster than Joomla 4
After migrating to Joomla 5, practically everything works for me except Virtuemart...

I don't know what the problem is yet
After a theoretically successful installation, each attempt to enter the Virtuemart panel reports an error:
You must specify a non-empty path to clean

Title: Re: Joomla 5
Post by: razor7 on November 01, 2023, 15:42:10 PM
Quote from: jenkinhill on October 22, 2023, 20:28:54 PM
There's no reason why you can't try it on a test site. Seems a lot of people are having problems due to the database requirements, though. https://forum.joomla.org/viewtopic.php?f=837&t=1004758

J4 is to be supported for another 2 years (at least) and J3 has independent support for another 2 years or so, so there is no pressure to update yet.

Hi! can you point me to J3 independent support website or something?

Thanks a lot!
Title: Re: Joomla 5
Post by: jenkinhill on November 02, 2023, 11:48:55 AM
See https://magazine.joomla.org/all-issues/july-2023/extended-security-support-for-joomla-3x
Title: Re: Joomla 5
Post by: Elboy on November 07, 2023, 10:04:31 AM
Virtuemart latest version doesn't seem to work with Joomla 4.4. Errors all over the place. So how can you say it will work with Joomla 5?
Title: Re: Joomla 5
Post by: GJC Web Design on November 07, 2023, 12:12:18 PM
@Elboy : Have u reported these errors with full debugging info, example pages and links, screenshots etc?
Title: Re: Joomla 5
Post by: Jumbo! on November 07, 2023, 16:56:35 PM
Quote from: Elboy on November 07, 2023, 10:04:31 AM
Virtuemart latest version doesn't seem to work with Joomla 4.4. Errors all over the place. So how can you say it will work with Joomla 5?

Strange. We do not see any such errors on any of our sites. Why don't you share the errors?
Title: Re: Joomla 5
Post by: Elboy on November 08, 2023, 00:41:36 AM
Ok here are some of the errors I am receiving.

Localhost, fresh install of J4.4. Using casseopia theme, PHP Version 8.1.12
Debug on, error reporting maximum

Menu > new > VM > Product details layout

Warning: Undefined variable $catHash in C:\xampp81\htdocs\joomla4\administrator\components\com_virtuemart\fields\product.php on line 48
Warning: Undefined variable $catHash in C:\xampp81\htdocs\joomla4\administrator\components\com_virtuemart\fields\product.php on line 67
Warning: Undefined variable $catHash in C:\xampp81\htdocs\joomla4\administrator\components\com_virtuemart\fields\product.php on line 69
Warning: Undefined variable $catHash in C:\xampp81\htdocs\joomla4\administrator\components\com_virtuemart\fields\product.php on line 70
Warning: Undefined variable $catHash in C:\xampp81\htdocs\joomla4\administrator\components\com_virtuemart\fields\product.php on line 75

Load product in front end
Under reviews section

Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in C:\xampp81\htdocs\joomla4\components\com_virtuemart\sublayouts\snippets.php on line 43
Title: Re: Joomla 5
Post by: Elboy on November 08, 2023, 01:03:20 AM
Also getting this error on checkout on Server testing
Server has 768mb ram in php.ini for this site, which should be plenty

Error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 635441152 bytes)
Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 635441152 bytes) in ........./public_html/administrator/components/com_virtuemart/helpers/vmecho.php on line 81
Title: Re: Joomla 5
Post by: GJC Web Design on November 08, 2023, 11:56:56 AM
It will be the debug running you out of memory -- very common..

disable some/all options in the Joomla debug plugin like queries etc so it will then just provide traces without trying to display 300 queries

try
$catHash = '';

at the start of the _getProducts() in that file

My latest: com_virtuemart.4.2.5.10924 -- line 43 of snippets doesn't refer to a datetime which is why you should always quote exactly what version you are using.

error reporting maximum is there for developers to develop code... obviously it is nice to have no warnings or deprec's but this certainly doesn't prevent the use of the software
Title: Re: Joomla 5
Post by: hazael on November 09, 2023, 11:17:05 AM
Quote from: GJC Web Design on November 08, 2023, 11:56:56 AM
My latest: com_virtuemart.4.2.5.10924

Tell me where you got version 4.2.5 - newer than 4.2.4
I have an active subscription, so I don't understand why I have an old version to download?
Is there some double standard here that I don't know about?
Title: Re: Joomla 5
Post by: ViPeS on November 09, 2023, 12:18:19 PM
The answer is here https://forum.virtuemart.net/index.php?topic=150651.msg538158
Title: Re: Joomla 5
Post by: hazael on November 09, 2023, 18:28:04 PM
Quote from: ViPeS on November 09, 2023, 12:18:19 PM
The answer is here
Now everything is clear. Thanks for the info :)