Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1784
    R L
    Participant

    Hi

    new error:

    Notice: Trying to get property of non-object in /home/XXX/ftp/YYY/wp-content/plugins/image-watermark/image-watermark.php on line 998

    Warning: Cannot modify header information – headers already sent by (output started at /home/XXX/ftp/YYY/wp-content/plugins/image-watermark/image-watermark.php:998) in /home/XXX/ftp/YYY/wp-includes/pluggable.php on line 896

    WP 3.8, PHP 5.3

    #1786
    R L
    Participant

    I have found the problem and solution ;)

    1. the problem:
    WP_DEBUG is set to true in file wp-config.php

    2. the solution:
    change line 998 in file image-watermark.php to:
    $post_id = ( !empty( $post ) && (int)$post->post_parent);

    as described here:
    http://wordpress.org/support/topic/solution-for-notice-trying-to-get-property-of-non-object-evald-code

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.