Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 12d 19h 44m 01s
Claim 50% off
Solved Templates

Warning on productpage after upgrade joomla 3.12 to 4/5

Asked by Gijs 1 year ago Last activity 1 year ago

After migration to joomla 4/5 from 3.12 get this line on productpages;

Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in
/templates/shaper_helixultimate/html/com_virtuemart/sublayouts/snippets.php on line 30

VirtueMart 4.4.4 11101
Joomla 5
Helix ultimate 2.1.2

Accepted answer

Marked as the solution
Paul Frankowski Senior Staff

Congratulation.

Please mark topic as solved.

2 more replies

Paul Frankowski Senior Staff
1 year ago · edited

Hi Gijs,

Probably the previous webmaster (or you did in the past) added that overridden, we didn't do that, and VM is not our component.


Tip! Compare that old file code (you know the line) with new/current file from virtuemart component folder. Maybe only small php code update is needed.


Sorry, but here my help ends. Support Policy.

Gijs Asked this
1 year ago · edited

Hi Paul,

I found a solution.

Downloaded snippets.php from
/components/com_virtuemart/sublayouts

Edited this file with the Yotpo reviews code from the (old) snippets.php
Uploaded to /templates/shaper_helixultimate/html/com_virtuemart/sublayouts/

Warning has gone, reviews are back.

SOLVED

Log in to reply.