• Resolved sallymoos

    (@sallymoos)


    Hi,

    My site’s error_log file is growing by 100,000 lines per day (20MB each day) with the same 5 errors, shown below.

    (I only noticed when the site ran out of disk space and the error log was over 4G !)

    ===========

    [25-Oct-2024 16:59:12 UTC] PHP Warning: Attempt to read property “state_province” on null in /home/xxxxxxxx/public_html/wordpress/wp-content/plugins/the-events-calendar/src/views/v2/list/event/venue.php on line 27
    [25-Oct-2024 16:59:12 UTC] PHP Warning: Attempt to read property “state” on null in /home/xxxxxxxx/public_html/wordpress/wp-content/plugins/the-events-calendar/src/views/v2/list/event/venue.php on line 27
    [25-Oct-2024 16:59:12 UTC] PHP Warning: Attempt to read property “province” on null in /home/xxxxxxxx/public_html/wordpress/wp-content/plugins/the-events-calendar/src/views/v2/list/event/venue.php on line 27
    [25-Oct-2024 16:59:12 UTC] PHP Warning: Attempt to read property “address” on null in /home/xxxxxxxx/public_html/wordpress/wp-content/plugins/the-events-calendar/src/views/v2/list/event/venue.php on line 28
    [25-Oct-2024 16:59:12 UTC] PHP Warning: Attempt to read property “address” on null in /home/xxxxxxxx/public_html/wordpress/wp-content/plugins/the-events-calendar/src/views/v2/list/event/venue.php on line 28
    [25-Oct-2024 16:59:12 UTC] PHP Warning: Attempt to read property “post_title” on null in /home/xxxxxxxx/public_html/wordpress/wp-content/plugins/the-events-calendar/src/views/v2/list/event/venue.php on line 32

    ==

    I’m running the latest WP and plugin versions.

    Can you advise what the problem would be?

    Thanks,

    Sal.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support tristan083

    (@tristan083)

    Hi @sallymoos ,

    Thank you for reaching out.

    I would like to note here that these warnings are not a cause for concern, as these does not stop program execution.

    These warnings are normally due to missing data, especially the venue and/or venue fields.

    I recommend checking if you have events that are not associated with a venue, as that would cause the Attempt to read property "post_title" warning. I would also recommend checking each of your venues (in Events -> Venues), and see if your all your venues are populated with an address, state, and province, as these would trigger the warnings below.

    • Attempt to read property "address"
    • Attempt to read property "state"
    • Attempt to read property "province"
    Thread Starter sallymoos

    (@sallymoos)

    Thanks, I will check and make the changes suggested and monitor the logs.

    Plugin Support tristan083

    (@tristan083)

    You’re welcome, @sallymoos .

    Since these logs are more of informational (especially to developers), I would recommend suppressing deprecation and warning messages from your PHP logging configuration on your production environment instead, see PHP: Stop Notice and Variable Warnings in Error Log Files. Your WebHost should be able to configure this for you.

    Thread Starter sallymoos

    (@sallymoos)

    Thanks for the heads-up. I will look into this too. ??

    Thread Starter sallymoos

    (@sallymoos)

    Update: I associated all events with a venue, and ensured all venues are populated with an address, state, and province, and there are no more errors. Thanks for your help. ??

    Plugin Support tristan083

    (@tristan083)

    I’m glad to hear that, @sallymoos !

    I’d be closing this thread now, but please do not hesitate to bump a new thread on our way if you have further questions/concerns. This is for us to track down topics/issues efficiently and for us to follow the WordPress Forum Guidelines.

    If you have some time to review, that would be amazing!
    https://www.ads-software.com/support/plugin/the-events-calendar/reviews/

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.