Setting 404 page in Nginx

Remove the ‘fastcgi_intercept_errors’ argument from you configuration. It’s unnecessary since ‘error_page’ declares 404 errors, which should be handled by index.php, which will trigger PHP-FPM to handle it, and WordPress to present your theme’s 404 page. It seems counter-intuitive, but ‘fastcgi_intercept_errors’ is actually causing PHP not to handle the error page.

Customize WordPress>Error Page

You’re probably talking about theming wp_die(), which is the function that produces those grey error pages with a white box of text in them. For a plugin solution, you could try this plugin, which says it does what you want. Not sure about version support though–it says it only works up to 3.1.4. For a … Read more

Getting the warning: Missing argument 2 for manage_posts_custom_column()?

Change line 93 from add_filter(‘manage_posts_custom_column’, ‘manage_posts_custom_column’); to add_filter(‘manage_posts_custom_column’, ‘manage_posts_custom_column’, 10, 2); The fourth argument specifies how many arguments the function manage_posts_custom_column accepts (one by default). Codex: add_filter()

Could not create directory /wp-content/upgrade/

First do not use 777, change it back to 755. Second you need to add the proper group permissions most likely to the same that Apache is running under. To find that out try: ps aux | grep apache You will see the Apache user group on the left. Now change your WordPress folder to … Read more

Unable to locate WordPress Content directory (wp-content)

I had the same issue, this is usually a permission of writing in specific folder, in my case I had to change the owner of the uploads/ directory, here is what I did in wp-content directory: sudo chown -R daemon uploads/ where the user daemon is the owner of the process httpd. Hope this helps.

Loading external page template and enqueue script from plugin causes 403 forbidden error

Your CODE is fine, the reason you are getting 403 error is because $_SERVER[‘DOCUMENT_ROOT’] returns absolute PATH to your web root, not URL. JavaScript needs to be added as URL. So, you may use Load_Template_Scripts_wpa83855 function in your plugin and then use: wp_enqueue_script( ‘wtd’, plugins_url( ‘/js/wtd.js’ , __FILE__ ) ); CODE to add JavaScript. Note: … Read more

Undefined offset: 0 in > […] /wp-includes/capabilities.php on line 1067

You have found a bug in Genesis. Your Xdebug stack trace fingers the culprit as the genesis_save_custom_fields() function which calls current_user_can() with a singular capability (edit_post and edit_page) which also requires an additional argument, in this case the post ID which is missing. current_user_can() calls has_cap() which calls map_meta_cap() which does a switch statement on … Read more