Getting a 500 internal server error ONLY on wp-admin/options-permalink.php

I have access to the admin panel, and everything works fine. I can click settings->reading and change anything I want to. But if I click settings->permalinks I get a 500 internal server error. Here’s what I’ve tried: I deleted the .htaccess file – nothing changed. I edited the .htaccess (because I am migrating this site … Read more

500 Internal Server Error after attempting to switch from subdirectory to addon domain

directory site that was hosted at https://example.com/mysubdir Now, I purchased a new domain and added it to my shared hosting account as an add-on domain. To change the domain settings, I did the following: Pointed the domain towards the sub-directory (successfully) Got into the database and updated site URL and site Home to the new … Read more

Calling a wp_query $posts causes a 500 error

I had a very basic wp_query, below: // WP_Query arguments $args = array ( ‘post_type’ => array( ‘post’ ), ‘post_status’ => array( ‘draft’ ), ‘posts_per_page’ => ’15’, ); // The Query $posts = new WP_Query( $args ); This caused a 500 error. When I changed $posts back to the more traditional $query, everything was fine. … Read more

.htaccess file redirecting to parent directory

I am creating separate WordPress installations in several subdirectories of one domain. At first I was getting a 500 Server Internal error.. so I created the .htaccess file and uploaded it to each WordPress installation root. .HTACCESS file: # BEGIN WordPress RewriteEngine On RewriteBase /zingery/wordpress/ RewriteRule . /zingery/wordpress/index.php [L] # add a trailing slash to … Read more

What might cause a POST to wp-admin/async-upload.php to return JSON >and< HTML?

In the media tab, upload of a valid image file results in display of “HTTP error”. Reload of the media tab shows that the image did upload and resize, though. Browser debug tools show that on upload, browser is making a POST to wp-admin/async-upload.php. The server responds with a 500 error. The body of the … Read more

How to create custom 401, 403 and 500 error pages?

When a 404 error is encountered, a 404.php template file can be used to render a custom error message. This is documented in the Template Hierarchy article. My aim is to create custom error pages for 401, 403 and 500 errors. I’ve tried creating 401.php, 403.php and 500.php files in my theme’s directory but this … Read more