-
AuthorPosts
-
August 10, 2019 at 11:00 am #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!
NicAugust 11, 2019 at 3:13 am #1126557Hey 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,
RikardAugust 11, 2019 at 10:23 am #1126607Hi 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,
NicolettaAugust 11, 2019 at 4:32 pm #1126631Hi,
Ok, please try to set wp_debug to false on your installation: https://wordpress.org/support/article/debugging-in-wordpress/
Best regards,
RikardAugust 11, 2019 at 6:04 pm #1126643Hi and thx. That means I have to do it in the wp-config.php ?
August 11, 2019 at 6:25 pm #1126645Do 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 );August 12, 2019 at 4:44 am #1126711Hi,
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,
RikardAugust 12, 2019 at 11:02 am #1126763I’m sorry, but I can not go any further in this regard. Please have a look at the private content. Thank you!
August 13, 2019 at 3:54 am #1127048Hi,
If you post FTP login details in private then we can do it for you.
Best regards,
RikardAugust 13, 2019 at 11:31 am #1127144Thx! Information in the private content.
Best regards,
N.August 14, 2019 at 5:36 am #1127476Hi,
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,
RikardAugust 14, 2019 at 9:24 pm #1127735You can access the wp-config.php if you install the File Manager Plugin.
/ChrillesAugust 15, 2019 at 6:37 am #1127828Hi forcetechnology2,
Thanks for sharing, though we prefer to not install plugins on users installations.
Best regards,
RikardAugust 15, 2019 at 7:21 am #1127833Thx 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,
NicolettaAugust 16, 2019 at 4:02 am #1128121Hi 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,
RikardSeptember 2, 2019 at 4:49 pm #1133060Hi 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,
NicolettaSeptember 5, 2019 at 10:45 am #1134300Hi,
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,
IsmaelSeptember 13, 2019 at 3:16 pm #1138041It is updated! ;-)
September 16, 2019 at 4:15 am #1138647Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.