Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [500-internal-error]

A 500 internal server error is generic, for when a more specific message is not available.

26
votes
1answer
24k views

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 ...
5
votes
1answer
30k views

Why is a 500 error generated by admin-ajax.php not going into the Apache error log?

I'm getting 500 errors with AJAX on the admin side. However, these errors aren't being logged in the Apache logs so they're rather hard to debug. Is there some way I can find out what they are? ...
4
votes
3answers
1k views

.htaccess and 500 error, extra character added

I am having a weird problem. Every few days I go to my website and get an "Internal Server Error" - Or 500 error. I go into the .htaccess file of the site and notice it's been altered. One character ...
4
votes
4answers
10k views

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,...
3
votes
1answer
1k views

.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 ...
3
votes
1answer
2k views

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' ...
3
votes
1answer
1k views

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 ...
3
votes
1answer
2k views

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 ...
2
votes
1answer
511 views

Using the child theme functions.php to change the customizer.php on parent theme

I'm trying to add a second logo option to the customizer.php of the parent theme using the functions.php from the child theme. But, I'm getting a 500 Internal Server Error. What am I doing wrong? ...
2
votes
2answers
4k views

How to get a Custom 500 Error Page to show?

I created a 500.html file and would like to get this page loaded for my wordpress site. I'm running on XAMP localhost for now, but I've never done this sort of thing before and would like to be able ...
2
votes
1answer
331 views

Error in Validate Field with ACF plugin in Wordpress

I have the following problem when I am validating a field with the Advanced Custom Fields plugin in wordpress. What happens is that the field is validated correctly but the error appears on a new page ...
2
votes
0answers
993 views

get_home_path() returning error 500

I'm using get_home_path() because i need to store a file from a temporary directory to an archive folder (i'm doing this using php's copy() function). The problem is that get_home_path() returns me ...
1
vote
1answer
2k views

500 Internal Server Error when updating htaccess

I'm using a quiz plugin for WP which caused a 504 Gateway Timeout after adding too many questions. The developer told me to update my .htaccess file with the following code: php_value max_input_vars ...
1
vote
1answer
2k views

How to solve 500 Error on WordPress Admin Dashboard due to time-out on getdirsize

problem: Only some blogs did not show the dashboard (but did show all other admin pages). I have left this problem for some time (months) since Googling did not bring up anything relevant and I was ...
1
vote
1answer
697 views

How to stop a 500 error on the WordPress theme folder

Google search console is complaining that my WordPress theme folder returns a 500 error. You can see it here https://www.dailywritingtips.com/wp-content/themes/dailywritingtips/ Curiously many ...
1
vote
1answer
490 views

WooCommerce - Call to undefined function is_woocommerce()

new here and to wordpress plugins development, go easy on me :D Anyway, I am trying to create a new plugin and I am getting a 500 error. I changed WP_DEBUG in config.php to true in order to see what ...
1
vote
1answer
97 views

Unable to access website admin page - 500 error - how to change landing page

Help is required to solve a problem created by a stupid mistake. Our website is hosted by Godaddy and created with Wordpress. It had been set up and running smoothly for long. Recently We wanted to ...
1
vote
2answers
2k views

APC 500 Internal server error [closed]

I have a blog running on a FreeBSD 8.1 system with PHP 5.3.5 and APC 3.1.6. At first everything seemes fine, but after a while (about 18-24 hours) all pages are served blank, and with a status code ...
1
vote
1answer
380 views

Nginx 404, 500 errors and Wordpress

