How to Fix the Syntax Error in WordPress

WPBeginner - WordPress Tutorials · Beginner ·🛠️ AI Tools & Apps ·8y ago

Key Takeaways

Fixes syntax errors in WordPress using FTP and code editing

Full Transcript

do you need to fix the syntax error on your WordPress website well keep watching because I'll show you how to fix the error and get your site up and running quickly this is the same technique several of our readers have used to get their sites back online and by the end of the video you'll know exactly what to do if you ever run into the syntax error again so if you're ready let's get started a lot of people will get this error if they're editing their theme in the editor area like you see or if you've updated a plugin you need to know where the ISS sh started for this video I'm going to break my site so that you can see what I'm talking about as soon as I add that in you see now we have an error on our site and we need to figure out how to fix it once you get the error you can't go back into the admin area to fix it so you have to learn how to do it a different way and what we need to use is an FTP client I am going to use filezilla but there are several that you can use to choose from the FTP client allow allows me to access my website from my Hosting account so you'll need to know the information from your Hosting account on how to access your website with the password and the username that they've provided with you once you get the FTP account established and you've connected to your website then you'll want to go to the area where the problem started if you're not sure where the error is located just click on your error page and it will show you the folder and the file that the error is happening on so you can open that up in your FTP file so now I know I need to go into my 2016 theme and my functions PHP to fix the error I'll scroll down to my 2016 and need to download my functions.php page locally and then I can edit it locally and then for this one I just need to scroll all the way down to the end of the functions page to remove the bad line of code we'll save that now we need to upload it back up to our server and now when we go to our admin page you see that it's available again for you so that's a quick and easy way to get your site back up and running after you run into a syntax error on your WordPress website did you learn something from today's video if so subscribe to our YouTube channel and we'll send more helpful tips to help you manage your WordPress website and thanks for watching

Original Description

A common and seemingly frightening error that users can run into is the Syntax error. This error can prevent you from making any changes on your site and prevent it from even being visible but we're here to help you resolve this issue without too much hassle. We recommend using a FTP for this tutorial, if you do not know what a FTP program is take a look at our tutorial below: http://www.wpbeginner.com/glossary/ftp Text version of this tutorial: http://www.wpbeginner.com/wp-tutorials/how-to-fix-the-syntax-error-in-wordpress If you liked this video, then please Like and consider subscribing to our channel for more WordPress videos. Check us out on Facebook: https://www.facebook.com/wpbeginner Follow us on Twitter: http://twitter.com/wpbeginner Checkout our website for more WordPress Tutorials http://www.wpbeginner.com/ Summary of this tutorial: With this error you will be locked out of your admin area so we would recommend using a FTP to log in to your site's files. Read the error it is giving you and locate the file the error is pointing to such as the wp-content themes folder and open the file that is causing the error. If it is code that you have added you will want to remove the new code, save the file and then reupload it. That should allow you to log back in to your WordPress website.
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from WPBeginner - WordPress Tutorials · WPBeginner - WordPress Tutorials · 0 of 60

