• Resolved knowing8

    (@knowing8)


    Hello, i cant fix my site. Now it is written like this:
    Warning: require_once(lib/wordfenceClass.php): failed to open stream: No such file or directory in /home/naliai/domains/laisvivaikai.lt/public_html/wp-content/plugins/wordfence/wordfence.php on line 68 Fatal error: require_once(): Failed opening required ‘lib/wordfenceClass.php’ (include_path=’.:/usr/share/pear’) in /home/naliai/domains/laisvivaikai.lt/public_html/wp-content/plugins/wordfence/wordfence.php on line 68

    I tried to deactivate from ftp all plugins, tried to delete httacess file, tried to insert new file with original file info wordfenceClass – in this case page works fine, but admin dashboard not works properly – cant access any link, any link i press (plugins, posts, pages) – show Forbiden 403 error, that i cant access these links from this server. (from ftp i changed admin folder permisioms to 777)

    Site: https://www.laisvivaikai.lt

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 18 total)
  • Hi @knowing8,

    It seems that when Wordfence updated, some files were not properly updated.

    Can you try removing the /wp-content/plugins/wordfence/ folder, and then reinstalling Wordfence?

    Dave

    Thread Starter knowing8

    (@knowing8)

    Reinstalling just place new fresh folder? Because i cant access plugins section in dashboard.
    Or after all wordfence folder deletion should be all fine? I will try it.

    • This reply was modified 5 years, 8 months ago by knowing8.

    Yup! You’ll want to remove the folder first, then when you can access the plugins dashboard, you can reinstall Wordfence from there.

    Dave

    Thread Starter knowing8

    (@knowing8)

    The same:
    page working, but not dashboard and admin panel.
    When i try to go for example plugins, shows:
    Forbidden

    You don’t have permission to access /wp-admin/plugins.php on this server.

    Hi again,

    Can you try this?

    1. Rename the Wordfence folder (plugins/wordfence -> plugins/wordfence-old). See if that allows you to view the plugins dashboard.

    2. If Wordfence was already disabled / uninstalled, try renaming the .htaccess file. It’s possible that something in there is preventing you from accessing plugins.

    3. If .htaccess isn’t responsible, try changing the permissions found within your /wp-admin/* folder. The permissions for that folder should be set to 744.

    Dave

    Thread Starter knowing8

    (@knowing8)

    I tried to rename all .htaccess files (in main folder, in admin folder, in content folder) – still cant access to plugins page. Maybe here is the problem? why in all folders there are .htaccess files? I have looked up in other my sites folders, .htaccess file is only in main folder

    Now shows this:

    You don’t have permission to access /wp-admin/plugins.php on this server.
    Server unable to read htaccess file, denying access to be safe

    File permissions already done.

    • This reply was modified 5 years, 8 months ago by knowing8.
    • This reply was modified 5 years, 8 months ago by knowing8.
    • This reply was modified 5 years, 8 months ago by knowing8.

    Oh it seems you might have something within your .htaccess that is preventing access to plugins.php.

    Can you try creating a blank .htaccess file in the main folder?

    If you want, you can copy-paste the contents of your current .htaccess and I can look at it.

    Dave

    Thread Starter knowing8

    (@knowing8)

    This is in main public_html folder:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    This is in wp-admin folder (also in wp-content and wp-includes):

    <FilesMatch “.*\.(phtml|php)$”>
    Order Allow,Deny
    Deny from all
    </FilesMatch>
    <FilesMatch “(index).php$”>
    Order Allow,Deny
    Allow from all
    </FilesMatch>

    Can you try renaming the .htaccess file in wp-admin and wp-includes? Just take the dot off the front of it. See if that restores access to the admin area of the site.

    Tim

    Thread Starter knowing8

    (@knowing8)

    Yes i have tried this way – all same (page working, but admin panel not).

    Hi again,

    So I noticed this within the .htaccess file:

    <FilesMatch “.*\.(phtml|php)$”>
    Order Allow,Deny
    Deny from all
    </FilesMatch>

    Can you edit that .htaccess file and remove those lines? (If you are unsure, simply make the entire .htaccess file blank)

    Dave

    Thread Starter knowing8

    (@knowing8)

    Done, but Still same… browser caches cleaned.

    Forbidden

    You don’t have permission to access /wp-admin/ on this server.
    Server unable to read htaccess file, denying access to be safe

    Thread Starter knowing8

    (@knowing8)

    Maybe someone know how to restore from backup without accessing admin panel? Using UpdraftPlus
    I cannot find the solution to acces admin panel..

    • This reply was modified 5 years, 8 months ago by knowing8.

    Since we haven’t heard back I’m going to close this out. If you still have the trouble you can reopen it with more information.

    Tim

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Fatal Error’ is closed to new replies.