I was checking the error log and found this.
PHP Fatal error: Uncaught Error: Object of class WP_Error could not be converted to string in /wp-content/themes/enfold/functions-enfold.php:655
Stack trace:
#0 /wp-content/themes/enfold/search.php(17): avia_title(Array)
#1 /wp-includes/template-loader.php(106): include('/home/user/p...')
#2 /wp-blog-header.php(19): require_once('/home/user/p...')
#3 /index.php(17): require('/home/user/p...')
#4 {main}
thrown in /wp-content/themes/enfold/functions-enfold.php on line 655
So it can be fixed in the next update.
Hey peterolle,
We haven’t seen that on any of our test installation, and we’ve had no reports from other users either. Is this error reproducible in any way?
Best regards,
Rikard
Hey Rikard.
No idea how to reproduce it. I just went to have a look at the error and indeed there is the exact same one from yesterday. Nothing today yet.
I will try in the week to go and check some other client sites and see if there is something in any of them.
Hi,
Thank you for the inquiry.
Is there a plugin installed that runs scheduled tasks regularly, such as database backups or cleaning? Temporarily, try to add this code in the functions.php file:
add_filter( 'avf_title_args', function( $args, $id ) {
$title = get_the_title( $id );
$link = get_permalink( $id );
$args['title'] = ! is_wp_error( $title ) ? $title : __( 'Title not available', 'avia_framework' );
$args['link'] = ! is_wp_error( $link ) ? $link : '#';
if ( is_tax() || is_category() || is_tag() ) {
global $wp_query;
$term = $wp_query->get_queried_object();
$term_link = get_term_link( $term );
$args['link'] = ! is_wp_error( $term_link ) ? $term_link : '#';
}
return $args;
}, 10, 2 );
Best regards,
Ismael