• I get this error with post-list and post-content:

    Warning: Creating default object from empty value in /htdocs/wp/wp-content/plugins/post-content-shortcodes/class-post-content-shortcodes.php on line 610

    Plugin output is working without any problems.

    I use this shortcode for example:
    [post-list show_excerpt=true excerpt_length=30 post_type="page" include=84,86,88,90]

    Any help is much appreciated!

    All the best,
    Torsten

    https://www.ads-software.com/plugins/post-content-shortcodes/

Viewing 1 replies (of 1 total)
  • I was having the same exact problem. It turns out the post number I was trying to include had changed or I typed it in wrong. Looking up the exact number solved the problem.

    i.e. make sure you have posts with 84,86,88, and 90 id’s
    (i bet it will work if you take those out)

    Might be a way to just skip the post if it is not found rather than throwing an error message ;). -or- showing an error message in the backend plugin settings with a link to the page with the problematic shortcode would be even more helpful.

    Hoped that helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Creating default object from empty value error’ is closed to new replies.