1. You should NEVER work on a live site
Just setup a local installation of WAMP or MAMP and do your testing there. This has a lot of benefits:
- You can’t break a live site
- You don’t need to upload changed files
- It runs faster as everything is local and doesn’t go trough the internet
2. Debugging
First you could enable debug in config.php
define('WP_DEBUG', true);
This will give you a lot more information what went wrong if something goes wrong.
There also is a lot more info in the WordPress Codex on Debugging in WordPress
Related Posts:
- How do you debug plugins?
- How can I see all the actions attached to an “add_action” hook?
- How to eliminate weird 404 errors in wp-admin?
- Is there any debug toolbar that shows whick hooks are called for the current page in WordPress?
- $wpdb->get_results leaking memory
- How to remove/hide action links cluttering under specific plugins’ names
- How to use WP-FirePHP extension?
- Integrating WP as a CMS with a Bug Tracker
- How to see list of plugins
- Enable/Disable WP options programmatically
- Can wp_script_is used in pluginA check if a script is being enqueued/registered from pluginB?
- Plugin could not be activated because it triggered a fatal error. (No Error??)
- How to implement Sentry on WordPress? [closed]
- Why do plugins that cause ‘unexpected output’ create AJAX problems?
- how to find and correct plugin query performance issues
- Problem In Advance search Plugin [closed]
- Unable to get WP_DEBUG, WP_DEBUG_DISPLAY, WP_DEBUG_LOG to work
- Problem installing plugin: unexpected T_STRING, expecting T_FUNCTION
- Preview with Custom Post Type Not Working
- Why is adoptStyles-css stylesheet link added to every page?
- Access “wp site health info” data from plugin
- WordPress website working fine on localhost but not displaying front pages on webhost
- Need Help Understanding Debug Log Errors
- What is the correct entry point for capturing coverage data
- Plugin debugging with errors in activation routine
- Plugins effecting layout & login
- True or False: Is an Apache error or PHP error the same as a WordPress error?
- In WordPress, after installing “Pie Register” plugin, admin permission is GONE! [closed]
- AI Code For OpenAI
- WordPress Throwing Deprecated Errors on its own Files
- Dropdown menu only appearing when logged in
- Proper Way to Modify Plugin
- How to get a variable number of posts per post type on the main loop?
- How To Determine If A Filter Is Called In A Sidebar/Widget Context?
- Difference between deactivating, uninstalling, and deleting plugins
- Filter Hook on plugin update
- Generic plugin (de)activation hook?
- Is the WordPress HTTPS Plugin Still Safe To Use? [closed]
- How to prefix `attachment` permalinks with `attachment`?
- How do I register a stylesheet inside a WordPress widget?
- List users except current user using wp_dropdown_user? [closed]
- Edits to plugin not taking effect
- Multisite Backup Plugin [closed]
- Custom Text Under Navigation Links
- How do I know which plugin uses the most resource?
- WordPress plugin for affiliate referral system
- adding a new value to a serialized array in WP_option table
- WordPress 5 upgrade: until when is it safe to keep project running in 4.x?
- force customers to add only single item to card per purchase EDD [closed]
- Write to / remove from default .htaccess file from plugin?
- How to obtain page breadcrumb based on menu structure only?
- 404 Error on Activate / Deactivate Plugin
- How to Use Parameters with a Do_Action Function Within PHP Tags
- Landing Page Redirect Chain | http->https->https www
- How do I pass a post ID to the page URL?
- Need to change url paramenter of share product pintrest [closed]
- Bootstrap and Custom CSS in custom plugin are being overwritten by theme
- WordPress + JavaScipt + AJAX + MySQL: insert query for form
- Plugin Development Form Self Submission
- How To Extend A WordPress Plugin Without Losing Your Changes [duplicate]
- WordPress call_user_func_array() expects parameter 1 to be a valid callback, class
- Why is my custom post type not being activated on plug-in activation?
- Where to find the code used to render a page that has a shortcode and a template defined?
- WordPress User Post Products
- How to find out whether a plugin is used in pages or posts?
- How can I load the css and jquery explicitly for the login screen
- Overriding an Array in a Plugin’s Class/Function from functions.php
- preg_replace() No ending delimiter ‘.’ found [closed]
- How can i summerize posts or news automatically in word press site?
- How to approach displaying products with no shopping cart plugin or post type?
- Linking form to user meta fields
- Remove all messages, when untrash a post
- How to resolve warning for `unstableOnSplit` prop on a DOM element in block editor
- Looping the data from WordPress database using foreach
- Rename a folder via HTML POST request
- How to display latest viewed post by logged user?
- path of wp-content directory when we are on some plugin
- Blank dashboard with no access
- How to make a page both “private” and “password protected”
- User upload dashboard
- How to duplicate a product page
- Add Custom Field to Post Pages via Plugin
- Is there a plugin to have DMCA takedown notice form in WordPress? [closed]
- what is the best way to create a premium plugin while also protecting your code
- hide load more button if there are no posts left to display
- Get url of selected gallery images?
- Show image or notification on specific blog in multisite
- Child Theme Changes Are Not Reflecting In Parent Theme
- Second foreach loop breaking (Posts2Posts)
- Which filters or actions involve with index page for plugin?
- Gutenberg: Dynamic Block – Show saved data in the editor
- Trying to Understand Shortcodes.
- Is there a way to stop the theme and especially plugins listed?
- How to disable plugin capability : “create new category”
- Scripts don’t enqueue after removing plugin
- Plugins menu not on dashboard
- Categories not showing when all of the posts are private
- How to create a “Most Popular” & “Latest” TAB in WordPress
- Multilingual WordPress Website with multiple source languages
- WordPress Multisite Plugin Activation Issue