How to fix the response is not a valid JSON response in WordPress | Fix invalid JSON response error

All Pro Coding
14 Feb 202407:30

Summary

TLDRThis video script offers a comprehensive guide for WordPress users facing common errors. It introduces five distinct methods to troubleshoot and resolve these issues. Starting with accessing the cPanel and implementing a simple code snippet, it proceeds to adjusting security settings, updating PHP versions, and checking permalink structures. The script also suggests installing a plugin for the classic editor and emphasizes the importance of backing up before updating themes and plugins. The aim is to provide a clear path to error resolution, ensuring a smooth WordPress experience.

Takeaways

  • 😀 The video is aimed at WordPress users facing common errors and provides methods to resolve them.
  • 🔧 The first method involves logging into the cPanel account and accessing the file manager to edit a specific code snippet.
  • 🔄 After editing the code, it's necessary to save changes and check the WordPress site for error resolution.
  • 🛡️ The second method suggests turning off the security status in cPanel and updating the PHP version to resolve the error.
  • 🔗 The third method focuses on checking the permalink structure in WordPress settings to ensure proper URL configurations.
  • 🔄 It's important to confirm that the site's URL matches the WordPress URL and correct any discrepancies.
  • 📝 The fourth method recommends installing a plugin, specifically the Classic Editor, to potentially fix the error.
  • 🔄 After installing and activating the plugin, the user should check if the error has been resolved.
  • 🛠️ The fifth method involves updating all plugins and themes from the WordPress dashboard as a troubleshooting step.
  • 🔄 Before proceeding with updates, especially the fifth method, it's crucial to have a backup of the site to prevent data loss.
  • 👍 The video promises a response to comments for further assistance if the error persists after trying all the methods.

Q & A

  • What is the main topic of the video?

    -The main topic of the video is how to solve a common error encountered by WordPress users by presenting five different methods.

  • How many methods does the video suggest to resolve the WordPress error?

    -The video suggests a total of five methods to resolve the WordPress error.

  • What is the first method discussed in the video to solve the error?

    -The first method involves logging into the cPanel account, accessing the File Manager, and applying a simple code provided in the description box.

  • What is the second method's approach to solving the error?

    -The second method involves navigating to the Security option in the cPanel, turning off the security status, and then checking the PHP version to ensure it is compatible with the current WordPress version.

  • What is the third method's focus in addressing the error?

    -The third method focuses on checking and updating the permalink structure in the WordPress settings under the 'Permalinks' section.

  • What action is suggested in the fourth method to resolve the error?

    -The fourth method suggests using a simple plugin to solve the error, which involves installing and activating the 'Classic Editor' plugin.

  • What precaution is advised before trying the fifth method?

    -Before trying the fifth method, it is advised to have a backup of the website to prevent any data loss.

  • What is the fifth method's approach to solving the error?

    -The fifth method involves updating all available plugin updates and theme updates from the WordPress dashboard.

  • How can viewers access the code for the first method?

    -Viewers can access the code for the first method from the description box or through the provided link in the video description.

  • What is the purpose of turning off the security status in the second method?

    -Turning off the security status in the second method is to check if the error is related to the security settings interfering with the WordPress functionality.

  • What should viewers do if the error persists after trying all five methods?

    -If the error persists after trying all five methods, viewers are encouraged to leave a comment, and the video creator promises to reply to help resolve the issue.

Outlines

00:00

🛠️ Fixing WordPress Errors with Five Methods

This paragraph outlines a video script that discusses common WordPress errors and introduces five methods to resolve them. The first method involves logging into the cPanel account to access and edit specific files using a provided code snippet. The second method suggests adjusting security settings and PHP version through the cPanel. The third method focuses on updating permalink structures in the WordPress settings. The fourth method recommends installing a simple plugin to revert to the classic editor, potentially solving the error. The final method advises updating all plugins and themes, emphasizing the importance of having a site backup before proceeding.

05:01

🔄 Resolving WordPress Errors with Plugin and Theme Updates

The second paragraph of the script details the process of resolving a WordPress error by using a plugin. It instructs viewers to navigate to the plugins section, install the 'Classic Editor' plugin, and activate it. After activation, the script suggests checking if the error is resolved by updating or refreshing the page. The video also covers updating all plugins and themes from the WordPress dashboard, stressing the necessity of having a site backup before making any updates. If the error persists after trying all methods, the script encourages viewers to leave a comment for further assistance.

Mindmap

Keywords

💡WordPress

WordPress is a popular content management system (CMS) used for creating websites and blogs. In the video's context, it is the platform where the user is facing an error and for which the video is providing solutions. The script mentions accessing the WordPress dashboard and dealing with plugins and themes, which are common elements within the WordPress ecosystem.

💡Error

An error in the script refers to a problem or malfunction that the user encounters while using WordPress. The video's main theme revolves around resolving such errors, offering various methods to troubleshoot and fix them. The script discusses an unspecified 'error' that the viewer may have faced, indicating the video's purpose to guide users through the resolution process.

💡cPanel

cPanel is a web hosting control panel that allows users to manage their websites. In the script, it is mentioned as a tool to access and modify files, which is part of the first method to solve the error. The video instructs viewers to log in to their cPanel account to perform certain actions, such as editing files in the File Manager.

💡File Manager

The File Manager is a feature within cPanel that allows users to upload, download, and edit files on their server. The script describes using the File Manager to open the 'public' folder and make necessary code changes, which is a step in one of the methods to resolve the error discussed in the video.

💡Security

Security in the context of the video refers to a setting within the cPanel that can affect the operation of a WordPress site. The script mentions turning off the 'security status' as part of the second method to resolve the error, indicating that security settings can sometimes cause issues that need to be addressed.

💡PHP Version

PHP is a server-side scripting language used by WordPress. The script discusses selecting a PHP version in the cPanel, which is part of troubleshooting steps. The video suggests that changing the PHP version might solve the error, as different versions can have compatibility issues with certain WordPress plugins or themes.

💡Permalink

A permalink is the permanent URL of a WordPress post or page. The script refers to the 'Permalink' structure under the 'Settings' menu, which is a part of the third method to resolve the error. The video suggests checking and updating the permalink structure, which can affect how URLs are generated and accessed on the site.

💡Plugin

A plugin in WordPress is a software component that adds a specific feature or functionality to the website. The script mentions installing and activating a plugin as the fourth method to solve the error. The video suggests that a simple plugin can be used to fix the issue, indicating that plugins are a common tool for extending and fixing functionalities in WordPress.

💡Classic Editor

The Classic Editor is a plugin for WordPress that restores the old editor interface, providing an alternative to the newer block editor. The script refers to installing the Classic Editor plugin as a potential solution to the error, highlighting the plugin's role in addressing compatibility or user preference issues.

💡Backup

A backup in the context of the video is a copy of the website's files and database, created to prevent data loss. The script emphasizes taking a backup before attempting the fifth method, which involves updating plugins and themes. This step is crucial as it ensures that any changes can be reverted if they cause further issues, thus preserving the site's integrity.

Highlights

Introduction to the video explaining how to solve a common WordPress error.

Mention of five different methods to resolve the error.

First method involves logging into the cPanel and accessing the file manager.

Instructions on copying and pasting a specific code snippet in the file manager.

Saving changes and checking the WordPress site for error resolution.

Second method focuses on the security settings within the cPanel.

Details on disabling the security status and checking for error resolution.

Third method discusses changing the PHP version in the cPanel.

Guidance on selecting the appropriate PHP version to resolve the error.

Fourth method involves checking the permalink structure in WordPress settings.

Instructions on saving changes to the permalink structure and verifying error resolution.

Fifth method suggests using a plugin to solve the error.

Process of installing and activating the 'Classic Editor' plugin.

Explanation of how updating the page after plugin activation can resolve the error.

Final method recommends updating all plugins and themes to their latest versions.

Emphasis on creating a backup before attempting the update method.

Offer to respond to comments for further assistance with the error.

Conclusion and hope that the video was helpful for solving the WordPress error.

Transcripts

play00:00

अगर आप भी एक वर्डप्रेस यूजर हो तो आपने

play00:02

भी इस टाइप के एरर को कभी ना कभी फेस किया

play00:05

ही होगा तो इस वीडियो में हम इस एरर को

play00:07

किस तरह से सॉल्व कर सकते हैं इसी के बारे

play00:09

में देखने वाले हैं तो यह रर आने के कई

play00:12

सारे रीजंस है उसी तरह इसको सॉल्व करने के

play00:14

लिए भी कई सारे मेथड्स अवेलेबल है तो इस

play00:17

वीडियो में हम टोटल पांच ऐसे मेथड्स के

play00:19

बारे में देखने वाले हैं जिसके जरिए आप

play00:21

आसानी से इस एरर को सॉल्व कर सकते हो तो

play00:23

चलिए सबसे पहले देखते हैं फर्स्ट मेथड के

play00:25

बारे में तो फर्स्ट मेथड में हमें सी पैनल

play00:28

की जरूरत पड़ने वाली है तो सबसे पहले आप

play00:30

को अपने सी पैनल अकाउंट में लॉग इन कर

play00:31

लेना है तो अगर आपके पास सी पैनल का

play00:33

अकाउंट डिटेल्स नहीं है तो आप डायरेक्टली

play00:35

आपके वर्डप्रेस के डैशबोर्ड से भी अपने सी

play00:39

पैनल के फाइल्स को एक्सेस कर सकते हो उसके

play00:42

लिए मैंने ऑलरेडी एक वीडियो बना दिया है

play00:44

अगर आपने वह वीडियो देखा नहीं है तो लिंक

play00:46

आपको डिस्क्रिप्शन में या आई बटन प मिल

play00:48

जाएगी आप वो वीडियो देख सकते हो तो सबसे

play00:50

पहले हमें यहां पर सी पैनल के अकाउंट में

play00:52

लॉग इन कर लेना है सी पनल के अकाउंट में

play00:54

लॉग इन करने के बाद आपको यहां पर आना है

play00:57

फाइल मैनेजर पर आना है और इसको ओपन कर

play00:59

देना देना है फाइल मैनेजर को ओपन करने के

play01:02

बाद यहां पर आपको पब्लिक अ

play01:32

इस फाइल को ओपन होने के बाद यहां पर आपको

play01:34

एक सिंपल से कोडिंग की जरूरत पड़ने वाली

play01:37

है तो य कोडिंग मैं आपको डिस्क्रिप्शन

play01:40

बॉक्स में दे दूंगा वहां से आप इस कोडिंग

play01:42

को ले सकते हो तो इसको मैं अ यहां पर कॉपी

play01:45

कर लेता हूं और कॉपी करने के बाद यहां पर

play01:48

आपको उस कोड को यहां पर पेस्ट कर देना है

play01:51

पेस्ट करने के बाद सिंपली आपको यहां पर

play01:53

सेव चेंजेज पर क्लिक कर लेना है आपके

play01:55

चेंजेज यहां पर सक्सेसफुली सेव होने के

play01:57

बाद आपको जाना है आपके वर्डप्रेस के साइट

play02:00

पर और यहां पर इसको अपडेट करके देखना है

play02:02

या फिर आप जो नया पेज पब्लिश करना चाहते

play02:04

हो उसको यहां पर पब्लिश करके देखना है

play02:06

इतना सब करने के बाद यह एरर आपका यहां से

play02:08

रिमूव हो जाएगा अगर यह सब करने के बाद भी

play02:11

यह एरर यहां से रिमूव नहीं होता तो आपको

play02:13

सेकंड मेथड को ट्राई करना चाहिए तो चलिए

play02:15

देखते हैं अभी सेकंड मेथड के बारे में तो

play02:17

सेकंड मेथड के सोल्यूशन के बारे में देखने

play02:19

के लिए हमें फिर से हमारे सी पैनल में

play02:21

जाना होगा तो सी पैनल में आने के बाद यहां

play02:23

पर हमें नीचे आना है यहां पर आपको

play02:26

सिक्योरिटी का ऑप्शन यहां पर फाइंड कर

play02:28

लेना है या फिर आप डायरेक्टली यहां पर

play02:29

सर्च में भी मोड सिक्योरिटी का ऑप्शन

play02:31

फाइंड कर सकते हो तो यहां पर आने के बाद

play02:34

सबसे पहले आपको मोड सिक्योरिटी का ऑप्शन

play02:36

यहां पर सर्च कर लेना है उसके बाद यहां पर

play02:39

आपको मोड सिक्योरिटी पर क्लिक कर लेना है

play02:41

जैसे आप मोड सिक्योरिटी पर क्लिक करोगे तो

play02:44

आपके सामने कुछ इस तरह का एक इंटरफेस ओपन

play02:46

हो जाएगा तो यहां पर आपका डोमेन नेम यहां

play02:48

पर शो हो रहा होगा तो उसका यहां पर

play02:51

सिक्योरिटी स्टेटस ऑन दिखाई दे रहा होगा

play02:54

तो उसको आपको यहां पर ऑफ कर देना है इतना

play02:57

सब होने के बाद आपको फिर से यहां पर बैक

play02:59

आना है और बैक आने के बाद यहां पर आपको

play03:01

नीचे स्क्रॉल करना है और यहां पर सिलेक्ट

play03:05

पीएचपी वर्जन का ऑप्शन यहां पर आपको फाइंड

play03:07

आउट करना है फाइंड आउट करने के बाद यहां

play03:09

पर आपको इसको क्लिक कर देना

play03:11

है और यहां पर पीएचपी वर्जन को ओपन होने

play03:14

के बाद यहां पर आपको उसका वर्जन सेलेक्ट

play03:17

कर लेना है उसके बाद यहां पर आने के बाद

play03:19

यहां पर आपको आपका पीएसपी का वर्जन

play03:21

सेलेक्ट कर लेना है तो आपका यहां पर 8 या

play03:24

फिर 88.1 जो भी है यहां पर आपका करंट

play03:27

वर्जन यहां पर सेलेक्ट कर लेना है इतना सा

play03:29

होने के बाद आपको आपके वर्डप्रेस के पेज

play03:32

पर जाना है और इसको रिफ्रेश करके देखना है

play03:34

इतना सब करने के बाद आपका एरर यहां से

play03:36

सॉल्व हो जाएगा अगर इसके बाद भी आपका एरर

play03:39

सॉल्व नहीं होता तो आपको थर्ड मेथड को

play03:41

ट्राई करना चाहिए तो चलिए देखते हैं थर्ड

play03:43

मेथड के बारे में तो सबसे पहले यहां पर

play03:46

आपको सेटिंग में जाना है और यहां पर

play03:48

सेटिंग में जाने के बाद आपको परमानेंस पर

play03:50

यहां पर क्लिक कर लेना है तो परमा लिंक पर

play03:54

आने के बाद यहां पर आपको आपका परमा लिंक

play03:56

का जो स्ट्रक्चर है वो यहां पर चेक कर

play03:58

लेना है तो आपको सबसे पहले पोस्ट नेम यहां

play04:01

पर सेलेक्ट कर लेना है और इसको सेलेक्ट

play04:03

करने के बाद यहां पर आपको सेव चेंजेज पर

play04:05

क्लिक कर लेना है परमा लिंक के अपडेट होने

play04:07

के बाद आपको जाना है जनरल के ऑप्शन में

play04:10

यहां पर आने के बाद सबसे पहले आपको आपका

play04:12

जो वर्डप्रेस का यूआरएल है और साइट का

play04:14

यूआरएल है वो दोनों सेम है या नहीं इस बात

play04:17

को कंफर्म कर लेना है अगर आपके साइट पर

play04:20

एसएसएल एक्टिवेट है तो आपको यहां पर

play04:22

एचटीटीपीएस एंटर कर लेना है दोनों जगह पे

play04:26

और अगर एसएसएल एक्टिवेट नहीं है तो सिंपल

play04:29

एटी ही रखना है कई बार यहां पर एचटीटीपीएस

play04:32

होता है और यहां पर सिर्फ एचटीटीपी होता

play04:35

है मतलब यूआरएल मिसमैच होता है तो इस बात

play04:39

को आपको कंफर्म कर लेना चाहिए दोनों

play04:40

यूआरएल यहां पर सेम होनी चाहिए कंफर्म

play04:43

करने के बाद आपने अगर यूआरएल में चेंजेज

play04:45

किए तो आपको यहां पर नीचे आना है और यहां

play04:47

पर सेव चेंजेज पर क्लिक कर लेना है इसके

play04:49

बाद यहां पर आप फिर से पेजेस में जाके यह

play04:51

एरर सॉल्व हुआ या नहीं इसको चेक कर सकते

play04:53

हो और अगर फिर भी आपका एरर सॉल्व नहीं हो

play04:56

रहा तो परेशान होने की कोई बात नहीं इसके

play04:58

बाद आप फोर्थ मेथड को भी ट्राई कर सकते हो

play05:00

तो चलिए देखते हैं फोर्थ मेथड के बारे में

play05:03

तो अभी इस एरर को सॉल्व करने के लिए हम एक

play05:05

सिंपल प्लगइन का यूज करने वाले हैं तो

play05:07

प्लगइन को इंस्टॉल करने के लिए सबसे पहले

play05:08

चलते हैं प्लगइन के सेक्शन में यहां पर

play05:10

प्लगइन के सेक्शन में आने के बाद हमें

play05:12

यहां पर सबसे पहले ऐड न्यू प्लगइन पर

play05:14

