• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

BUG PHP Warning: Attempt to read property "ID"

dervonz

New member
Messages
2
Likes
0
Points
1
#1
Getting this flood error at the moment.
PHP Warning: Attempt to read property "ID" on int in /home/www/xxx/wp-content/plugins/insert-php/libs/factory/shortcodes/shortcode.class.php on line 269
Any ideas ?

Best Regards
Christian
 

Temyk

Developer & Support
Staff member
Messages
1,054
Likes
39
Points
48
#2
1641988467561.png

Here is the code in which the notification is. The post object must be stored globally. Maybe you are changing the global variable of the post somewhere in the snippet or in your code on the site? Or use a hook to change the global query.
 

Temyk

Developer & Support
Staff member
Messages
1,054
Likes
39
Points
48
#4
Try disabling all your snippets in the plugin. If this solves the problem, then the global variable $post is changed in the code of one of your snippets.
If this does not solve the problem, then there may be a problem in the theme code. In any case, this is not a plugin error.