Fix fv-code-highlighter flaw

wordpress-logoWhen you migrate your WordPress installation somethings may go wrong as the case of the fv-code-highlighter plugin. The error:

Warning: unlink(/boot) [function.unlink]: Permission denied in /home/gpost1/public_html/wp-content/plugins/fv-code-highlighter/classes/Cache.php on line 101

Warning: unlink(/.autorelabel) [function.unlink]: Permission denied in /home/gpost1/public_html/wp-content/plugins/fv-code-highlighter/classes/Cache.php on line 101

Warning: unlink(/home) [function.unlink]: Permission denied in /home/gpost1/public_html/wp-content/plugins/fv-code-highlighter/classes/Cache.php on line 101

Warning: unlink(/.rnd) [function.unlink]: Permission denied in /home/gpost1/public_html/wp-content/plugins/fv-code-highlighter/classes/Cache.php on line 101

Warning: unlink(/selinux) [function.unlink]: Permission denied in /home/gpost1/public_html/wp-content/plugins/fv-code-highlighter/classes/Cache.php on line 101

Warning: unlink(/lib64) [function.unlink]: Permission denied in /home/gpost1/public_html/wp-content/plugins/fv-code-highlighter/classes/Cache.php on line 101

Warning: unlink(/mnt) [function.unlink]: Permission denied in /home/gpost1/public_html/wp-content/plugins/fv-code-highlighter/classes/Cache.php on line 101

Warning: unlink(/opt) [function.unlink]: Permission denied in /home/gpost1/public_html/wp-content/plugins/fv-code-highlighter/classes/Cache.php on line 101

Warning: unlink(/srv) [function.unlink]: Permission denied in /home/gpost1/public_html/wp-content/plugins/fv-code-highlighter/classes/Cache.php on line 101

Warning: unlink(/inst_update.php?group_id=939&num=406&step=2) [function.unlink]: Permission denied in /home/gpost1/public_html/wp-content/plugins/fv-code-highlighter/classes/Cache.php on line 101

Warning: unlink(/etc) [function.unlink]: Permission denied in /home/gpost1/public_html/wp-content/plugins/fv-code-highlighter/classes/Cache.php on line 101

Warning: unlink(/usr) [function.unlink]: Permission denied in /home/gpost1/public_html/wp-content/plugins/fv-code-highlighter/classes/Cache.php on line 101

Warning: unlink(/dev) [function.unlink]: Permission denied in /home/gpost1/public_html/wp-content/plugins/fv-code-highlighter/classes/Cache.php on line 101

Warning: unlink(/inst_update.php?group_id=939&num=406&step=4) [function.unlink]: Permission denied in /home/gpost1/public_html/wp-content/plugins/fv-code-highlighter/classes/Cache.php on line 101

/public_html/wordpress/wp-content/plugins/fv-code-highlighter/classes/Cache.php

The fix:

Edit the file wordpress/wp-content/plugins/fv-code-highlighter/classes/Cache.php and add something like:

$this->setCacheDir( realpath($cacheDir) . ‘/home/linuxpro/public_html/wordpress/wp-content/plugins/fv-code-highlighter/cache’ );

Save,  close, refresh and you are good to go. Good Luck.

Leave a Comment