Home-Template with PHP8: Date Problem

  • natt
    Active member
  • Topic Author
  • New Member
  • New Member
More
1 year 1 month ago #50247 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())) : ?>

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
1 year 1 month ago #50248 by milos
Hello,

Please try replacing the file /templates/homes/html/com_content/category/blog_item.php with the attached file (unzip it first).

Regards,
Milos
 

File Attachment:

File Name: blog_item.zip
File Size:2 KB
The following user(s) said Thank You: natt

Please Log in to join the conversation.

Time to create page: 0.377 seconds
Powered by Kunena Forum