Error Message
-
I’m using version 6.1.8 of WP Support Plus. I started getting this error message when viewing a ticket as admin in the WP backend:
Notice: Trying to get property of non-object in /wp-content/plugins/wp-support-plus-responsive-ticket-system/includes/admin/getTicketsByFilter.php on line 71
The problem is caused by the plugin’s failure to properly handle users that are no longer registered in WordPress. In other words, if user JohnDoe creates a ticket and then user JohnDoe is deleted, any tickets he created become orphans and WP Support Plus generates this error message.
The way to correct the error is to delete the orphan ticket.
There are two concerns here:
1. Relying on users existing forever is bad programming practice. Users come and go. They should not be used as permanent key values.
2. Restricting ticket deletion to only “pro” plan means I had to go into the database and manually delete the offending ticket. This is bad programming practice.
https://www.ads-software.com/plugins/wp-support-plus-responsive-ticket-system/
- The topic ‘Error Message’ is closed to new replies.