hackney
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: WP Smush.it] Error posting to Smush.itMy error messages on this plugin disappeared when I changed hosting company. I would say that was odd, but since everything about the Hosts from Hell was bad, it doesn’t wholly surprise me that things that looked broken were suddenly fixed by moving…
Hi donncha, thanks for your reply.
Changing the numbers didn’t work – it got rid of the error message, but the link to see the cached files disappeared too. I had another look at the code where the checks for 300 were and it seemed as if it was offering two options – if more than 300 (or whatever number) cached files, then it was giving the error message. If less, it was refusing to show the link to the list at all.
There didn’t seem to be an option for showing the actual list when the number o cached files was less than 300.
I added this code (below, I hope!) in just after the checks for 300
else { echo "<p><a href='" . wp_nonce_url( add_query_arg( array( 'page' => 'wpsupercache', 'listfiles' => '1' ) ), 'wp-cache' ) . "#listfiles'>" . __( 'List all cached files', 'wp-super-cache' ) . "</a></p>"; }(I got this from the code in the pre-update plugin)
That is now showing up the list, more or less – in fact it starts off showing an empty box when you click to see the list, but provides the whole list if you then click “regenerate stats”. The list disappears again if I delete a cached page, but reloading the WP Super Cache Manager page brings it back.
That looks like it brings back the function I needed, so I’m happy…
…but I’m slightly worried by the fact I’m not a PHP coder (as you have probably guessed) and I’m not sure if hacking about with the code in this way will make the sky fall in…
Does that seem OK to you, or have I broken the plugin in a way that will show up with a horrible crunch somewhere down the road?
thanks again for taking the time to answer
Forum: Plugins
In reply to: [Plugin: WP Smush.it] Error posting to Smush.itHello – I’d love to use this plugin, but I keep getting:
Error downloading file (Found)
Anyone know how to resolve this?
Thanks for any help you can offer!