- Thank you received: 0
Home-Template with PHP8: Date Problem
-
natt
Active member - Topic Author
- New Member
Less
More
1 year 1 month ago #50247
by natt
Home-Template with PHP8: Date Problem was created by natt
Hello,
I recently purchased the template and now found that there is a problem. This line in the blog_item.php file is responsible for this.
How can I fix these?
Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated
|| ((strtotime($this->item->publish_down) < strtotime(JFactory::getDate())) && $this->item->publish_down != JFactory::getDbo()->getNullDate())) : ?>
I recently purchased the template and now found that there is a problem. This line in the blog_item.php file is responsible for this.
How can I fix these?
Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated
|| ((strtotime($this->item->publish_down) < strtotime(JFactory::getDate())) && $this->item->publish_down != JFactory::getDbo()->getNullDate())) : ?>
Please Log in to join the conversation.
-
milos
Support Staff - Moderator
Less
More
- Thank you received: 703
1 year 1 month ago #50248
by milos
Replied by milos on topic Home-Template with PHP8: Date Problem
Hello,
Please try replacing the file /templates/homes/html/com_content/category/blog_item.php with the attached file (unzip it first).
Regards,
Milos
Please try replacing the file /templates/homes/html/com_content/category/blog_item.php with the attached file (unzip it first).
Regards,
Milos
The following user(s) said Thank You: natt
Please Log in to join the conversation.
Time to create page: 0.377 seconds