I have JA Athena installed in a brand new Joomla 5 server. I asked for help removing the introductory image for articles in this post: https://www.joomlart.com/forums/d/49478-want-to-remove-empty-alt-from-above-articles-on-blog-pages

Now I'm getting the following errors repeatedly in my Apache log:

PHP Warning: Undefined property: stdClass::$image_intro_alt in /opt/bitnami/apache/htdocs/[domain].com/templates/ja_athena/html/layouts/joomla/content/image/intro.php on line 40;
PHP message: PHP Warning: Undefined property: stdClass::$image_intro_alt in /opt/bitnami/apache/htdocs/[domain].com/templates/ja_athena/html/layouts/joomla/content/image/intro.php on line 55;
PHP message: PHP Warning: Undefined property: stdClass::$image_intro_caption in /opt/bitnami/apache/htdocs/[domain].com/templates/ja_athena/html/layouts/joomla/content/image/intro.php on line 58;
PHP message: PHP Warning: Undefined property: stdClass::$image_intro_caption in /opt/bitnami/apache/htdocs/[domain].com/templates/ja_athena/html/layouts/joomla/content/image/intro.php on line 59;

The pages still load, but I think because of these errors, the pages load slowly. Can you advise how to correct these errors?

    Hi, Toolie
    With the warning messages, it doesn't make page load slowly. Let me check and get back to you shortly.
    Regards,

    a month later

    It's been over a month with no solution from you, and my error logs continue to be filled with messages about the change we made here:

    https://www.joomlart.com/forums/d/49478-want-to-remove-empty-alt-from-above-articles-on-blog-pages

    Here are examples of the errors. These 4 lines repeat OVER and OVER and OVER again, non-stop:

    [Sat Sep 14 20:24:34.499929 2024] [proxy_fcgi:error] [pid 57024:tid 140688960218816] 
    [client 40.77.167.30:6130] AH01071: Got error '
    PHP message: PHP Warning:  Undefined property: stdClass::$image_intro_alt in /[path]/[domain]/templates/ja_athena/html/layouts/joomla/content/image/intro.php on **line 40**; 
    PHP message: PHP Warning:  Undefined property: stdClass::$image_intro_alt in /[path]/[domain]/templates/ja_athena/html/layouts/joomla/content/image/intro.php on **line 55**; 
    PHP message: PHP Warning:  Undefined property: stdClass::$image_intro_caption in /[path]/[domain]/templates/ja_athena/html/layouts/joomla/content/image/intro.php on **line 58**; 
    PHP message: PHP Warning:  Undefined property: stdClass::$image_intro_caption in /[path]/[domain]/templates/ja_athena/html/layouts/joomla/content/image/intro.php on **line 59**; 

    And this block:

    [Sat Sep 14 20:24:41.888354 2024] [proxy_fcgi:error] [pid 57024:tid 140688742008512] [client 69.171.249.22:63958] AH01071: Got error 'PHP message: PHP Warning:  Attempt to read property "image_intro" on null in /[path]/[domain]//templates/ja_athena/html/com_content/article/default.php on line 37; 
    PHP message: PHP Warning:  Attempt to read property "image_fulltext" on null in /[path]/[domain]/templates/ja_athena/html/com_content/article/default.php on line 37; 
    PHP message: PHP Warning:  Attempt to read property "image_fulltext" on null in /[path]/[domain]//templates/ja_athena/html/com_content/article/default.php on line 45'

    I think these errors ARE causing High CPU issues on my server and costing us website visitors. Am I going to have to switch templates to fix this??

    Please advise!

      Toolie Hi

      As I can't replicate this issue at my side so pls try with these updated file.

      alt.zip
      5kB

      Unzip the file and copy to following paths:

      /templates/ja_athena/html/layouts/joomla/content/image/intro.php
      /templates/ja_athena/html/com_content/article/default.php

      10 days later

      Hi there Saguaros, thank you for the extra effort on these two files. The image/intro.php seems to work, stopping the error message:

      AH01071: Got error 'PHP message: PHP Warning: Attempt to read property "item_id" on null in /templates/ja_athena/html/com_content/article/default.php on line 59'

      However, the changes to the /com_content/article/default.php yields this error:

      AH01071: Got error 'PHP message: PHP Warning: Attempt to read property "item_id" on null in /templates/ja_athena/html/com_content/article/default.php on line 64', referer: https://www.remotescrumstudy.com/faq

      Does this help you track down the error in the default.php file?

        Toolie These are just warnings due to the new PHP version used on your site, these warnings will not affect functions on your site. You can hide them by setting Error Reporting to None in Global Configuration.

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