Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #1126389

    Hello,
    I got the error message Notice: Trying to get property of non-object in /www/htdocs/….. /wordpress/wp-content/plugins/wordpress-seo/frontend/schema/class-schema-utils.php on line 26 and don’t know what to do to get rid of it.

    I found this in the www bit it didn’t work:

    “I was getting this code too, so I went into the “Search Appearance” settings for Yoast. I set myself as the “person” that the site represents. The code went away.”

    Do you know what happened (Plugin, Update or whatelse?) and could you help me? You find the content of line 26 in the private content.

    Thx in advance!
    Nic

    #1126557

    Hey Nicoletta_DUS,

    That is a notice and shouldn’t affect any functionality on your site. If you want us to have a closer look at your site then we need access to it, please post login details in private.

    Best regards,
    Rikard

    #1126607

    Hi Rikard,

    I gave you the login (please look at the private content). For me this notice is a problem because you see it on the Website and if you google the topic “… Trying to get property of non-object …” it shows you other sites with this error message.
    So even if it shouldn’t affect any functionality on my site for me it is important to find a solution and I would also like to understand what the problem is so that it does not recur. Can you tell me why I got the error message?

    Thanks in advance,
    Nicoletta

    #1126631

    Hi,

    Ok, please try to set wp_debug to false on your installation: https://wordpress.org/support/article/debugging-in-wordpress/

    Best regards,
    Rikard

    #1126643

    Hi and thx. That means I have to do it in the wp-config.php ?

    #1126645

    Do I have to insert the whole code (BEFORE /*) in the wp-config.php? (“The following code, inserted in your wp-config.php file, will log all errors, notices, and warnings to a file called debug.log in the wp-content directory. It will also hide the errors so they do not interrupt page generation.”)

    // Enable WP_DEBUG mode
    define( ‘WP_DEBUG’, true );

    // Enable Debug logging to the /wp-content/debug.log file
    define( ‘WP_DEBUG_LOG’, true );

    // Disable display of errors and warnings
    define( ‘WP_DEBUG_DISPLAY’, false );
    @ini_set( ‘display_errors’, 0 );

    // Use dev versions of core JS and CSS files (only needed if you are modifying these core files)
    define( ‘SCRIPT_DEBUG’, true );

    #1126711

    Hi,

    There will be other lines starting with define in your wp-config.php file, simply put them before or after them. Make sure all the instances has false as a value so that debugging is turned off on your installation.

    Best regards,
    Rikard

    #1126763

    I’m sorry, but I can not go any further in this regard. Please have a look at the private content. Thank you!

    #1127048

    Hi,

    If you post FTP login details in private then we can do it for you.

    Best regards,
    Rikard

    #1127144

    Thx! Information in the private content.

    Best regards,
    N.

    #1127476

    Hi,

    No, we can’t access the wp-config.php file through the WordPress editor, we need FTP login details in order to access that file.

    Best regards,
    Rikard

    #1127735

    You can access the wp-config.php if you install the File Manager Plugin.
    /Chrilles

    #1127828

    Hi forcetechnology2,

    Thanks for sharing, though we prefer to not install plugins on users installations.

    Best regards,
    Rikard

    #1127833

    Thx for the advice but I don’t need the plugin. I reachthe ftp files per Filezilla. But Rikard, please have a look at the last private data (message). Could you send me the copy that I have to integrate in the wp-config.php and on which position? So that I can also check it in my other ENFOLD themes?
    Thanky in advance.

    Best regards,
    Nicoletta

    #1128121

    Hi Nicoletta,

    What you posted in private previously should be enough to add to your wp-config file, please see private. We can’t send you a whole file since each wp-config file is different.

    Best regards,
    Rikard

    #1133060

    Hi Rikard,

    I didn’t have the time to try the last advice but now there is an even worse error message on a new site that I created (with a video):
    /www/htdocs/ ……………… /wordpress/wp-content/themes/enfold/framework/php/function-set-avia-frontend.php on line 617.
    Could you please have a look for the error-message and tell me what to do? I also sent the Site- and Login Information in the private data in case that you could have a look at the dashboard or best case repair.
    Thx in advance!

    Best regards,
    Nicoletta

    #1134300

    Hi,

    Thank you for the update.

    The site is running an older version of the theme, v4.5.6. Please try to upgrade the theme to v4.6, then update us once it’s ready. We’ll check the issue again afterwards.

    Best regards,
    Ismael

    #1138041

    It is updated! ;-)

    #1138647

    Hi,

    Thank you for the update.

    We don’t really see anything broken in the site aside from that little notice above the header, which is generated by the Yoast plugin. You can remove that by following @rikard‘s suggestion above. Just set the “WP_DEBUG_DISPLAY” to false.

    // https://codex.wordpress.org/WP_DEBUG#WP_DEBUG_DISPLAY

    Or post the FTP login details in the private field so that we can edit the wp-config.php file.

    Best regards,
    Ismael

Viewing 19 posts - 1 through 19 (of 19 total)

You must be logged in to reply to this topic.