• Resolved pmachart

    (@pmachart)


    hello

    i can’t seem to be able to download the nfwp.4.5.5.dat file to export the configuration

    i’m getting “Failed – Network error” every time

    i’ve tried on several websites, with various tech stacks and hosting configurations

    am I doing something wrong perhaps ?

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

    (@nintechnet)

    Do you have a security application, either on your server or maybe your desktop computer that prevent the file from being downloaded because it contains PHP code and various anti hacking signatures?

    You can download this script: https://nintechnet.com/share/wp-export.txt
    Rename it to wp-export.php an upload it to your site. Don’t forget to delete it when you don’t need it anymore.

    Thread Starter pmachart

    (@pmachart)

    hello,

    i’ve tried with your script and the result is the same.

    i have tried disabling everything related to security and it hasn’t change the outcome either
    (bbq firewall, perfmatters, even the host’s application firewall)

    anything else i should be looking at ?
    could i maybe just get the dat file via ftp somewhere ?

    if that helps, talk nerdy to me, i’m an engineer ??

    • This reply was modified 2 years, 2 months ago by pmachart.
    • This reply was modified 2 years, 2 months ago by pmachart.
    • This reply was modified 2 years, 2 months ago by pmachart.
    Plugin Author nintechnet

    (@nintechnet)

    Try to edit the code to save the file to disk instead.
    Comment out these 4 lines:

    // header('Content-Type: text/plain');
    // header('Content-Length: '. strlen( $data ) );
    // header('Content-Disposition: attachment; filename="nfwp.' . NFW_ENGINE_VERSION . '.dat"');
    // echo $data;

    And replace them with:

    file_put_contents( ABSPATH .'ninjafirewall.txt', $data );

    The file will be named ninjafirewall.txt and saved to the root folder of WordPress.

    Thread Starter pmachart

    (@pmachart)

    yep, that worked ! but its not very practical.

    could there be a way to download the configuration backups files available just below the export/import feature ?

    • This reply was modified 2 years, 2 months ago by pmachart.
    Plugin Author nintechnet

    (@nintechnet)

    You can download them over FTP, they are all “wp-content/nfwlog/cache/backup_xxxxxx.php” files.

    Thread Starter pmachart

    (@pmachart)

    can i grab these php files, rename them to dat, and import them on any site ? interesting.

    well, here’s a feature request : display the backups as a list instead of a dropdown and add download buttons ??

    about the default download feature not working :
    do you want admin access on one of the sites that has this issue ?
    (all my sites do though)

    Plugin Author nintechnet

    (@nintechnet)

    The backup files are different, you can’t reimport them from the dashboard. You can reupload them over FTP and then select them in the “Firewall Options” page.

    Regarding the exported file, try to call the wp-export.php script (the original one, not the one you modified) with this shell command:

    $ curl https://your-domain.com/wp-export.php -I

    Then, paste the results here.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘export configuration : can’t download’ is closed to new replies.