• Resolved iamimba

    (@iamimba)


    Hey,

    Hope you can help me out here.
    I’ve deleted the Ninja Firewall plugin and removed the nfwlog folder and removed the entries from the htaccess and the php.ini file.
    When I’m trying to access my Dashboard it gives me the following error now:

    Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0

    Fatal error: Unknown: Failed opening required ‘/home/lolfinit/public_html/wp-content/nfwlog/ninjafirewall.php’ (include_path=’.:/usr/local/php73/pear’) in Unknown on line 0

    How can I possibly fix this?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author nintechnet

    (@nintechnet)

    Hi,

    You just need to wait a few minutes until PHP reloads the new php.ini file. Then, the error will go away. PHP caches INI files for up to 5 minutes.

    The problem is that you deleted the “/wp-content/nfwlog/” folder and its “ninjafirewall.php” loader, hence the error. When uninstalling NinjaFirewall, it will not delete this folder for that reason.

    Thread Starter iamimba

    (@iamimba)

    Well, I also deleted the php.ini, cause I only created it for NinjaFirewall to work. And it has been already 2 hours since I did so and still the error persists.

    Is there anything else that could cause that behaviour?

    Plugin Author nintechnet

    (@nintechnet)

    That’s odd for sure.
    Create a “/home/lolfinit/public_html/wp-content/nfwlog/ninjafirewall.php” file, with this line only:

    <?php
    

    That should stop the error while your PHP interpreter refreshes its cache.

    Thread Starter iamimba

    (@iamimba)

    Thanks a lot for your help, I used the backup from yesterday and could fix it this way.

    Thread Starter iamimba

    (@iamimba)

    Actually, when I rename the nfwlog folder again the same error occurs again, although there is no trace of nfw in the php.ini nor the htaccess. What causes this behavior?

    … If it might help try to disable any cache on your control panel for 5 mins and don’t forget to disable the php component extension opcache. After 5 min try again, if ok enable your settings again back as usual. If not might try to support with your hosting provider.

    Plugin Author nintechnet

    (@nintechnet)

    Make sure you don’t have another PHP INI file with the firewall directive:

    • A .user.ini file in the current folder.
    • Any *.ini files in the parent folder either.

    If there’s none, that means your PHP interpreter is still caching the content of the old PHP INI file. In that case, I would contact the admin or host about this issue as only them can deal with that.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Deleted Ninja Firewall/ not able to access Dashboard anymore’ is closed to new replies.