“CRITICAL Object of class WP_Error could not be converted to string” using templates with twig

wp_get_post_terms() returns a WP_Error on failure. (Are you sure it’s $colection and not $collection in that function call?) You can check the return value using is_wp_error() and decide what you’re going to output if it is, in fact, a WP_Error. For example: $term = wp_get_post_terms( $colection->posts[0]->ID ,’look’ ); if ( is_wp_error( $term ) ) { … Read more

How to fix Fatal error: Cannot redeclare get_cli_args() in class-wp-importer.php

Are you somehow including wp-admin\includes\class-wp-importer.php using include or require? That may cause the error of get_cli_args() function declared twice. If that is the case, then you better use include_once or require_once. Also, perhaps you should test your installation by disabling all the plugins and any custom theme. Then activate the theme and test WordPress. Then … Read more

Call to undefined function create_function()

create_function was removed in PHP 8.0, so your theme does not appear to be compatible with PHP 8.0+. You have several options to resolve this: If your site is down and it is important to get your site up immediately, ask your host to downgrade PHP to 7.4. Just be aware that security support for … Read more

Multisite Conversion White Screen Error

Since you’re not getting anything in the page source, it’s at least reasonable to work under the assumption that something is either going wrong in the initialization process or very early on in building the page templates (like something you’ve hooked into wp_head(). I would try adding “breakpoints” to any functions that you’ve hooked into … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)