I decided to upgrade my web server containers to PHP 7 but ran into a problem with WordPress, all articles had no text. The problem seemed to be within the plugin CodeColorer since disabling it resolved the problem
PHP Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /var/www/wp-content/plugins/codecolorer/codecolorer-core.php on line 50 In wp-content/plugins/codecolorer/codecolorer-core.php locate this code block:
/** Search content for code tags and replace it */ function BeforeHighlightCodeBlock($content) { $content = preg_replace('#(\s*)\[cc([^\s\]_]*(?...
My collection– Enjoy.
(This is the same folder I use for randomized backgrounds on my computers)...
Nowhere.dk (the entire domain) was offline today from 09:47 to 10:46 UTC follwing a major outage at Cloudflare.com.
Points to Cloudflare.com for releasing a full incident report....
Nowhere.dk has been moved to nginx (with php5-fpm) and most things seem to be working.
There is one problem though.
It seem that some of the older articles are indexed as /articles/-title-/index.php (which is sort of wrong) and accessing that type of URI results in a blank page.
The problem seem to be that I’ve configured nginx to serve file in this order:
location / { try_files $uri $uri/ @rewrites; } In theory it should then be a matter of defining the right rewrite...
The performance of the site should have increased considerably – but since it meant disabling WordPress HTTPS you will probably see a warning about all elements of the page not being secured; I am working on that....
It might seem as if Nowhere.dk has been out of commission for a while. That is not the case – but a firewall configuration error (on my part) accidently blocked port 80; an error I did not see since I always use SSL.
Sorry,
Allan...
Have yourselves a merry little Christmas....
While my site might not be as important or visited as Google or Facebook, I decided to switch it to SSL.
Some pages will show an “error” in the browser because not all content is encrypted (external images); I hope I’ll get that fixed some day....