• Resolved rokaklih

    (@rokaklih)


    Hello!

    The problem we’re facing with is that the error_log file is too big (20-30MB in one day), because of many PHP warnings that are created by your plugin.

    Erorrs occur when a user visits a page and then when the max mega menu script is called the PHP warnings are fired like 50 times in the same moment. But we’ve noticed that there are 5 unique errors that are repeated in the same moment.

    Here is the list of errors that we are seeing:

    1. 26-Feb-2024 10:49:20 UTC] PHP Warning: Attempt to read property “theme_location” on array in /home/public_html/wp-content/plugins/megamenu/megamenu.php on line 448
    2. [26-Feb-2024 10:49:20 UTC] PHP Warning: Attempt to read property “before” on array in /home/public_html/wp-content/plugins/megamenu/classes/walker.class.php on line 180
    3. [26-Feb-2024 10:49:20 UTC] PHP Warning: Attempt to read property “link_before” on array in /home/public_html/wp-content/plugins/megamenu/classes/walker.class.php on line 194
    4. [26-Feb-2024 10:49:20 UTC] PHP Warning: Attempt to read property “link_after” on array in /home/public_html/wp-content/plugins/megamenu/classes/walker.class.php on line 194
    5. [26-Feb-2024 10:49:20 UTC] PHP Warning: Attempt to read property “after” on array in /home/public_html/wp-content/plugins/megamenu/classes/walker.class.php on line 238

    Looking forward for your answer!

    Best regards!

    Rok!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author megamenu

    (@megamenu)

    Hi,

    Something is not right there, which theme are you using please?

    Regards,
    Tom

    Thread Starter rokaklih

    (@rokaklih)

    Hello,

    we’re using Savoy theme (https://docs.nordicmade.com/savoy/).

    Everything is up to date: WP, theme and plugins.

    Best regards!

    Rok!

    Plugin Author megamenu

    (@megamenu)

    Thanks. I see that is a premium theme, so I am sorry but I cannot debug it here. The warnings you are seeing are a symptom that something is not correct in your theme, and given it is a premium theme you would need to ask your theme authors to investigate. To test, I think you could choose any other WordPress theme and you shouldn’t see these warnings.

    Regards,
    Tom

    Thread Starter rokaklih

    (@rokaklih)

    Hi,

    Thanks for your reply and I will get in contact with them.

    Best regards,

    Rok.

    Thread Starter rokaklih

    (@rokaklih)

    Hello!

    One more question, why do you think that it’s related to the theme?

    Do you have any reasons, so I can send them to the support team.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP warnings making error_log file too big’ is closed to new replies.