• Resolved fiddla

    (@fiddla)


    Hi

    Really useful plugin, thank you.

    I’m trying to set up a cron job and then move the file to an ‘imported’ subdirectory (with the same filename). I checked the box to automatically rename the files with the timestamp but this is having no effect and the moved file simply overwrites the old one. Am I doing this right and does everything work as expected for you?

    Many thanks

    Liz

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

    (@carazo)

    Good morning @fiddla,

    Maybe you have some permission problem.

    Have you look at it?

    Thread Starter fiddla

    (@fiddla)

    Hi Javier

    Thanks very much for getting back to me. The file is moved to the subdirectory successfully. The directory has 755 and file is 644. Would it need different permissions to be able to rename the file?

    Many thanks

    Liz

    Plugin Author Javier Carazo

    (@carazo)

    No, it depends in which user is executing Apache/PHP. Anyway, if the file is moved, permissions seems to be ok.

    This is strange none more tell me about it but it seems to be a bug.

    Same problem here

    Plugin Author Javier Carazo

    (@carazo)

    I have just tried to fixed. New version available.

    Can you check and tell me.

    Thanks.

    Thread Starter fiddla

    (@fiddla)

    Hi Javier

    Sorry for the delay. Unfortunately it didn’t fix it for me.

    I checked the “acui_cron_path_to_move_auto_rename” value in the DB. I think the first line of acui_cron_process_auto_rename() should be this…

    if( get_option( "acui_cron_path_to_move_auto_rename" ) != true )

    Does this work for you?

    Thanks very much

    Liz

    Plugin Author Javier Carazo

    (@carazo)

    Oh what a fail.

    Now it is fixed ??

    Thanks!

    Thread Starter fiddla

    (@fiddla)

    Hi again

    Still doesn’t work for me, unless I use

    !=

    not

    !==

    Is this not the case for you too?

    Thanks.

    Plugin Author Javier Carazo

    (@carazo)

    Oh yes, sorry for all this updates.

    I have inserted this in the readme.txt, thank you very much for all the debugging.

    * Thanks to @fiddla for debugging all this, as update_option with a value equals to true is saved as 1 in the database, we couldn’t use the ==! or === operator to see if the option was active or not. Sorry for so many updates those days with this problems and thanks for the debugging

    The problem was this: update_option( $option, $value ) with $value = true, makes the get_option( $option ) returns a 1 so the !== operator was not working.

    Thread Starter fiddla

    (@fiddla)

    Hi Javier

    No problem. Thanks for sorting.

    Plugin Author Javier Carazo

    (@carazo)

    Thanks to you for the debug ??

    If you have one minute, please let us a good review in order to show everyone we try to improve and fix it everyday.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Imported file is not automatically renamed’ is closed to new replies.