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

  1. Mediamanuk
    Posted 5 years ago #

    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...



  2. Takayuki Miyoshi
    Plugin Author

    Posted 5 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
    Posted 5 years ago #

    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
    Posted 4 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.



  5. Tribulant Software
    Posted 4 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,

  6. Mediamanuk
    Posted 4 years ago #

    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...

    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
    Posted 4 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
    Posted 4 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,

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Really Simple CAPTCHA
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic