e.mont01
Forum Replies Created
-
crow18: you need to request help to your provider, maybe ask them to install php_curl if they don’t have already.
travistsickle: it depends on your OS and server but for example for Ubuntu with nginx it will be something like:
sudo service nginx restart
And so for apache2 it should be something like:
sudo service apache2 restart
Forum: Fixing WordPress
In reply to: Excel file download corruptedHi Jonathan,
I know that it could be too late to help you but, on this stackoverflow answer Mike Schinkel explains a nice way to handle file downloads in wordpress.You need to add an action for template_redirect and then attach your file on that action handler, for example:
add_action('template_redirect','yoursite_template_redirect'); function yoursite_template_redirect() { if ($_SERVER['REQUEST_URI']=='/downloads/data.csv') { header("Content-type: application/x-msdownload",true,200); header("Content-Disposition: attachment; filename=data.csv"); header("Pragma: no-cache"); header("Expires: 0"); echo 'data'; exit(); } }
As mentioned here to fix this you need enqueue the autcomplete scripts in the footer by editting the calls to wp_enqueue_script function in file: /wp-content/plugins/buddypress/bp-messages/bp-messages-cssjs.php so it looks like:
wp_enqueue_script( ‘bp-jquery-autocomplete’, BP_PLUGIN_URL . “bp-messages/js/autocomplete/jquery.autocomplete{$min}.js”, array( ‘jquery’ ), bp_get_version(), true );
wp_enqueue_script( ‘bp-jquery-autocomplete-fb’, BP_PLUGIN_URL . “bp-messages/js/autocomplete/jquery.autocompletefb{$min}.js”, array(), bp_get_version(), true );
wp_enqueue_script( ‘bp-jquery-bgiframe’, BP_PLUGIN_URL . “bp-messages/js/autocomplete/jquery.bgiframe{$min}.js”, array(), bp_get_version(), true );
wp_enqueue_script( ‘bp-jquery-dimensions’, BP_PLUGIN_URL . “bp-messages/js/autocomplete/jquery.dimensions{$min}.js”, array(), bp_get_version(), true );