• Home
  • About Us
  • Mission
  • Vision
  • Careers
  • Advertise
  • Donate
  • Contact Us
  • Forum
  • Tools ❱
    • Content Readability and SEO Checker
    • Bulk Email Sender (WIP)
    • Philippine Payroll Calculator (WIP)

Daily Tech Stuff

Awesome Tech Knowledge Delivered To You Daily!

  • Latest Trends
  • Automotive
  • Business
  • Gadgets
  • Mobile
  • Reviews
  • Tutorials
  • Video Games
  • Virtual Jobs
You are here: Home / Tutorials / Easy Steps to Fix WordPress HTTP Error 500

Easy Steps to Fix WordPress HTTP Error 500

September 9, 2017 By John Eidref Patawaran 1 Comment

Fixing WordPress HTTP Error 500

Are you experiencing WordPress HTTP Error 500? In case you’ve come across such problem shown above, don’t panic and carefully follow the steps below. In fact, it’s just as easy as 1-2-3! So, let’s proceed below for the actual procedure.

9 Steps to fix WordPress HTTP Error 500

FTP WP Config

Step 1: First of all, Log-in through FileZilla. Indicate your website name (host)– you can use either the IP or the website name itself (e.g. “websitename.com”). Also, don’t forget the username, password, and the port number.

Finding the wp-config.php:

There are two (2) steps you can follow to find where the wp-config.php is located. The instruction is indicated below.

  1. In the remote site tab click “/” and then click the ”var” folder. Once done, locate the “www” and click it also. Finally, click the “html” folder and there you’ll find the wp-config.php.
  2. Here’s an another easier and quicker way: simply type “/var/www/html/” on the remote site tab and press enter – there you have it!

Wp Debug

Step 2: Right-click on the “wp-config.php” file and click “view/edit”. Once finished, locate: “define(‘WP_DEBUG’, false);”. Now, change the false value to true. E.G. define (‘WP_DEBUG’, true); After that, save the file and close the wp-config.php folder.

Editing Theme Code

Step 3: Go to your website. Here, you can see what are the errors and where is the error located. This is commonly caused by the theme itself. Now proceed and locate the theme by typing this on the remote site tab: “/var/www/html/wp-content/themes”.

Theme Functions

Step 4: Click the theme (indicated on the previous picture where the error is situated) and find “functions.php”. Once found, right click and press “view/edit”.

Line 60

Mysql without I

Step 5: As indicated on your website, the error is on line 60. Now browse through and find: if ( $wpdb->get_var(‘SELECT count(*) FROM `’ . $wpdb->prefix . ‘datalist` WHERE `url` = “‘.mysql_escape_string( $_SERVER[‘REQUEST_URI’] ).'”‘) == ‘1’ ). To make it easier for you to find it – press CTRL + G on your keyboard, type 60 and press enter.

Mysql with I

Step 6: Once found, just add a letter “i” in the “mysql_escape_string”. e.g. if ( $wpdb->get_var(‘SELECT count(*) FROM `’ . $wpdb->prefix . ‘datalist` WHERE `url` = “‘.mysqli_escape_string( $_SERVER[‘REQUEST_URI’] ).'”‘) == ‘1’ ). Now, save and close the folder.

FTP Security Purposes

Step 7: You’ll see this message after saving and closing the functions.php folder. So, Just click Yes and proceed to the next step below.

Change True or False

Step 8: Go back to the wp-config.php folder and just like the previous step, find: “define (‘WP_DEBUG’, true);”. But this time, change the true value to false. E.G. “define(‘WP_DEBUG’, false);”. In addition, don’t forget this one to avoid the hidden errors from showing up on your website.

Deprecated Line 29

Step 9: Here’s what you’ll see once you forget to follow and do the Step 8. Your website is back – that’s great – but the hidden errors make it look unsafe and corrupted. So, as much as possible, don’t forget the Step 8 to achieve the best result!

And there you have it, folks – congrats! Now, you’ve successfully fixed the WordPress HTTP Error 500 by following only 9 simple steps.

John Eidref Patawaran
Post Views: 3,981

Filed Under: Tutorials Tagged With: Database, Error 500, HTML, MySQL, MySQLi, PHP, Web Developer, Web Tutorials, Wordpress

« Product Review: Nextbook Flexx 9 | Facebook Fined with €1.2m by the Spanish Data Watchdogs »

Comments

  1. Jomari Reyes says

    September 11, 2017 at 9:02 am

    This is an awesome way. This is the easiest, i recommend it!

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Lazada Philippines

Subscribe To Our Newsletter

Receive free downloads, latest tech news and updates. Subscribe Now!

Our Recent Posts

TOP 5 best and worst hero in Mobile Legends

July 9, 2019 By Daily Tech Stuff Leave a Comment

Don’t Miss This: The Sims 4 Download is Free for a Week!

May 24, 2019 By Daily Tech Stuff Leave a Comment

Coding Careers PH

Interesting Facts About Web Developers

December 20, 2018 By Levita Bernardo Leave a Comment

Our Popular Posts

  • Product Review: Ace Slim LED TV 32″ (73,264)
  • Product Review: Platinum Soundbar PTSB 80W (51,831)
  • TOP 5 best and worst hero in Mobile Legends (19,557)
  • Product Review: Platinum KS-5 Junior Lite (17,456)
  • Change Default SSID PLDTmyDSL Wifi Router ZyXEL P-660HN-T1A (14,488)

SITE LINKS

  • Home
  • About Us
  • Mission
  • Vision
  • Careers
  • Advertise
  • Donate
  • Contact Us

CATEGORIES

  • Automotive
  • Business
  • Gadgets
  • Mobile
  • Reviews
  • Tutorials
  • Video Games
  • Virtual Jobs

Tag Cloud

Android Andy Rubin Apple Automotive Best Buy Speakers Cheap Soundbar Freelancer Gaming Consoles Gaming Equipments Google Car Homebased Jobs PLDT Fiber Social Media News Video Games Virtual Assistants Virtual Jobs

FOLLOW US

Copyright © 2023 · Daily Tech Stuff Log in
Privacy Policy | Terms of Service</small