frenchomatic
Forum Replies Created
-
Forum: Plugins
In reply to: [Lord of the Files: Enhanced Upload Security] Renaming of .bin to .txtIs it possible that the first few characters are fooling the plugin or wordpress? I notice in the file there are alot of normal characters in the top of the file which look like plain text.
W0LF7AHA6BV660152ˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇ 8ART7SADI1PTIIAIRWD1B81PUAW6ˇˇˇˇˇˇˇˇˇˇˇˇˇ
If I delete just those opening plain text from the top of the file, save it , then wordpress with your plugin correctly uploads the file and gives it a .bin extension.
- This reply was modified 1 year, 3 months ago by frenchomatic.
- This reply was modified 1 year, 3 months ago by frenchomatic.
The whole option ‘Remove Cache Buster Query Parameter’ in the plugin settings has disappeared. I have deleted the plugin, reinstalled it and imported a config file from another site – all is now working as far as the cache and the cache buster is concerned. I must have deleted the use of the cache buster.
However, the original problem of ‘hover intent’ remains.
I have finally seen something – the cache buster isn’t present ?swcfpc=1 but cloudflare is working when I test the cache. .
PHP 8.1 – Mac osx 15.1.1 (24B91) – Safari Version 18.1.1 (20619.2.8.11.12) It has been doing this for a while though so it is probably not just these latest versions . I have been ignoring the error as I can still clear the cache from other pages or on an admin page.
- This reply was modified 1 year, 6 months ago by frenchomatic.
- This reply was modified 1 year, 6 months ago by frenchomatic.
The plot thickens. This behaviour happens when using safari. It doesn’t happen in Firefox or Chrome. Seems to be a conflict perhaps between the theme’s home page and the plugin.
- This reply was modified 1 year, 6 months ago by frenchomatic.
Try directly purging the cache for everything on the cloudflare admin panel. Worth a try.
The behaviour where cloudflare caching needs to be enabled is still an issue in version 5.1. several people have mentioned this. A function in the next plugin to test where a url is a HIT or MISS would be useful too. I don’t know how you might integrate this.
- This reply was modified 1 year, 9 months ago by frenchomatic.
I am closing this as you have effectively recognised the issue in another thread. Thanks for a great plugin and your responsiveness.
Glad to help. Great plugin but please don’t add complexities with more functionality. Just make sure it continues to work as wordpress and cloudflare update. It has been one of the best plugins over the last few years to have on a wordpress install.
I confirm the same behaviour when updating the plugin on 4 different sites. Cloudflare button is set to disabled. Turning it on enables cloudflare connection but I still don’t get page caching. Test button gives undefined with a green tick which the author knows about.
Cache rules are created instead of the usual page rule but it appears to me that the first filter hostname equals domain.com is not working for some reason. Cache status remains as dynamic (I used https://hackertarget.com/http-header-check/) to see that but there are lots of ways. If I replace the first filter in cloudflare with URI wildcard https://*.domain.com/*, the cache status becomes a hit.
- This reply was modified 1 year, 9 months ago by frenchomatic.
Just a thought but the first filter defined is << hostname equals domain.com >> . I agree this should work but it doesn’t for me . It seems to be a problem. Why not use URI full and a wildcard as the first filter with all the accompanying ANDs? The cache status is then a HIT. Like this URI wildcard https://*.mydomain.com/*.
- This reply was modified 1 year, 9 months ago by frenchomatic.
- This reply was modified 1 year, 9 months ago by frenchomatic.
Basically, I can’t get it to work unless I add in the page rule. I don’t get a CF-Cache-Status HIT and only get CF-Cache-Status DYNAMIC. When I roll back the plugin with the page rule in place it works fine. Like this
https://www.mydomain.com/* Cache Level: Cache Everything
- This reply was modified 1 year, 9 months ago by frenchomatic.
- This reply was modified 1 year, 9 months ago by frenchomatic.
- This reply was modified 1 year, 9 months ago by frenchomatic.
Silly me – I had it set to the wrong mime type and should have been $existing_mimes[‘slave’] = ‘application/zip’;
The second method is interesting if I end up needing to add different mime types to a file extension.
Many thanks for your help and I am sure this post will help others too.
Forum: Plugins
In reply to: [Lord of the Files: Enhanced Upload Security] .bin files with two MIME typesAll is good. Plugin update works perfectly. Hopefully this post will help others if they get an unusual MIME type. they can report it and it can be added. This part of wordpress is actually a mess. Your plugin cleans it up. And thanks.
Forum: Plugins
In reply to: [Lord of the Files: Enhanced Upload Security] .bin files with two MIME typesIt seems I can get it to work if I edit the alias file to include application/x-dosexec
‘bin’=>array(
‘application/gltf-buffer’,
‘application/octet-stream’,
‘application/x-dosexec’,an then in functions.php this
function allow_special_uploads ( $existing_mimes=array() ) {
$existing_mimes[‘slave’] = ‘application/octet-stream’;
$existing_mimes[‘bin’] = ‘application/octet-stream’;
$existing_mimes[‘kess’] = ‘application/zip’;return $existing_mimes;
}
add_filter(‘upload_mimes’, ‘allow_special_uploads’);