DateTime::__construct(): Failed To Parse Time String (/) At Position 0 (/): Unexpected Character - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

DateTime::__construct(): Failed To Parse Time String (/) At Position 0 (/): Unexpected Character

Dennis Vercauteren

Dennis Vercauteren

Template 2 years ago

When I want to modify my template helixultimate, I get the following error code in the backend of the website:

DateTime::__construct(): Failed to parse time string (/) at position 0 (/): Unexpected character

When I set the error reporting to maximum I get following error code:

0 DateTime::__construct(): Failed to parse time string (/) at position 0 (/): Unexpected character
/home/nvanpoucke/domains/kimmyswebshop.be/public_html/libraries/src/Date/Date.php:112

On line 112 of date.php it says the following:

parent::__construct($date, $tz);

How should I solve this? I already reinstalled the template, but that didn't help.

Joomla 3.10.11 helixultimate 2.0.12

0
2 Answers
Dennis Vercauteren
Dennis Vercauteren
Accepted Answer
2 years ago #109661

ok, solved by code

parent::__construct($date, $tz);

replace with

parent::__construct();

Not sure if this is a template problem? And whether this change in code also has consequences for other parts of the site ...

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 2 years ago #109665

Hi

Thanks for contacting us, glad to know that you have fixed the issue. And thanks for sharing the solution. You can now close this post by accepting the answer.

-Regards.

0