WP_Error could not be converted to string

There are few problems with your code. First of all, let’s see at wpmu_create_blog function: wpmu_create_blog( string $domain, string $path, string $title, int $user_id, array $meta = array(), int $network_id = 1 ) So you use it incorrectly. It’s 5th argument is $meta and you put $network_id in there… Another problem is that this function … Read more

To stylize WP_Error messages or not?

Personally I prefer to put all errors in a debug.log file using error_log and it would be readable enough as it includes break lines automatically. I think not all the errors should be visible for clients. In case that I need to show an error to the user, I check the error type and I … Read more

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