Support » Plugin: Import Users from CSV » Log file blocked by host

  • Resolved zudie

    (@zudie)


    Love this plugin. Works simple and well. However, on our host (Kinsta) we cannot open the log file and get a 403 Forbidden error.

    This is the reply from Kinsta Support:
    “Unfortunately it is not possible to overwrite the 403 block for the log files. I tried setting up different rules but the block always take precedence. If you are able to rename the log file from your plugin like log_file.txt using a .txt extension instead, then you should be able to access it via http.”

    Would it be possible to give your log file the extension .txt, instead of .log?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Andrew Lima

    (@andrewza)

    Hi @zudie

    I’ll add this to our development schedule, I cannot give an exact date when this will be fulfilled.

    Does the log file get created? If so, are you able to download it and view it or does Kinsta block it entirely from being downloaded?

    What issues are you having with your imports?

    Thread Starter zudie

    (@zudie)

    Yes, the log file does get created and I can view it through FTP.
    But my client cannot use FTP and they need to import new users often. Would be helpful is log file could be viewed from WP admin.

    Thread Starter zudie

    (@zudie)

    As workaround – until Andrew has created a fix, you can create a php file (e.g. called import-error-log.php) with the following code:

    $path = 'ABSOLUTE_PATH_TO_YOUR_WP_ROOT/wp-content/uploads/is_iu_errors.log';
    $log = @fopen( $path , 'r' );
    echo 'This is the ERROR log. No errors means nothing will be written to this file.<br>';
    echo '<pre>';
    echo fread($log,filesize($path));fclose($log);
    echo '<pre>';

    If you put this php file in your WP root, then client can read error log by going to the url: https://mydomain.com/import-error-log.php

    Plugin Author Andrew Lima

    (@andrewza)

    Thanks for sharing this solution with us and the community.

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