Trying to get property of non-object error
-
I get
PHP Notice: Trying to get property of non-object in /var/www/web/app/plugins/wp-csv/CPK_WPCSV_Engine.php on line 338
when importing a csv file. In my debugger I can see the issue is the$id
for the newly created post is 0, which means that$post_object
is null. Line 338 is trying to get properties of a null variable to perform thedo_action
for saving a post.
- The topic ‘Trying to get property of non-object error’ is closed to new replies.