• Resolved rodeboy

    (@rodeboy)


    I am getting a warning message as below when loading the page. To remove the warning I go into the first venue (Victoria) change nothing but click UPDATE, and the page loads fine without the message. What’s happening please?

    Warning: Attempt to read property “state_province” on int in /home/vaseylee/domains/leevasey.co.uk/public_html/wp-content/plugins/the-events-calendar/src/views/v2/list/event/venue.php on line 27

    Warning: Attempt to read property “state” on int in /home/vaseylee/domains/leevasey.co.uk/public_html/wp-content/plugins/the-events-calendar/src/views/v2/list/event/venue.php on line 27

    Warning: Attempt to read property “province” on int in /home/vaseylee/domains/leevasey.co.uk/public_html/wp-content/plugins/the-events-calendar/src/views/v2/list/event/venue.php on line 27

    Warning: Attempt to read property “address” on int in /home/vaseylee/domains/leevasey.co.uk/public_html/wp-content/plugins/the-events-calendar/src/views/v2/list/event/venue.php on line 28

    Warning: Attempt to read property “address” on int in /home/vaseylee/domains/leevasey.co.uk/public_html/wp-content/plugins/the-events-calendar/src/views/v2/list/event/venue.php on line 28

    Warning: Attempt to read property “post_title” on int in /home/vaseylee/domains/leevasey.co.uk/public_html/wp-content/plugins/the-events-calendar/src/views/v2/list/event/venue.php on line 32

    The page I need help with: [log in to see the link]

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

    (@tristan083)

    Hi @rodeboy ,

    Thank you for reaching out.

    Warning messages aren’t fatal and will not break your website. They simply “warns” the system that the plugin encountered an abnormal scenario specifically on the event’s venue information (province, city, state etc.). You can hide these by following the guidance from this article and suppress these types of messages from being stored in your log file. But what I could recommend here is to check each of your events’ venues and see if there are entries that are missing this information.

    Thread Starter rodeboy

    (@rodeboy)

    Thanks for your very quick response. I have been through each of the venues, checked and updated them. Hopefully it has cleared the issue by doing this.

    Plugin Support tristan083

    (@tristan083)

    Hi @rodeboy ,

    Thank you for your message and the update.

    Please feel free to reach out if you have further questions/concerns.

    Thread Starter rodeboy

    (@rodeboy)

    Unfortunately it is still displaying the warning message to site visitors, which is unprofessional looking I am sure you will agree.

    All venues are fully coded.

    Plugin Support tristan083

    (@tristan083)

    Hi @rodeboy ,

    Thank you for your message, and I’m sorry to hear of the continued difficulties.

    Since these are warning notices and not fatal errors, I recommend suppressing the display of these on the front end, instead. This article can provide some guide on how to suppress the notices.

    Thread Starter rodeboy

    (@rodeboy)

    I already had WP_DEBUG set to false as stated on the link you sent.

    Again, to remove the warning notices I merely went onto the first VENUE that was showing this issue and clicked UPDATE, without changing anything. This removes the notices, only for them to reappear later.

    The warnings refer to lines 27 and 28. Can I respectfully suggest you check these lines in the plugin code? As stated in the article you link to these warnings are usually as a result of coding issues. For your information I am using PHP v8.3.

    I look forward to hearing further from you with interest. Thank you for your help and time so far.

    Plugin Support tristan083

    (@tristan083)

    Hi @rodeboy ,

    Thank you for your message and the information.

    It seems you may have your server configured to display warnings and notices, I recommend reaching out to your WebHost to have these suppressed and thrown into the logs only (not displayed).

    As for getting the code reviewed, we already have a bug report on this that our products team is aware of. The team prioritize bugs by taking into consideration the number of users impacted as well as how the bug impacts one’s ability to run an event/sell tickets. I don’t have a specific timeline as to when this issue will be resolved, but trust that our team is actively looking into the matter. Our team communicates updates and bug fixes in our newsletter and via our changelog.

    Internal Bug Ticket Reference: TECTRIA-785

    Thread Starter rodeboy

    (@rodeboy)

    Thank you Tristan. I have now managed to remove the warnings at the front end. It needed additional code as outlined in https://www.wpbeginner.com/wp-tutorials/how-to-turn-off-php-errors-in-wordpress/ rather than the one line mentioned in the link you sent.

    I’m glad that the bug has been identified and will be addressed in due course. Obviously I fully appreciate the need to prioritise and I see that the plugin is regularly updated which is refreshing. Thanks again for your help and your work on this very good plugin. Chris

    Plugin Support tristan083

    (@tristan083)

    I’m glad to hear that you were able to sort the display of the warnings, @rodeboy !

    It is my pleasure to be of assistance and I’d be more than happy to further assist you on any questions or concerns around this topic; otherwise I’ll go ahead and close this thread, as there are no further actions needed on my end.

    This is for us to track down topics/issues efficiently and for us to adhere to the WordPress Forum Guidelines.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Warning message’ is closed to new replies.