← Previous Next →
1 How to Add Google Search in a WordPress Site
How to Add Google Search in a WordPress Site
WPBeginner - WordPress Tutorials
2 How to Display Simple Notices in WordPress
How to Display Simple Notices in WordPress
WPBeginner - WordPress Tutorials
3 How to Bulk Move Posts to Categories and Tags in WordPress
How to Bulk Move Posts to Categories and Tags in WordPress
WPBeginner - WordPress Tutorials
4 How to Create A Question and Answers Site in WordPress
How to Create A Question and Answers Site in WordPress
WPBeginner - WordPress Tutorials
5 How to Add a Subtitle to Posts and Pages in WordPress
How to Add a Subtitle to Posts and Pages in WordPress
WPBeginner - WordPress Tutorials
6 How to Add a Caption to Images in WordPress
How to Add a Caption to Images in WordPress
WPBeginner - WordPress Tutorials
7 How to Show Latest Videos From a YouTube Channel in WordPress
How to Show Latest Videos From a YouTube Channel in WordPress
WPBeginner - WordPress Tutorials
8 How to Check Grammar and Spelling Mistakes in WordPress
How to Check Grammar and Spelling Mistakes in WordPress
WPBeginner - WordPress Tutorials
9 How to Send A Custom Welcome Email to New Users in WordPress
How to Send A Custom Welcome Email to New Users in WordPress
WPBeginner - WordPress Tutorials
10 How to Add a Custom Comment Form Title in WordPress
How to Add a Custom Comment Form Title in WordPress
WPBeginner - WordPress Tutorials
11 How to Add a News Ticker in WordPress
How to Add a News Ticker in WordPress
WPBeginner - WordPress Tutorials
12 How to Add a Full Screen Background Image in WordPress
How to Add a Full Screen Background Image in WordPress
WPBeginner - WordPress Tutorials
13 How to Fix Image Upload Issue in WordPress
How to Fix Image Upload Issue in WordPress
WPBeginner - WordPress Tutorials
14 How to Show and Hide Text in WordPress Posts with the Toggle Effect
How to Show and Hide Text in WordPress Posts with the Toggle Effect
WPBeginner - WordPress Tutorials
15 How to Show Page Templates in WordPress Dashboard
How to Show Page Templates in WordPress Dashboard
WPBeginner - WordPress Tutorials
16 How to Restrict WordPress Site Access by IP or Logged In Users
How to Restrict WordPress Site Access by IP or Logged In Users
WPBeginner - WordPress Tutorials
17 How to Add Google Translate in WordPress
How to Add Google Translate in WordPress
WPBeginner - WordPress Tutorials
18 How to Add Custom Buttons with Post Editor Buttons in WordPress
How to Add Custom Buttons with Post Editor Buttons in WordPress
WPBeginner - WordPress Tutorials
19 How to Fix Featured Images Appearing Twice in WordPress Posts
How to Fix Featured Images Appearing Twice in WordPress Posts
WPBeginner - WordPress Tutorials
20 How to Add Tables in WordPress Posts and Pages No HTML Required
How to Add Tables in WordPress Posts and Pages No HTML Required
WPBeginner - WordPress Tutorials
21 How to Change the WordPress Database Prefix to Improve Security
How to Change the WordPress Database Prefix to Improve Security
WPBeginner - WordPress Tutorials
22 How to Turn Off Related YouTube Videos in WordPress
How to Turn Off Related YouTube Videos in WordPress
WPBeginner - WordPress Tutorials
23 How to Receive WordPress Emails from Localhost
How to Receive WordPress Emails from Localhost
WPBeginner - WordPress Tutorials
24 How to Split WordPress Posts into Multiple Pages
How to Split WordPress Posts into Multiple Pages
WPBeginner - WordPress Tutorials
25 How to Update URLs When Moving Your WordPress Site
How to Update URLs When Moving Your WordPress Site
WPBeginner - WordPress Tutorials
26 How to Crop, Rotate, Scale, and Flip Images in WordPress
How to Crop, Rotate, Scale, and Flip Images in WordPress
WPBeginner - WordPress Tutorials
27 Image Alt Text vs Image Title in WordPress
Image Alt Text vs Image Title in WordPress
WPBeginner - WordPress Tutorials
28 How to Add Staff Member Profiles in WordPress with Staffer
How to Add Staff Member Profiles in WordPress with Staffer
WPBeginner - WordPress Tutorials
29 How to Add Custom Fields to Comments Form in WordPress
How to Add Custom Fields to Comments Form in WordPress
WPBeginner - WordPress Tutorials
30 How to Add New Users and Authors to Your WordPress Blog
How to Add New Users and Authors to Your WordPress Blog
WPBeginner - WordPress Tutorials
31 How to Fix WordPress Website Not Updating Right Away
How to Fix WordPress Website Not Updating Right Away
WPBeginner - WordPress Tutorials
32 How to Show Live Preview of Links in WordPress
How to Show Live Preview of Links in WordPress
WPBeginner - WordPress Tutorials
33 How to Add Image Icons With Navigation Menus in WordPress
How to Add Image Icons With Navigation Menus in WordPress
WPBeginner - WordPress Tutorials
34 How to Use Multiple Themes for Pages in WordPress
How to Use Multiple Themes for Pages in WordPress
WPBeginner - WordPress Tutorials
35 How to Fix Missing Admin Bar Issue in WordPress
How to Fix Missing Admin Bar Issue in WordPress
WPBeginner - WordPress Tutorials
36 How to Add Tabbed Content in WordPress Posts and Pages
How to Add Tabbed Content in WordPress Posts and Pages
WPBeginner - WordPress Tutorials
37 How to Create Custom Taxonomies in WordPress
How to Create Custom Taxonomies in WordPress
WPBeginner - WordPress Tutorials
38 How to Display a List of Child Pages For a Parent Page in WordPress
How to Display a List of Child Pages For a Parent Page in WordPress
WPBeginner - WordPress Tutorials
39 How to Fix Error Too Many Redirects Issue in WordPress
How to Fix Error Too Many Redirects Issue in WordPress
WPBeginner - WordPress Tutorials
40 What is the Difference Between Posts vs Pages in WordPress
What is the Difference Between Posts vs Pages in WordPress
WPBeginner - WordPress Tutorials
41 How to Allow User Log In with Email in WordPress
How to Allow User Log In with Email in WordPress
WPBeginner - WordPress Tutorials
42 How to Display WordPress Widgets in Columns
How to Display WordPress Widgets in Columns
WPBeginner - WordPress Tutorials
43 How to Easily Replace Image and Media Files in WordPress
How to Easily Replace Image and Media Files in WordPress
WPBeginner - WordPress Tutorials
44 How to Add Featured Video Thumbnails in WordPress
How to Add Featured Video Thumbnails in WordPress
WPBeginner - WordPress Tutorials
45 How to Create a Photo Gallery with Albums in WordPress
How to Create a Photo Gallery with Albums in WordPress
WPBeginner - WordPress Tutorials
46 How to Easily Add Lazy Loading for Videos in WordPress
How to Easily Add Lazy Loading for Videos in WordPress
WPBeginner - WordPress Tutorials
47 How to Add an Audio Music Player Widget in WordPress
How to Add an Audio Music Player Widget in WordPress
WPBeginner - WordPress Tutorials
48 How to Create a Wiki Knowledge Base Using WordPress
How to Create a Wiki Knowledge Base Using WordPress
WPBeginner - WordPress Tutorials
49 Adding a Post Rating System in WordPress with WP PostRatings
Adding a Post Rating System in WordPress with WP PostRatings
WPBeginner - WordPress Tutorials
50 How to Clean Up Your WordPress Database for Improved Performance
How to Clean Up Your WordPress Database for Improved Performance
WPBeginner - WordPress Tutorials
51 How to Add Character Limit to Post Titles in WordPress
How to Add Character Limit to Post Titles in WordPress
WPBeginner - WordPress Tutorials
52 How to Add a Private Messaging System in WordPress
How to Add a Private Messaging System in WordPress
WPBeginner - WordPress Tutorials
53 WWW vs non WWW and Which is Better For WordPress SEO
WWW vs non WWW and Which is Better For WordPress SEO
WPBeginner - WordPress Tutorials
54 How to Add Voice Search Capability to your WordPress
How to Add Voice Search Capability to your WordPress
WPBeginner - WordPress Tutorials
55 How to Show Real Time Online Users in WordPress
How to Show Real Time Online Users in WordPress
WPBeginner - WordPress Tutorials
56 How to Create a Duplicate Menu in WordPress with One Click
How to Create a Duplicate Menu in WordPress with One Click
WPBeginner - WordPress Tutorials
57 How to Hide a Post From Home Page in WordPress
How to Hide a Post From Home Page in WordPress
WPBeginner - WordPress Tutorials
58 How to Add A Restaurant Reservation System in WordPress
How to Add A Restaurant Reservation System in WordPress
WPBeginner - WordPress Tutorials
59 How to Add a Border Around an Image in WordPress
How to Add a Border Around an Image in WordPress
WPBeginner - WordPress Tutorials
60 Beginner’s Guide How to Back Date Your WordPress Posts
Beginner’s Guide How to Back Date Your WordPress Posts
WPBeginner - WordPress Tutorials

Related Reads

📰
ChatGPT for Photography: Take Better Photos with Any Camera
Use ChatGPT to improve your photography skills by understanding camera fundamentals and composition techniques, regardless of the camera you use
Dev.to AI
📰
ChatGPT for Event Planning: Host Memorable Gatherings Without the Stress
Use ChatGPT as a virtual event planner to organize and host memorable gatherings with less stress
Dev.to AI
📰
SciDraw Alternative: Paper Banana for Scientific Figures
Learn about Paper Banana, a SciDraw alternative for creating scientific figures using AI
Medium · AI
📰
AI-Powered Polish: Generating Client-Ready PDFs for Catering Proposals
Learn how to generate client-ready PDFs for catering proposals using AI-powered tools, streamlining your workflow and improving client satisfaction
Dev.to AI
Up next
What is OAuth 2 0 Explained with Examples
VLR Software Training
Watch →