WordPress SuperCache and Apache, PHP APC problems

Yes it is true, there is some problem with APC cache PHP module and WordPress SuperCache plugin.

I have experienced those random blank screens with an error 500, just like it is described here:

http://askubuntu.com/questions/141734/incompatibility-between-wp-super-cache-and-php-apc

My current configuration is:

Ubuntu 12.04 32 bits
PHP 5.3.1
Apache 2.2.2
WordPress 3.8
WordPress SuperCache 1.3.1

The issue has been identified by the plugin dev team: https://wordpress.org/plugins/wp-super-cache/faq/

The “white screen of death” or a blank page when you visit your site is almost always caused by a PHP error but it may also be caused by APC. Disable that PHP extension if you have trouble and replace with eAccelerator or Xcache.

In order to disable the APC module:

sudo nano /etc/php5/apache2/conf.d/apc.ini

and comment the line

;extension=apc.so

Then restart apache

sudo service apache2 restart

Advertisements

Yoast SEO problem with the News: Notice: Undefined index: wpseo_sitemaps

I was currently using All-in-one-SEO in my blog, but looking for a solution to send also sitemap to Google News I cam across with Yoast SEO plugin, which is great, but I found this bug when trying to configure 

News SEO for WordPress & Google – Yoast

The problem was:

Notice: Undefined index: wpseo_sitemaps

It breaks your blog installation

This is caused when you have unticked the option to generate the XML sitemap. I had to uninstall the files, so the plugins were no longer recognized and had to reconfigure it.

 

Textmate 2 alpha problem with .yml yaml file

I have experienced problems with .yml files used in localization files for Rails. The files are somehow corrupt, because Textmate 2 is saving the file with weird codes for spaces/tabs. i have not been able to identify exactly why, but I discovered that the problem was being caused by Textmate because I tried with TextWrangler and it got solved.

Bug info:

TextMate version 2.0-alpha.9443.

 

 ~/Desktop% irb
    2.0.0-p247 :001 > require ‘YAML’
     => true 
    2.0.0-p247 :002 > YAML.load_file(‘en.yml’)
    Psych::SyntaxError: (en.yml): found a tab character that violate intendation while scanning a plain scalar at line 134 column 13