tcarterfrance
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Document Revisions] Corrupted files (DocX, xlsx) on downloadFound it! Oooof! https://codex.www.ads-software.com/Installing_WordPress
“5)If your text editor saves as Unicode, make sure it adds no byte order mark (BOM). Most Unicode-enabled text editors do not inform the user whether or not it adds a BOM to files; if so, try using a different text editor.”
In my case wp-config.php had been saved as UTF-8-BOM instead of just UTF-8. So it was quietly adding a BOM tag to the beginning of the output!
Hope this helps someone else out there. Ben thanks again for a great plugin.
Forum: Plugins
In reply to: [WP Document Revisions] Corrupted files (DocX, xlsx) on downloadBen, hi, thanks for your time. To reaply to your questions :
Wordpress : Version 5.1
WP Document Revisions : Version 3.2.1
Does the problem occur even when you deactivate all plugins and use the default theme? YESI’ve traced the problem to this :
/web/wp-content/plugins/wp-document-revisions/includes/class-wp-document-revisions.php
Line 1007 : readfile( $file );Apparently at this point a 3 character “BOM” is added to the beginning of the files ouputted.
See image here : https://cergy-internet.fr/bug_bom.png
Txt and PDF files are still readable. Office files are not.
Server details/phpinfo are here : https://cenatho3.encours.fr/siteinfo.php
Lots of stuff in Google about this but no solution. I’ve tried changing the content-type and code-page (from UTF-8 to Windows) etc but it always outputs the BOM.
Any idéas welcome. TIA.
Thomas CARTER, Cergy Internet, France.Me too. I’ve just put the clients site on line, so changed the URL. Any new form I create just gest stuck. I’m not using WP-Super Cache. Even this 1 line forme :
https://pf-events.encours.fr/test/Forum: Plugins
In reply to: [Just Variables] Fix for 4.5Just to complete @cheetah182’s remark, in the root directory of the plugin, in just-variables.php line 55 you need to update this function
function jv_get_variable_value( $var ){
//$values = get_option(‘jv_values’);
$values = get_option(‘jv_variables’);if( !empty($values[$var]) ){
//return $values[$var];
return $values[$var][‘default’];
}return NULL;
}