• When clicked on add a new plugin I get “It appears you don’t have
    permission to access this page.

    403 Error. Forbidden.”

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi there,

    This might happen due to restricting file and directory permissions. I would suggest to first check that the permission for directories subdirectories in your WordPress installation is set to “755”. This includes wp-content, plugins, wp-includes, etc. And the permissions for files are set to “644”. You can do this by following the steps below:

    1. Access the site’s files using FTP
    2. Navigate to the WordPress root directory
    3. Right-click on the folder or file and select File Permissions
    4. Set the permissions to 755 for directories and 644 for files

    Remove .htaccess and create a new one.
    Rename wp_content/plugins, in case the problem is caused by one of the plugins.
    Overwrite all WP folders and files with a fresh download.

    Hello @mikkidoo ,

    1. Make sure your WordPress user account has administrator privileges. You can confirm this by checking the wp_users and wp_usermeta tables in your database.
    2. Ensure that the file and folder permissions for your WordPress site are correctly configured. Folders should have permissions set to 755, and files should be set to 644.
    3. Temporarily deactivate any security plugins you have installed and see if this allows you to access the plugin page.
    4. The .htaccess file can sometimes cause issues. Try renaming it and refresh your site to check if the problem is resolved.

    function preserve_post_author_on_update($data, $postarr) {
    if (!empty($postarr[‘ID’])) {
    $original_post = get_post($postarr[‘ID’]);
    $data[‘post_author’] = $original_post->post_author;
    }
    return $data;

    }
    add_filter(‘wp_insert_post_data’, ‘preserve_post_author_on_update’, 10, 2);

    This code prevents WordPress from automatically changing the original author when a post is updated, especially when editing synchronized patterns or reusable blocks. It ensures the post author remains the same, even after updates.By default, WordPress changes the post author to the current user when a post is updated. So Add this code in functions.php.

    Thread Starter Michael

    (@mikkidoo)

    @zartabwp okay, I will apply the code.

    Thread Starter Michael

    (@mikkidoo)

    @mohamedkhafaja okay working on this.

    Thread Starter Michael

    (@mikkidoo)

    @asifsiam97 will give feedback, thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.