Hi teddy-knight,
You can open the /templates/ja_blockk/html/com_content/category/blog_item.php file and find the line 30,
the replace this code:
<?php if (J3J4::checkUnpublishedContent($this->item) || strtotime($this->item->publish_up) > strtotime(Factory::getDate())
|| ((strtotime($this->item->publish_down) < strtotime(JFactory::getDate())) && $this->item->publish_down != Factory::getDbo()->getNullDate())) : ?>
<div class="system-unpublished">
<?php endif; ?>
With this code:
<?php
if (
J3J4::checkUnpublishedContent($this->item) ||
($this->item->publish_up !== null && new DateTime($this->item->publish_up) > new DateTime(Factory::getDate())) ||
(
$this->item->publish_down !== null &&
new DateTime($this->item->publish_down) < new DateTime(JFactory::getDate()) &&
$this->item->publish_down != Factory::getDbo()->getNullDate()
)
) :
?>
<div class="system-unpublished">
<?php endif; ?>
And in line 96, replace this code:
<?php if (J3J4::checkUnpublishedContent($this->item) || strtotime($this->item->publish_up) > strtotime(Factory::getDate())
|| ((strtotime($this->item->publish_down) < strtotime(Factory::getDate())) && $this->item->publish_down != Factory::getDbo()->getNullDate())) : ?>
</div>
<?php endif; ?>
With this code:
<?php
if (
J3J4::checkUnpublishedContent($this->item) ||
($this->item->publish_up !== null && new DateTime($this->item->publish_up) > new DateTime(Factory::getDate())) ||
(
$this->item->publish_down !== null &&
new DateTime($this->item->publish_down) < new DateTime(Factory::getDate()) &&
$this->item->publish_down != Factory::getDbo()->getNullDate()
)
) :
?>
</div>
<?php endif; ?>
About the Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /home/.sites/378/site1580/web/TEST/plugins/system/t4/src/t4/Document/Preview.php on line 102,
You can open Preview.php file, on line 102:
Replace this code:
$this->addBodyClass($group . '-' . str_replace(' ', '-', strtolower($profile)));
With this code:
$profileLowerCase = $profile !== null ? strtolower($profile) : '';
$this->addBodyClass($group . '-' . str_replace(' ', '-', $profileLowerCase));
Note: Go to Backend > Sytems > Clear cache and click the delete everything button to see the change.
If you still face this issue, you can send me the FTP account, and our technical team will help you resolve it.
Hope this helps!