Hi, I just downloaded and installed JA Essence on a blank Joomla 4.3 installation.
If I enter the T4 and enter whatever submenu like "layout setting" and click into one of the lines, I receive following error on the top of the preview.

    teddy-knight Hi

    The error may due to the compatibility issue with PHP 8, you can share the URL + super admin account of your site so I can check and fix for you.

    Hi Saguaros,

    thanks for your support.
    Sharing info as requested.

    please note that I recently use PHP8.1 (8.2 would be available by webhoster)

    Please als check below URL (which is using Blockk template) that shows as well error (one basically blank installation) but here error is even shown on Frontend.

    https://www.harmannstein.at/TEST/das-original
    Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in /home/.sites/378/site1580/web/TEST/templates/ja_blockk/html/com_content/category/blog_item.php on line 30

    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!

    Write a Reply...
    You need to Login to view replies.