WordPress update bug

Your website is not really broken. As far as I know, what I see when I look on your source code is some HTML code read as plain text. It means WordPress is interpreting HTML as if it was just random text. For example, on your front-office, some HTML is published and readable (We should … Read more

Adding a new custom post type using the editor causes 502 bad gateway error

I did some further research and testing, and found the issue to be related to nginx and not WordPress itself. The following Stack Overflow post included some configuration adjustments for the site’s config file that resolved the 502 bad gateway issues. My configuration file’s client_max_body_size was already set to 64M. Here are the nginx settings … Read more

How is wp_admin_notice supposed to work?

If you look at the user-edit.php file, you can see, when updating an user, if there are no errors, then WP performs an redirect. This effectively wipes the admin notice you’re trying to display as it is not stored anywhere. One workaround for this is to store the custom error as a temporary option value … Read more

Rewrite standard $errors messages output via function.php

Try this on function.php <?php add_filter(‘login_errors’, ‘custom_login_error_messages’); function custom_login_error_messages($error) { if (strpos($error, ‘Invalid email address’) !== false) { return ‘The email address you entered is not valid. Please try again.’; } elseif (strpos($error, ‘Lost your password?’) !== false) { return ‘Please click the “Forgot Password” link to reset your password.’; } return ‘Login failed. Please … Read more

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