Keep getting this code reparted again and again?

It seems that the permalinks structure has an issue. Please follow below steps to fix it. Step 1: if possible, back up your WP installation folder. Step 2: Temporary disable all the plugins (important step) step 3: in the WordPress admin dashboard, go to Settings -> Permalinks step 4: remember or note down somewhere what … Read more

Array to string conversion error in PHP 7.2 when returning user role as class

This code works and is perfectly valid, running on 7.3, except when your user has two roles: add_filter( ‘body_class’, function( $classes=”” ) { $current_user = new \WP_User(get_current_user_id()); $user_role = [‘administrator’, ‘moderator’]; //just a test, but this is what it’ll look like if it had 2 roles. $classes = []; $classes[] = ‘role-‘ . $user_role; return … Read more

404 Not found error after update to WordPress 5.0

First I tried to disable all plugins and change theme to the default WordPress theme and error is showing yet. Then tried to install a new WordPress 5.0.1 and got 2 errors: theme.min-rtl.css:1 Failed to load resource: the server responded with a status of 404 (Not Found) style.min-rtl.css:1 Failed to load resource: the server responded … Read more

Unable to locate WordPress content directory

All files should be owned by the actual user’s account, not the user account used for the httpd process. Group ownership is irrelevant unless there are specific group requirements for the web-server process permissions checking. This is not usually the case. All directories should be 755 or 750. All files should be 644 or 640. … Read more

WordPress FTP Error: “Failed to connect to FTP Server”

After two days of head banging, found out it’s the SELinux giving me the issues. Usually i got a message from it saying what and why was blocked, provided with a command to enable the action that SELinux was preventing. Like when apache wasn’t able to write logs to my virtual host folder… This time … Read more