• Resolved selenasmith

    (@selenasmith)


    Hi!
    We’re using this plugin (as recommended by the Profile Builder plugin) on a Windows 2012 server and the manual import is great! However, I’m having a problem with the Cron import. The “Activate periodic import?” is checked. The path seems to do something odd when I save it, though:

    Should be: c:\inetpub\wwwroot\testsite\wp-content\uploads\2019\09\test.csv
    After saving the settings: c:\\inetpub\\wwwroot\\testsite\\wp-content\\uploads\\2019\\09\\test.csv

    Not sure why it doubles up on the backslashes. Should I specify the path differently?

    I added the WP-Control plugin and clicked on “Run Now” for the acui_cron_process job, and received the notice that it successfully executed the process. However, it doesn’t appear to have run at all. The user data is not updated and the Last actions of schedule task shows No tasks done yet.

    Any advice would be appreciated!

    Thanks,
    Selena Smith

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Javier Carazo

    (@carazo)

    @selenasmith,

    Good afternoo, sorry but we never work with Windows Servers (we work always with Linux in desktop and server) and surely the problem is there.

    For us, all path should contain this kind of slash / and not \.

    Could you try to check if you use / if it works? If not, we would try to see how we can fix it.

    Thread Starter selenasmith

    (@selenasmith)

    I created a new empty WP site to make sure there was no plugin interference.

    I set the path to use the forward slashes (/) and still no luck. Looks like i’m getting a 500 error per the IIS logs:
    POST /wpdatasubmit/wp-cron.php doing_wp_cron=1569266461.9239480495452880859375

    Plugin Author Javier Carazo

    (@carazo)

    @selenasmith,

    Problem is about IIS. We have no any Windows near to do tests…

    Two options: you can change to Linux, or you can provide us a IIS server to do tests there.

    Thread Starter selenasmith

    (@selenasmith)

    Thanks for your help. We will stay with Windows and look for another solution.

    Plugin Author Javier Carazo

    (@carazo)

    If you prepare an environment in Windows to do tests and fix it, we can do it for free.

    Thread Starter selenasmith

    (@selenasmith)

    I did some debugging and found the issue with this line of code (lines 318-320 in import-users-from-csv-with-meta.php):

    		if( validate_file( $path_to_file ) !== 0 ){
    			wp_die( __( 'Error, path to file is not well written', 'import-users-from-csv-with-meta' ) . ": $path_to_file" );
    		} 

    The validate_file() function returned a 2, so basically i can’t specify a Windows file path (“C:/inetpub/etc..”). I commented out this code and ran the cron job successfully.

    • This reply was modified 5 years, 6 months ago by selenasmith.
    Thread Starter selenasmith

    (@selenasmith)

    Actually, if i just remove the C: drive from the path it appears to work.

    Plugin Author Javier Carazo

    (@carazo)

    @selenasmith,

    That’s great. We cannot remove this conditional because this is security check.

    Anyway, if you can, migrate to Linux (in server and also in desktop). Free software is great!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Cron Import not running’ is closed to new replies.