Solved Templates

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

Asked by Dennis Vercauteren 3 years ago Last activity 3 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

Accepted answer

Marked as the solution
Dennis Vercauteren Asked this

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 ...

1 more reply

Mehtaz Afsana Borsha Staff

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.

Log in to reply.