• 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

    https://www.ads-software.com/extend/plugins/really-simple-captcha/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    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.

    Thread Starter Mediamanuk

    (@mediamanuk)

    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?

    mmcomber

    (@mmcomber)

    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

    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: https://screencast.com/t/mqSnlfWG

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

    Thank you for your business and support!

    All the best,
    Antonie

    Thread Starter Mediamanuk

    (@mediamanuk)

    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…!!!

    Thread Starter Mediamanuk

    (@mediamanuk)

    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

    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: https://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

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Really Simple CAPTCHA] Captcha creating 1000s of tmp files’ is closed to new replies.