If you have access to WP admin, and hosting provide panel, you can enable debug mode, which will tell you details about this issue.
Here are docs how to do it https://wpforms.com/developers/how-to-enable-debugging-in-wordpress/
TLDR:
To modify wp-config.php
file via UI, you’ll typically need to use an FTP client or a file manager in your hosting control panel. Here are the steps using cPanel as an example:
- Login to your hosting account: Open your browser and navigate to your cPanel login URL. Enter your cPanel username and password.
- File Manager: In your cPanel dashboard, look for the “File Manager” icon and click on it. This will open the file manager, showing a list of all your files and directories.
- Locate wp-config.php: Navigate to the root directory of your WordPress installation. The root directory often has the name
public_html
or www
or named after your site. Inside this directory, you’ll find the wp-config.php
file.
- Edit wp-config.php: Right-click on
wp-config.php
and select “Edit” or “Code Edit”. A text editor will open in a new tab with the contents of the file.
- Enable Debug Mode: Look for the line that says
define('WP_DEBUG', false);
and change it to define('WP_DEBUG', true);
. If the line doesn’t exist, add it above the “That’s all, stop editing! Happy publishing.” line.
- Debug Log: To save the error messages in a file, add the following lines:sqlCopy code
define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false);
This will save errors in a debug.log
file inside the wp-content
directory.
- Save changes: Click on “Save Changes” button.
- Review Log: Now you can reproduce the error and after that review
debug.log
file inside the wp-content
directory.
Remember to disable the debug mode once you’ve resolved the issue, as keeping it enabled can expose your site to security risks. You can do this by setting WP_DEBUG
back to false
and removing the other two lines you added earlier.
Note: The exact names and locations of the options in your hosting account may vary slightly depending on your hosting provider.