WordPress.org

Ready to get started?Download WordPress

Forums

Error: Trying to get property of non-object (3 posts)

  1. Digital Raindrops
    Member
    Posted 3 years ago #

    I have just started getting this message.

    No Plugins are activated but all up to date, WordPress version is also up to date.

    LocalHost (WAMP)
    Theme 2010
    Debug Mode = True

    Where, Posts > Posts > Edit > Insert Media > Library

    I was not getting this the weekend.

    Recent Plugin Updates:
    Only Plugin Theme Check was active and updated to: Version 20110201.1
    Now deactivated but the message still happens?

    Anyone else?

    Full Error:

    Notice: Trying to get property of non-object in D:\wamp\www\wordpress\wp-includes\link-template.php on line 309
    Call Stack
    #	Time	Memory	Function	Location
    1	0.0016	410384	{main}( )	..\media-upload.php:0
    2	0.4581	21910864	do_action( )	..\media-upload.php:120
    3	0.4582	21911736	call_user_func_array ( )	..\plugin.php:395
    4	0.4582	21911752	media_upload_library( )	..\plugin.php:0
    5	0.4582	21911944	wp_iframe( )	..\media.php:801
    6	0.4740	21928088	call_user_func_array ( )	..\media.php:338
    7	0.4740	21928272	media_upload_library_form( )	..\media.php:0
    8	0.5458	22053448	get_media_items( )	..\media.php:1992
    9	0.6657	22096632	get_media_item( )	..\media.php:1140
    10	0.6813	22103816	get_attachment_fields_to_edit( )	..\media.php:1187
    11	0.6868	22107240	image_link_input_fields( )	..\media.php:1064
    12	0.6888	22107344	get_attachment_link( )	..\media.php:899

    Stuck with this one, I did read about this being caused by a null index isset() but the post was quite old, Googled and not much help there!

    Is there a log file or any plugin / process that would give more information?

    EDIT:
    Looked into the file and it looks like $parent is not being set?
    link-template.php on line 308 - 309

    $parent = get_post($object->post_parent);
    if ( 'page' == $parent->post_type )

    Regards

    David

  2. Simon Prosser
    Theme Review Admin
    Posted 3 years ago #

    I cannot reproduce this.
    I cant see how theme-check can still cause an error when deactivated.

  3. Digital Raindrops
    Member
    Posted 3 years ago #

    Hi Simon,
    It must be something else, it looks like $object->post_parent

    I Thought of theme check as that is the only thing updated since the weekend, and I have been using the library testing a plugin.

    I did load a plugin once that changed some core files and added in a function, I was not sure if a plugin had altered core files.

    I have just reinstalled WordPress from the updates screen and still getting it!

    David!

Topic Closed

This topic has been closed to new replies.

About this Topic