I have defined in my server block: server { error_page 401 403 404 /custom_404.html; location = /custom_404.html { root /var/www/html; internal; } ...
1
vote
2answers
6k views

500 error on front-end but not on admin

I uploaded a brand-new wp install to my host. I am able to access the admin, and all its settings just fine, but I get a 500 internal error on the front-end. I have tried solving this issue by: ...
1
vote
1answer
2k views

500 internal server error

I am facing 500.0 Internal server quite frequently with my website. The error details are given below. HTTP Error 500.0 - Internal Server Error C:\PHP\php-cgi.exe - The FastCGI process exceeded ...
1
vote
0answers
386 views

Google Search Console: Index Coverage Error for /wp-includes/ php files

Recently, without changing anything on my website, Google search console started flagging 80 index coverage errors, shown as "Server error (5xx)". When I go look into it, what it's flagging are php ...
1
vote
0answers
104 views

WordPress 502 | Header Upstream send too big

In the past one of our clients ran in to the problem of having a certain page(while being logged in) return a 502 error (upstream sent too big header while reading response header from upstream) after ...
1
vote
0answers
93 views

How to Fix “Are You Sure You Want to Do This”, while uploading my theme?

While uploading my theme is live server it shows this message "Are You Sure You Want to Do This". My theme contain visual composer and revolution slider,But interesting thing is when I upload the ...
1
vote
1answer
233 views

Take input from form and pass it to function using a wp-plugin

Edit: I have fixed my original issue, please skip to the body for my last remaining issue. I need to make a plugin. That displays an input field to the user, takes that input field data and passess ...
1
vote
0answers
27 views

Unable to edit the “customize” section and the “widget” section is populating unknown code

My WordPress site is experiencing some major issues. I am getting a 500 server error when attempting to change the "customize" side bar, and the "widget" section is acting really weird (populating ...
1
vote
0answers
320 views

Blog page Server error 500 with stick post loop in query.php

Using sticky post on site near about 5000 sticky post i have. In wp-includes/query.php here i have bellow snippet code.on line 3748 to 3760.If i comment this code the blog page work properly. if ...
1
vote
0answers
451 views

Redirect to localhost after installing Multisite on server

After preparing the site on localhost, I uploaded it on server. Everything works fine by adding both lines to define WP_HOME and WP_SITEURL on wp-config.php and replacing the url site in the database ...
1
vote
2answers
44 views

How do I Turn This Into An if statement?

PHP noob here. I've got this query I've written to get the information of all child pages of the page you're currently on: <?php $pages = get_pages('child_of=...
1
vote
1answer
5k views

Wordpress 500 Internal server error when activating custom theme [closed]

Whenever I try to activate my custom built theme on the clients server, the website returns a '500 - Internal Server Error'. The theme is working fine on my local machine, MAMP on my mac. I dont even ...
1
vote
0answers
1k views

Image Upload HTTP 500 Internal server error

While I upload images the images are uploaded in the uploads folder but dont get response rather it get a HTTP error(500 Internal server error). I have tried all the solutions to fix the upload image....
0
votes
4answers
3k views

Can't access wp-admin Internal Server Error 500

I suddenly can't access company.co.za/wp-admin, as it redirects to http://company.co.za/wp-login.php?redirect_to=http%3A%2F%company.co.za%2Fwp-admin%2F&reauth=1 with error 500 What should I do ...
0
votes
3answers
2k views

500 error after update

I had a working (test) blog, and during an update from 3.2.1 to 3.3.1 - something went wrong , I think the update did not finished.. Just before the Update, I have enabled a new theme (all functions ...
0
votes
2answers
334 views

PHP Fatal error: Call to a member function locale() on a non-object

It is all started after I updated some of the plugins in my Wordpress site. Right now I'm getting an Http Internal 500 Error when I try to access WordPress dashboard. Error at my error log file in ...
0
votes
3answers
5k views

Activating Child Theme Breaks Website, Blank Page, Error 500

UPDATE: Solved! (02/06/17) Thanks to everyone who helped give insight into this issue! What Caused the Problem? The root of the problem turned out to be that I copied the whole parent theme folder ...
0
votes
2answers
61 views

Derive child theme from separate theme

Right now, I have a website that is using the Genesis theme. I'm trying to create a child theme, except I don't want to go through all the work of that. At the moment, I've downloaded a normal theme - ...
0
votes
1answer
3k views

Plugin PHP file gives error 500 [closed]

I have created a plugin with a form to send a post request to a custom PHP file, but when I send the form, I get a 500 error. To verify and ascertain that the error is not originating from my code I'...
0
votes
1answer
2k views

500 Internal Server Error after Register dialog, but with successful registration

I get a 500 Internal Server error if I try to register a new user. This user will be created successfully, but I don't want that my users will see the error page and, therefore, think that something ...
0
votes
3answers
6k views

Debug 500 Internal Server Error on WordPress blog

My WordPress blog is hosted on a shared webserver on Hostgator. I've been having 500 Internal Server Errors the last couple of days. I haven't installed any new plugins since the errors started ...
0
votes
3answers
118 views

Wordpress 4.9.8 doesn't save if content has style="

Wordpress 4.9.8 when I save a draft/publish return me an error: Gone The requested resource /wp-admin/post.php is no longer available on this server and there is no forwarding address. Please ...
0
votes
1answer
1k views

HTTP 500 error after plugin install

I use WordPress 4.9.1 with the theme Newsmag. I tried to install some additional plugins, like bbPress and Media Library Folders. These are popular and common plugins, but after installation, I got ...
0
votes
1answer
2k views

Getting HTTP error 500 after migrating a website

I recently migrated my wordpress website and now I am getting http error 500. The debugg log says: PHP Fatal error: Uncaught Error: Call to undefined function update_option() in /home/sweetsixsteen/...
0
votes
3answers
537 views

Website goes down while importing backup (Internal server 500)

I have a WordPress website running on a machine. PHP has allocated memory of 128MB. Since I have two WP sites being host under same hosting it is consuming around 95MB out of 128MB on normal load.. I ...
0
votes
2answers
36 views

How can I reactivate a plugin without access to my dashboard?

I've been working on a wordpress site (geniedrinks.co.uk) using the Jevelin theme. Last night, I deactivated a plugin called WP Bakery Page Builder (js_composer) which immediately resulted in HTTP ...
0
votes
1answer
166 views

Meta Query Array Error 500

I have two CPTs – Match and Player. Each Match post entry contains details relating to a specific match (who played, scorers, etc.). This info is inputted via ACF Post Object fields corresponding with ...
0
votes
1answer
249 views

How come I get internal server error even with try catch for get_the_title in functions.php?

I'm relatively new to PHP & wordpress but not to programming. I wanted to have a title relative to the $post title, so I created the following filter and added it to functions.php: add_filter('...
0
votes
1answer
113 views

wordpress upgrade from 4.2.1 to 4.7.3 500 error

For some reason, WordPress wont let me automatically upgrade, so i am going down the manual root. I have uploaded the contents of wp-admin and wp-includes, backing up the previous folders. When ...
0
votes
1answer
660 views

full blog working fine but post-new.php throwing 404

I'm getting a really weird error. My entire blog works perfectly, except for the post-new.php page (Posts -> Add New). I have debugging turned on via the config file but nothing shows in the debug....
0
votes
1answer
2k views

500 Internal server error after changing php version

I recently uploaded a new wordpress website on a hosting service (with cpanel). I tried to change the php version because the wp theme gave me some errors on mobile but after i changed the php version ...
0
votes
1answer
337 views

Disable Garbage Collection? [closed]

I have a WP site which creates 500's errors for about 2% of Apache requests (mostly bots and crawlers). I'm not able to stack trace most of those requests with 500's neither to PHP or MySQL errors as ...