Monthly archives: January 2016

Unable to Edit or Rotate Images in WordPress

Have you ever experienced the following error in WordPress:

Could Not Load the Preview Image
Could not load the preview image. Please reload the page and try again.
Chances are you have WHM/cPanel and are running ModSecurity with the following rules enabled:

950120, 960015, 981243, 981044, 981049, 950901, 981245, 981243, 981257
If you have access to WHM yourself, you can disable the rules yourself.

  1. Log into WHM
  2. Navigate to Security Center
  3. Click on ModSecurity Tools
  4. Search for each of rules 950120, 960015, 981243, 981044, 981049, 950901, 981245, 981243, 981257
  5. Choose to Disable each rule
  6. Restart Apache after you disable each rule

Get Back the System Sleep Preferences in Mac OS X

I recently purchased a Mac Pro (late 2013) and discovered that the Energy Saver Pane is a little different; most notably, the Computer Sleep slider is missing. Here is how to get it back.

First, use the following terminal commands to determine the model and board ID of your computer:

sysctl hw.model | awk '{ print $2 }'
ioreg -l | awk -F\" '/board-id/ { print $4 }'

Second, navigate to the following folder:

cd /System/Library/Extensions/IOPlatformPluginFamily.kext/Contents/PlugIns/X86PlatformPlugin.kext/Contents/Resources/

Third, determine the .plist file that corresponds to the model and board ID of your computer; e.g., Mac-F60DEB81FF30ACF6.plist.

Fourth, modify the file that corresponds to the model and board ID of your computer:

sudo vi /System/Library/Extensions/IOPlatformPluginFamily.kext/Contents/PlugIns/X86PlatformPlugin.kext/Contents/Resources/Mac-UDID.plist

Fifth, change the following line:

UnifiedSleepSliderPref

to

UnifiedSleepSliderPref

Sixth, regenerate kext cache by “touching” the Extensions directory:

sudo touch /System/Library/Extensions

Finally, wait a minute just to make sure the system has enough time to finish regenerating the kext cache. Then, reboot your mac.

Alas, you will once again have the two-slider pane.

System Energy Dual Preferences