Fatal error in wp-admin/customize.php after fresh install due to null $wp_customize

It seems I got some faulty nginx configuration from an article on how to configure WordPress in a subdirectory. Config Before location @wp { rewrite ^/blog(.*) /blog/index.php?q=$1; } location ^~ /blog { root /home/user; index index.php index.html index.htm; try_files $uri $uri/ @wp; location ~ \.php$ { include fastcgi_params; fastcgi_index index.php; fastcgi_intercept_errors on; # Deleted this … Read more

Console error, even if everything is working?

The colour picker is working fine because it’s a separate script being enqueued as a dependency of custom-script-handle. So even if custom-script-handle isn’t loading because the URL is wrong the colour picker script will still load. If you don’t enqueue custom-script-handle then the colour picker won’t work because the script is being enqueued at all. … Read more

PHP Fatal error: Call to a member function get() on null in /wp-includes/cache.php on line 123

That line 123 references the WordPress object cache, see https://github.com/WordPress/wordpress-develop/blob/7c38750b162c784d92f54d9a36044c0f5318fe24/src/wp-includes/cache.php#L123 Sounds like you have an external object cache (Memcached, Redis, etc.) that isn’t set up properly or a plugin that wrongly modifies WordPress’ internal object cache (which is basically a no-op). This could be configured by your host too. Try disabling all plugins to see … Read more

Nginx 404, 500 errors and WordPress

Warning Before you get started, I highly recommend you to create a child theme to safely modify the current theme you’re using. That way, if you need to update your theme, your changes won’t be overwritten. Modifying your current error page If your theme already has a custom error page, look for a 404.php file … Read more