WordPress.org

Forums

Really Simple CAPTCHA
Captcha creating 1000s of tmp files (8 posts)

  1. Mediamanuk
    Member
    Posted 3 years ago #

    Hi
    Im running newsletter plugin from Tribulant and using really simple captcha with it.
    The problem is its creating thousands of tmp files in the captcha folder, both image and php files. (about 170,000!!!!!)
    How can i stop this?

    Newsletter 3.8.5
    wp 3.1.2

    I normally wait until all my plugins are approved before i update - too many conflicting update problems in the past...

    Neil

    http://wordpress.org/extend/plugins/really-simple-captcha/

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 3 years ago #

    It's necessary for plugins using Really Simple CAPTCHA (in this case, newsletter) to clear theier captcha folder periodically, since CAPTCHA files remain if they are not answered. $captcha->cleanup() is available for this.

  3. Mediamanuk
    Member
    Posted 3 years ago #

    Hi
    Thanks for your reply.
    Im not really a programmer, i can fiddle with code a bit, im a designer, html, css.

    Where would i put that code or what would i do with it?

  4. mmcomber
    Member
    Posted 3 years ago #

    I all,

    I have the same two plugins causing the same problem. So this could be the way Tribulant's Newsletter plugin in uses Really Simple Captcha?

    If so, I need the same fix.

    Thanks,

    Marty

  5. Tribulant Software
    Member
    Posted 3 years ago #

    Good day,

    We are working on implementing this change into the WordPress Newsletter plugin, sorry for any inconvenience caused.

    For now, you can open the 'wp-mailinglist/views/default/widget-front.php' template file and add the $captcha -> cleanup() like this: http://screencast.com/t/mqSnlfWG

    <?php $captcha -> cleanup(); ?>

    Thank you for your business and support!

    All the best,
    Antonie

  6. Mediamanuk
    Member
    Posted 3 years ago #

    Antonie
    Thanks but im not sure thats working.
    At what stage does it clean the temp files.

    I have bought 5 versions of the newsletter from you, all running on the same server and its a mamoth task to keep on top of this.

    Ive put the code in like you suggested but im still seeing tmp files appear?

    Any advice please...

    Neil
    ps. On the version i have put this on as well its on line 172 NOT 188 like your screen image.
    and its not working, still 2 files each page load. Ive just cleaned out 230,000 file...!!!

  7. Mediamanuk
    Member
    Posted 3 years ago #

    how important is the index . p h p file in there as there is nothing in the file apart from

    php start
    // Silence is golden.
    php end

    As i can set up a cron job to delete the files hourly

    any help appreciated

  8. Tribulant Software
    Member
    Posted 3 years ago #

    Thank you for your responses.

    If you look in the really-simple-captcha/really-simple-captcha.php file, you'll see the cleanup() function only removes files older than 60 minutes. It is the first and only parameter of the function.

    You can pass a 1st parameter with a numeric value like 1 for example, like this:

    <?php $captcha -> cleanup(1); ?>

    You'll put this code in the same place, like this: http://screencast.com/t/WwF0NaiFQ

    We have tested this and already applied it to our latest development build which will be released soon.

    All the best,
    Antonie

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic