Posts

Showing posts from October, 2021

WordPress Syntax Error Fix

  All users try new things on their website and learn more about WordPress. But sometimes a small problem can cause the whole site to break, which is particularly scary for new users. If you were trying to do something new on your WordPress site and found the following error “Syntax error, unexpected …”, then do not worry. You are not the first person to receive the syntax error in WordPress. In this article we will describe you how to fix unexpected syntax error in WordPress. How to Avoid Syntax Errors in WordPress Some common mistakes made by beginners have been listed in this article when pasting the code into WordPress templates. Syntax error is usually caused by a small but significant error in your code syntax. A missing comma, or an additional curly bracket, can break the whole script. Did you paste a snippet from the web file recently? Updated any plugin? So it’s likely that you know where to look for fix the error. Fix Syntax Error in WordPress by Using FTP To correct the...

Common WordPress Themes Error Fix

  New Theme Uses Featured Images but You Don’t Have that in Many Posts There are many blogs that don’t use featured images for every post. Now, if they want to switch to a new theme which supports featured images, they definitely don’t want to spend hours updating every post. In this case, you can install the ‘Quick Featured Images’ plugin. It’s one of the best ways that solve this issue easily. You just need to install, activate and follow some simple instructions. It will automatically add featured images to all the old posts. You Can’t See the Changes You Made Recently If you’ve made some changes in core files of your   WordPress Themes or just added something in the external CSS section and it doesn’t show up at the front end. You probably have one of two caching issues: Browser Cache or Plugin Cache. You can clear the browser cache by just pressing CTRL+R. If it fixes the issue, congratulations. Otherwise, the problem is associated with the plugin caching. Just go t...

How to Fix WordPress Themes Error?

Image
1.  My URL’s Are “Ugly” By default the default WordPress url structure isn’t very “pretty” much less SEO-Friendly. So when you first setup your website URLS might look ugly (a mish-mash of the post ID, publish date, post title and even the category). Don’t worry – it’s easy to fix. Ugly URLs Error Solution So if your urls aren’t looking that great (yourwebsite.com/?p=1) simply go to  Settings > Permalinks  and change your setting to the “Post Name” option (or any of the others – just choose the one that best works for you). 2 . My Posts Are Returning 404 Errors If you have posts that are now returning a 404 error page, don’t panic (yet) most of the time your posts are still there and you just need to update your permalink settings to fix the issue. This is very common with themes that use custom post types. Whenever you activate a new theme that uses custom post types you should reset your permalink settings. Posts Showing 404 Error Solution The sim...

How to Fix Syntax Error in WordPress?

Image
  The first step would be to find out what’s causing the error for your website. For this you will have to enable debugging mode for your WordPress website. You can easily do this this from your site’s configuration file also know as  wp-config.php  file, that’s located in the directory where your website has been installed. If you are using cPanel, you can easily edit the file using the online File Manager feature. If you are not using cPanel, then you can connect to your hosting account using an FTP client. The next step is to edit the  wp-config.php  file and look for the following line of code: define( 'WP_DEBUG', false ); In order to temporarily enable debugging mode for your website, you’ll have to set ‘WP_DEBUG’ to true instead of false. So the line of code would look like: define( 'WP_DEBUG', true ); Now that the debugging mode has been enabled, you can return to your website and try to access it again. You will notice that instead of showing that “There...

Fix Syntax Error in WordPress

  When a syntax error occurs in  WordPress , you will be locked out of the website. You may not be able to undo the error you have made in any theme or plugin file using the WordPress dashboard. However, you still have a couple of chances in resolving Parse Error or Syntax Error in a hassle-free manner. Method 1: Fixing Parse Error or Syntax Error with FTP You will need to remove or correct the code that caused the error to resolve the Parse Error. You are completely locked out if you have attached the code using the WordPress dashboard Appearance in the Editor section. You will have to access the edited file using the FTP. First, install the FTP program then link it to your website. Open to the theme file which needs editing. Locate the error code in case you cannot remember which file needs editing. The error code will indicate the file and line that needs editing. You may either edit the code incorrect syntax or delete the code. After you have completed editing/removing the...

How to Fix Syntax Error in WordPress via SFTP?

Image
  When a syntax error occurs, you can fix it by removing or correcting the code that contains the error. Either way, you will have to access the file where the problem is occurring. If you cannot access your WordPress admin panel, you can access using a  File Transfer Protocol (FTP) , client. If you don’t want to download a third-party app and try to fix this error easily in another way, then you can access your site files using the WebFTP tool. Or, if you want to follow another way, then FileZilla is a good option. Keep in mind that you will always want to connect using the more secure  Secure File Transfer Protocol (SFTP)  instead of FTP. This will ensure that the transferred information is encrypted. You will need some information to connect to your website through SFTP : Server name Username Password port In the Account Management area, look for FTP users and select Manage Users to see your settings Server Name, User Name, and Port. If yo...