Skip to content
CodeAstrology
Working Hours 9:30 am - 6:30 pm (Sun - Thu)
Contact Us contact@codeastrology.com

Special Discount!

Use coupon code WP20

CodeAstrology

CodeAstrology

We Develop and Sell WordPress Plugins and Themes

  • Home
  • About
    • Services
    • Company
    • Team
  • Products
    • Premium Products
    • Free Products
    • Woo Product Table
    • Min Max Quantity & Step Control
    • UltraAddons
    • Pricing – Add to cart button Changer
  • Blog
  • Contact
  • My Account
    • Support Area
    • Affiliate Area
 0 - $0.00
Get Quote
By Saiful Islam

Common Errors in WordPress and How to Fix Them

Sometimes we face problems with our WordPress site. Today I’ll discuss three common errors in WordPress and possible ways to fix them.

Table of Contents

  • How to Fix WordPress Syntax Errors
  • How to Fix the 404 Not Found Error
    • Fix in Permalinks
    • Edit .Htaccess
  • Woo Product Table Pro
      • The Most Popular Product Table Plugin For WooCommerce
  • How to Fix the Connection Timed Out Error

How to Fix WordPress Syntax Errors

Most of the time, a beginner faces a syntax error. It’s a common problem in WordPress. Most of the time, the problem is caused by a php file. When there is a missing syntax like semicolon, colon, underscore or any type of syntax that is used in PHP, we get a error message in the browser. If you face the same problem, don’t panic. It’s easy to solve .

( ! ) Parse error: syntax error, unexpected ‘,’ in C:\wamp64\www\test_site\wp-content\themes\twentyseventeen\functions.php on line 376

There is a syntax/parse error in my twenty-seventeen theme’s functions.php file on line 376.

So we’ll locate the functions.php file, find the problem, and fix it.

syntax error
Syntax error:

Here in function.php’s 376 number line, there is an additional comma (,) that is causing the error. Just remove the comma (“,”) and save the file. Then reload the page. And it works fine.

How to Fix the 404 Not Found Error

Fix in Permalinks

Most of the time, this error is caused by your permalink structure. If the problem is caused by permalinks, then simply navigate to Dashboard->Settings->Permalinks. Set the permalink type to Post name as shown below and save the changes.

Permalinks structure
Permalinks structure

I hope this will work.

Edit .Htaccess

Sometimes this problem is caused by a.Htaccess file in your theme. Modifying that file may solve the problem. Make your.Htaccess file like shown below.

# BEGIN WordPress
<IfModule mod_rewrite.c >
RewriteEngine On
RewriteBase /test_site/
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /test_site/index.php [L]
</IfModule>

# END WordPress

Note: Here, tests_site is my site directory on localhost. Use your own.

special offer for code astrology

Woo Product Table Pro

The Most Popular Product Table Plugin For WooCommerce

Get Special Discount

How to Fix the Connection Timed Out Error

Sometimes we face this error that say Connection Timed out. This may cause exceeding the maximum execution time but no response from the server.

Maybe you are using shared bandwidth that is slowing down your server. In that case, upgrade your hosting plan.

Sometimes it may cause a plugin. To solve this, deactivate your plugins one by one and detect where they lie.

Increasing your PHP memory may solve the issue. Just go to the wp-config.php file and add the line below.

define( ‘WP_MEMORY_LIMIT’, ’64M’ );

To get more tips and tricks like this, stay with Code Astrology.

Errors Tips and Tricks

Share

Post navigation

Previous: Search WooCommerce Products In Product Table
Next: How To Fix White Screen Of Death Of WordPress
Trustpilot

Free Plugins

Woo Product Table (Free Version)

Checkout Added to cart

Min Max Quantity & Step Control (Free)

Checkout Added to cart

UltraAddons Elementor (Free)

Checkout Added to cart

Premium Plugins

Woo Product Table Pro

  • Billed once per year until cancelled

  • Billed once per year until cancelled

  • Billed once per year until cancelled

Checkout Added to cart

Min Max Step Control Pro

  • Billed once per year until cancelled

  • Billed once per year until cancelled

  • Billed once per year until cancelled

Checkout Added to cart

Recent Posts

  • WooCommerce product page customization [How to+ Tips]
  • Top 10 Programming Languages for 2023
  • Payment Gateways – Integral Paradigm of Trends and Developments in Online Banking
  • The Customer is Always Right or Are They? 5 Tips on How to Handle Toxic Clients
  • Top 15 ChatGPT alternatives you can use in 2023
  • Top 5 Must-Follow Trends of Digital Marketing in 2023
  • Node.js vs PHP: Comparing – 2023
  • Common Mistakes in Software Development and Ways to Avoid Them
  • Top five WordPress Page Builders
  • What is a Woo Product Table?
  • The 7 Principles of Conversion-Centered Landing Page Design
  • Potential analysis of social media channels in relation to the success of customer retention
  • How To Fix Common SSL Issues in WordPress

Categories

  • Advanced Custom Fields
  • Advanced Search
  • Business Idea
  • Custom Fields WooCommerce
  • Custom Taxonomy
  • E-Commerce
  • Errors
  • Featured Tutorial
  • Instant Search
  • Min Mx
  • Multiple Product to Cart
  • News
  • Online Business
  • Personal
  • PHP
  • Plugin
  • Product Variation
  • Programming
  • Quick Buy
  • Theme
  • Tips and Tricks
  • Uncategorized
  • Woo Product Table pro
  • WooCommerce
  • WooCommerce Filter
  • WooCommerce Product Table
  • WooCommerce Product Table Free
  • Wordpress
Trustpilot

Subscribe to our Newsletter

Resources

  • Support
  • Coupons
  • Blog & News
  • Write For Us
  • Video Tutorials
  • Affiliate Program

Company

  • Our Service
  • Get Quote
  • Refund Policy
  • Privacy Policy
  • Support Policy
  • Terms of Service

Powered By

© 2022, CodeAstrology. All Rights Reserved.
  • Privacy Policy
  • Terms of Service
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT