WordPress Sidebar, Widgets, Admin Bar not showing – Fix

WordPress

If the sidebar, widgets, admin bars or any other items in the WordPress admin menu is not loading in your WP install when compared to some another, then here is the fix:

  1. Edit your wp-config.php found in the root directory of your WordPress installation.
  2. Add the following line just before the closing of wp-config.php 
  3. Save the changes
  4. Logout and Login again to the WordPress admin

The problem will be fixed by now 🙂

More info: zend.ze1_compatibility_mode

Download Remote File with PHP to Server and finally output to browser

Shown below is the code to download a remote file with PHP and save to the server and finally output to browser using cURL and readfile

 

Limitations:

  1. Since the file is downloaded to the server first before outputting to the browser, it consumes time, bandwidth & server space.
  2. When downloading large files, the script may exhaust the memory limit and is prone to timeout.