क्लिक कर लेना

play05:15

है और ऐड न्यू प्लगइन पर क्लिक करने के

play05:18

बाद यहां पर आपको यह वाला प्लगइन यहां पर

play05:20

दिखाई दे रहा होगा क्लासिक एडिटर का तो

play05:22

इसको आपको यहां पर इंस्टॉल कर लेना है तो

play05:25

मेरा प्लगइन यहां पर सक्सेसफुली इंस्टॉल

play05:27

हो चुका है तो चलिए इसको एक्टिवेट कर लेते

play05:29

हैं तो हमारा प्लगइन यहां पर सक्सेसफुली

play05:32

एक्टिवेट हो चुका है तो चलिए चलते हैं अभी

play05:34

पेजेस में जाके देखते हैं हमारा एरर सॉल्व

play05:36

हुआ है या नहीं तो यह था हमारा पेज तो

play05:39

इसको मैं यहां पर ओपन कर लेता हूं तो मैं

play05:41

यहां पर कुछ रैंडम टेक्स्ट यहां पर एंटर

play05:43

कर लेता

play05:45

हूं और यहां पर इसको अपडेट करके देखता हूं

play05:49

तो आप देख सकते हो मेरा पेज यहां पर

play05:51

सक्सेसफुली अपडेट हो चुका है और वह हमारा

play05:53

एरर था वो भी सॉल्व हो चुका है क्लासिक

play05:56

एडिटर की प्लगइन की वजह से यहां पर आपके

play05:58

पेज का बैक एंड का लेआउट चेंज हो जाएगा

play06:01

लेकिन 99 पर चांसेस है कि इस प्लगइन की

play06:03

मदद से आपका वो एरर सॉल्व हो जाएगा अगर

play06:06

इतना सब कुछ करने के बाद भी आपका एरर अगर

play06:08

सॉल्व नहीं हो रहा है तो आपको फिफ मेथड को

play06:11

ट्राई करना चाहिए तो चलिए देखते हैं फिथ

play06:14

मेथड के बारे में तो इस मेथड को ट्राई

play06:16

करने के लिए सबसे पहले हमें जाना है हमारे

play06:18

डैशबोर्ड में और डैशबोर्ड में यहां पर आने

play06:21

के बाद आपको अपडेट पर क्लिक कर लेना है

play06:23

यहां पर आने के बाद आपको यहां पर नीचे

play06:25

स्क्रॉल करना है और यहां पर नीचे आप देख

play06:27

सकते हो आपने जितने भी प्लगइन अपडेट्स के

play06:30

लिए आए हैं तो उसको ऑल सेलेक्ट कर लेना है

play06:32

और यहां पर प्लगइन को अपडेट कर देना है

play06:34

प्लगइन को अपडेट कर देने के बाद यहां पर

play06:36

आपको नीचे आना है और यहां पर नीचे आपने जो

play06:39

भी थीम इंस्टॉल की है उस थीम को सेलेक्ट

play06:41

कर लेना है और यहां पर अपडेट थीम पर क्लिक

play06:43

कर लेना है लेकिन एक बात ध्यान में रखिए

play06:45

आप अगर इस मेथड को ट्राई करना चाहते हो तो

play06:48

सबसे पहले आपको अपना जो साइड का बैकअप है

play06:50

वो बैकअप आपको यहां पर लेना चाहिए यहां पर

play06:53

वर्डप्रेस में भी यहां पर इंपोर्टेंट यहां

play06:55

पर नोट दे रखी है सबसे पहले यहां पर आपको

play06:57

बैकअप लेना है आपके साइट का

play06:59

उसके बाद यहां पर आपको अपडेट कर देना है

play07:02

अगर इन फाइव मेथड्स को ट्राई करने के बाद

play07:04

भी आपका एरर सॉल्व नहीं हो रहा है तो आप

play07:06

मुझे कमेंट कर सकते हो मैं आपके कमेंट का

play07:08

रिप्लाई जरूर दूंगा तो आई होप यह सिंपल सा

play07:10

वीडियो आपको पसंद आया होगा तो फिलहाल के

play07:12

लिए तो इतना ही मिलते हैं नेक्स्ट वीडियो

play07:28

में m

Rate This

5.0 / 5 (0 votes)

Étiquettes Connexes
WordPressError FixWebsite IssuesCPanel AccessSecurity SettingsPlugin ManagementPermalinksSEO TipsWeb DevelopmentContent Management
Besoin d'un résumé en anglais ?