Questions tagged [500-internal-error]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
19 views

Calling a PHP function with Ajax when the user clicks a button but I get Admin Ajax, error 400 bad request

To insert date in a db, I use Ajax to call a function when a user clicks a button, but in the console log, I always get /wp-admin/admin-ajax.php:1 Failed to load resource: the server responded with a ...
Jean-François Moulin's user avatar
0 votes
1 answer
48 views

Wordpress Insert line in DB when clicking a button

when clicking buttonHdp, I wold like to launch the php code in order to insert a line in DB. Script <script> document.addEventListener('DOMContentLoaded', function() { jQuery(function($){ ...
Jean-François Moulin's user avatar
0 votes
0 answers
17 views

How do I see logs of critical errors of specific pages without enabling public debug for everyone?

I have a site that works well in production, say with N pages currenly being used by users. I am doing some PHP scripting in one specific page and I want to debug some data. Usually in projects not ...
Xavi Montero's user avatar
0 votes
0 answers
44 views

I can't change version of PHP

I recently upgraded the PHP version on my website from 7.4 to 8.0, but now I'm encountering an error 500. To troubleshoot the issue, I performed the following steps: Disabled all plugins: I ...
LuchiniChiara's user avatar
0 votes
1 answer
23 views

Using a custom widget to add data from a custom post type into the sidebar

A while ago I found a theme called “Games Zone”, by Themefuse, that used a custom widget to add information from a custom post type into the sidebar of a post. I spent some time tearing down the code ...
bstphillips's user avatar
0 votes
0 answers
14 views

My websit dosent worke http errors 500

Warning: Use of undefined constant DIR - assumed 'DIR' (this will throw an Error in a future version of PHP) in /home/ki279095/public_html/index.php on line 4 Warning: require(DIR/wp-blog-header.php): ...
mohammed diab's user avatar
0 votes
0 answers
189 views

Internal server error when enabling Multisite in WordPress

Currently I am working on WordPress and I have added some line such as define('WP_ALLOW_MULTISITE',true); and after refreshing the page, this content shown on display: The server encountered an ...
Habibullah's user avatar
0 votes
0 answers
833 views

Unable to log in: "Cannot serve directory www/wordpress/wp-includes/ No matching DirectoryIndex"

I was trying to log into my Wordpress website. The main website is fine, but when I access http://[domain]/admin, I get: Firefox - a blank website Brave - In-browser error message "[domain] is ...
ric.row's user avatar
  • 101
0 votes
0 answers
30 views

500 error for regular users, not for admin

Not sure what's going on here. Some of my pages (eg https://beatthatflight.com.au/) are getting 500 errors. However other pages (https://beatthatflight.com.au/index.php/2022/12/19/56-fast-free-easy-...
Mark Mayo's user avatar
  • 105
0 votes
0 answers
50 views

Can php warnings cause an Internal Server Error?

A client's WordPress site crashes for a few minutes once to twice a day. When I review the error log, there are a number of PHP warnings (e.g. undefined variable, undefined array key, etc.) but no ...
Joseph Yang's user avatar
0 votes
1 answer
44 views

Console errors after Wordpress Update 6.1

I am using Soledad theme with Woocommerce and after updating to version 6.1 I get these errors. Failed to load resource: the server responded with a status of 500 () post.php:1 Failed to load ...
in2d's user avatar
  • 101
1 vote
0 answers
45 views

Jquery post responses 500 error after some time and lastly an 503 error

I'm currently developing a wordpress plugin that fetches product attributes from 3rd API and creates WooCommerce products using these attrs. I wrote two different jquery post function nestedly. The ...
Artificial Inheritance's user avatar
0 votes
0 answers
2k views

admin-ajax.php error 500

I keep looking my error , but I can't find it. My php and js script works fine 5 month ago when I let them to dedicate myself to design Normally this ajax query must be launch from my plugin ( and ...
imagIne's user avatar
  • 41
0 votes
0 answers
151 views

admin-ajax.php calls fail if referrer is sent with 500

calling admin-ajax.php via jquery ajax calls were failing from my site but postman calls to the same url were successfull. After some looking at headers it seems that the referer being set is the ...
lathomas64's user avatar
0 votes
0 answers
44 views

website returning random 504 and 502 errors

I am getting 502/ 504 errors on the website randomly, and have tried all the methods to debug the issue but unable to fix it When getting 5xx errors, I tried renaming the plugins folder to check if ...
Yash Bandikatla's user avatar
1 vote
2 answers
148 views

Cannot understand WordPress error message

The error I am getting is: Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'wptexturize' not found or invalid function name in /home/ifd6vop3yes7/public_html/...
Jeff McBride's user avatar
0 votes
1 answer
33 views

General 500 error from the root

I have inherited a wordpress site that mysteriously broke the dev in charge left and I'm helping to piece together what's going wrong. I told my PM that I have experience as a wordpress user and he's ...
Thom's user avatar
  • 157
0 votes
1 answer
540 views

Strange behavior: random HTTP error 500 fixed by visiting Permalinks settings page (htaccess issue with language code)

I’ve got a pretty weird behavior on my site that I’d like to resolve. From time to time (no recognized pattern), my site shows a 500 error, on the front pages or on some admin pages. When this 500 ...
claire_'s user avatar
  • 55
0 votes
1 answer
9k views

/wp-admin/admin-ajax.php Error 500

I have a single Wordpress 4.9.16 website that is throwing Error 500s when taking many actions in the admin interface. When I try to do things like add a new category, nothing happens in the front end ...
Benjamin D. Bloom's user avatar
0 votes
1 answer
974 views

Wordpress Core is causing 500 internal server error

We are facing this error: PHP Fatal error: Uncaught Error: Call to undefined function get_locale() in /var/www/html/wp-includes/l10n.php:137 Stack trace: #0 /var/www/html/wp-includes/l10n.php(828): ...
Niklas's user avatar
  • 101
0 votes
2 answers
1k views

There has been a critical error on your website - won't fix no matter what

So I've got the dreaded error too it seems. Apparently it's a very common issue but I can't really seem to get a hang on the fix. One of the plugins my theme uses is causing the error as per the log I ...
YaddyVirus's user avatar
1 vote
1 answer
172 views

How to show the error causing the 'There has been a critical error on your website'?

I'm getting the error: 'There has been a critical error on your website. Learn more about debugging in WordPress.'. How do I display which error I'm getting in the frontend? I have these three lines ...
Zeth's user avatar
  • 828
-1 votes
1 answer
78 views

500 error after upgrading from 5.0 to 5.4 and adding empty functions.php

I've finally managed to upgrade a WP site from v5.0 to v5.4. The only issue left is when I create an empty functions.php file I get 500 error. Does someone have an idea why is that? Thanks. Update: My ...
haxpanel's user avatar
  • 157
2 votes
0 answers
259 views

wp_generate_attachment_metadata generates 503 Service Unavailable or 500 timeout errors

I've been struggling for a week with this... I was trying to upload an image with media_handle_upload but it never worked (it always timed out), so I decided to break it down to see where it failed ...
marcnyc's user avatar
  • 121
0 votes
2 answers
48 views

Unable to access my page or WP Admin

I've been trying to get into my page for 3 days. I keep getting this message... This page isn’t workingstaunchtopteam.com is currently unable to handle this request. HTTP ERROR 500 Can anyone please ...
Scott Alexander Buchanan's user avatar
0 votes
1 answer
39 views

HTTP 500 error when updating a page

We got a Wordpress site, designed by an external contractor a couple years ago. https://playbacktheatre.com.au We recently (Dec 2019) changed hosting providers in search of a better service. After ...
Thanassis's user avatar
  • 101
0 votes
1 answer
929 views

Can't upload Images to Wordpress - Error 500 Response

I'm having a really frustrating issue whereby I can't seem to upload any images to Wordpress in a post content or via the browser uploader, multi-file uploader. When uploading a single image directly ...
al.tron's user avatar
  • 139
1 vote
1 answer
425 views

Error Logs to Diagnose Error 500 in LAMP

My Wordpress site is installed in a LAMP stack (Linux, Apache, MySQL, PHP). Suppose I encounter HTTP error 500. What logs might help diagnose the issue? How can the logs be enabled? What are the ...
Jacob Quisenberry's user avatar
-1 votes
1 answer
192 views

Internal Server Error upon installation

I'm developping a website using wordpress, i got domain name, i accessed the cpanel, and I installed Wordpress using Softaculous. The problem is when the installation is complete, I try to open the ...
Yassine Bouzaiane's user avatar
1 vote
1 answer
996 views

async_upload.php 500 Error when Uploading larger files with slow internet connection and latency

my page runs on a local corporate network on a Windows 2016 server running IIS 10. PHP 7.1 WordPress 5.3 The page is used as a video platform. Videos up to 2GB can be uploaded. From our locations on ...
melvishb's user avatar
1 vote
0 answers
46 views

GET parent theme throws 500 error in console, site works fine

I have a storefront site with a storefront-child theme. Everything works fine except I have an annoying 500 in the console. GET https://fubar.net/wp-content/themes/storefront/?ver=5.3 net::...
Kirk Ross's user avatar
  • 111
0 votes
1 answer
262 views

500 error for all pages and post after move localhost to server

today i move to the folder local to server after that i got 500 error for pages and post but in home page everything showing fine but other linkes are not working what i did? add apache2 conf and ...
GHOST's user avatar
  • 215
0 votes
0 answers
41 views

How to increase the number posts that displays by a hierarchical taxonomy? (HTTP ERROR 500)

I got HTTP ERROR 500 when I tried to get all the posts from a hierarchical taxonomy which is category. I have a page and in this page I want to display all the posts. This page and those posts have ...
Maher Aldous's user avatar
0 votes
1 answer
33 views

500 Error, Get custom field and returning it

I am using this code but getting a 500 error on the IF part. Not sure why this happens. $instac = get_the_author_meta( 'au-instagram', $current_author->ID ); if (!empty($instac)) { return '&...
JoaMika's user avatar
  • 668
3 votes
1 answer
388 views

WordPress Errors? Update Failed! data.min.js

So I am getting this weird error anytime I try to edit or save a new page/post. I activated a default theme and disabled the only 2 plugins I had activated but I am still getting the error. I don't ...
Jon's user avatar
  • 351
0 votes
1 answer
1k views

Unable to update plug-ins - Undefined index a:1:{s:3:"ssl";b:1;} in class-requests.php on line 213

After our hosting provider moved our site to a new Windows 2016 server I have been struggling with an intermittent error: PHP Notice: Undefined index: a:1:{s:3:"ssl";b:1;} in E:\WebContent\site-...
Mike Welch's user avatar
0 votes
1 answer
93 views

Removed index.php now all pages with Internal Server Error

I'm coding a theme from an HTML template. Initially, I just removed the index.php with the .htaccess as the answer shows. Now I have "Internal Server Error" even on the homepage, that was working ...
FabioB's user avatar
  • 3
0 votes
0 answers
45 views

HTTP error 500 in a small WordPress site

I'm having a 500 error on my site and I tried to solve it doing the following: Deleted the .htaccess file. Deactivated all the plugins Uploaded a fresh wp-admin/ and wp-includes/ folder. None of ...
Draws Ren Gundam's user avatar
0 votes
1 answer
754 views

How to require files in a custom endpoint

I am working on a custom endpoint to handle ajax media uploads with media_handle_upload(). I have created a custom endpoint with a route that is tested and works, however when I try require the ...
Steve Rodgers's user avatar
0 votes
1 answer
107 views

Encountered Internal Server Error No 500 with four possibilities

Four possibilities 1. .htaccess file was misconfigured 2. Permissions on the file requested was misconfigured 3.PHP or CGI code was misconfigured in the file that is requested on site. 4.Site ...
Aarthi Athi's user avatar
0 votes
0 answers
1k views

call to jquery ajax failing with 500 error when passing extra data field

I have the following jQuery for doing an Ajax call and it works fine: jQuery(document).ready( function($){ $( "#mystatus" ).change(runMyStatus); function runMyStatus() { var mystatus = this.value;...
Jonathan Eiseman's user avatar
0 votes
1 answer
313 views

HTTP ERROR 500 after installing child-theme [Wordpress] [closed]

I just created and activated a child theme and now I'm getting the HTTP ERROR 500. I've deleted the child theme through FTP and still getting the error. Also tried changing wp-content/themes to wp-...
Tim van Oost's user avatar
0 votes
1 answer
24 views

Multisite Issue on Subdomain's article pages

I created an article under the subdomain that is in my multisite. Let's call the subdomain ztak.mydomain.com When I go to the main page of ztak.mydomain.com, the page shows appropriately. When I ...
ztak's user avatar
  • 1
2 votes
2 answers
4k 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 ...
Nic Higson's user avatar
0 votes
2 answers
13k views

wp-login not found - All usual solutions not working

A new client of me can't login to his old(er) Wordpress website: wp-login gives a 404 error and wp-admin gives a 500 error. Here are the links (removed) I came across this issue before, but this ...
Kevin Verhoeven's user avatar
0 votes
1 answer
2k views

How to fix wp-login.php gives error 500 after migration?

I have migrated a word press site to a self hosted linux server. My front page and all other pages load however images are still pointing to my old server. My wp-login.php page also gives an error 500....
blu's user avatar
  • 103
2 votes
6 answers
39k 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 ...
Bassie's user avatar
  • 133
-1 votes
2 answers
4k views

Notice: Use of undefined constant REQUEST_URI - assumed 'REQUEST_URI' in ....functions.php on line 73

When I tried to edit my menu, it appeared HTTP ERROR 500 Then I set define('WP_DEBUG', true); in wp-config.php Once I try to save the menu, the following error appears: Notice: Use of ...
p oneland's user avatar
0 votes
1 answer
175 views

Shortcode attributes causes 500 error after updating the page

I have created a shortcode that allows me to pass an attribute like so [product_swatch swatchtype="swatch"]. It works fine on the front end, but every time I update the page it leads to a 500 error. ...
Dominic Neo's user avatar
0 votes
0 answers
3k views

Failed to load resource: the server responded with a status of 500 (Internal Server Error)

I'm getting this 500 error in the browser: HTTP500: SERVER ERROR - The server encountered an unexpected condition that prevented it from fulfilling the request. (XHR)POST - https://www.example....
user1448031's user avatar