Warning On Productpage After Upgrade Joomla 3.12 To 4/5 - Question | JoomShaper
🎃 Halloween Sale is Live! Get 35% OFF on all plans. Sale ends soon! Get Offer

Warning On Productpage After Upgrade Joomla 3.12 To 4/5

G

Gijs

Template 6 months 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

0
3 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 6 months ago #190927

Congratulation.

Please mark topic as solved.

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 6 months ago #190656

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.

0
G
Gijs
Accepted Answer
6 months ago #190926

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

0