• Resolved matteo raggi

    (@whichtransfers)


    I moved wordpress from dreamhost.com to tohost.it hosting, but now I receive this error:
    Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0

    Fatal error: Unknown: Failed opening required ‘WEBSITEPATH/wp-content/plugins/ninjafirewall/lib/firewall.php’ (include_path=’.:/usr/share/php:/usr/share/pear’) in Unknown on line 0

    https://wordpress.org/plugins/ninjafirewall/

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

    (@nintechnet)

    Hi,

    Did you follow the steps indicated in the FAQ

    Can I migrate my site(s) with NinjaFirewall installed ?
    In order to migrate your site, you must follow those steps :
    1. Export your NinjaFirewall configuration from the “Firewall Options” menu.
    2. With your FTP client, download its log and cache folder located in /wp-content/nfwlog/.
    3. Uninstall NinjaFirewall.
    4. Migrate your site.
    5. Install NinjaFirewall.
    6. Reimport its configuration from the “Firewall Options” menu.
    7. Upload its /wp-content/nfwlog/ folder to your new site (unless you already copied it during the blog migration).

    I think you moved the site with the php.ini file, which contains the full path to the firewall (e.g. auto_prepend_file = /full/path/to/wp-content/plugins/ninjafirewall/lib/firewall.php), but this path was valid on the old server not the new one.
    Try to remove the PHP INI file, then log in to WordPress and click on NinjaFirewall. The installer will let you re-install it.
    Or, edit the PHP INI so that the full path matched the new server.

    Thread Starter matteo raggi

    (@whichtransfers)

    ok, I deleted the user.ini file. thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problem changing hosting’ is closed to new replies.