QUICK TIP - Top Common Errors on WordPress make your headache!
- 1. QUICK TIP - How To Make Gold Miner Game With Unity 2D
- 2. QUICK TIP - Create a play bot T-Rex in Chrome – Hardcode version
- 3. QUICK TIP - Python – Building a Virtual Assistant Robot With 50 Code Lines
- 4. QUICK TIP - How Do You Understand about Hi-Res Audio?
You receive an error message on your browser “Warning: Cannot modify header information – headers already sent by (output started at /path/blog/wp-config.php:34)” right after upgrading your WordPress or a new WordPress installation.
Solution: Remove spaces, new lines, or other garbage in wp-config.php
- Download wp-config.php via FTP.
- Open wp-config.php.
- Remove all spaces before <?php.
- Make sure the first characters are <?php, placed at the first line with no space in between.
- Remove all spaces after ?>
- Make sure the last characters are ?>, placed at the last line with no space in between.
This error could happen on other files too. Read the error message carefully as it states the specific file name where the error occurred.
6. WordPress blog and admin Is showing blank page
This error normally happens right after a new WordPress Themes installation or WordPress upgrade. The entire blog is showing a blank page; so is the WordPress admin login page. There’s no way to access the dashboard.
Solution 1: Rename current installed theme folder via FTP
Renaming the currently installed theme folder via FTP can force WordPress to choose the default theme to be put into service and you’re able to access WordPress wp-admin after that.
- Navigate to the wp-contents/themes directory via FTP.
- Rename current installed theme folder. For example: “twentytwenty” to “twentytwenty-temp”.
- Login to your WordPress wp-admin.
- Check if your theme is compatible with your version of WordPress.
- Check if your theme contains coding which can’t be executed.
Solution 2: Reset plugin folder via FTP
- Navigate to the wp-contents directory via FTP.
- Rename plugins folder to “plugins-temp”.
- Create a new folder called “plugins” at wp-contents.
- Try to login to your WordPress wp-admin.
- Move your plugin from “plugins-temp” to “plugin” and activate them one by one.
- Check if any plugin is not compatible with your version of WordPress.
7. Fatal error: Allowed memory size of 33554432 bytes exhausted
Receive “Fatal error: Allowed memory size of 33554432 bytes exhausted” when try to upload an image with medium file size. To solve this error, try to increase the memory allocated to PHP. You can set the limit to 32MB, 64MB, 128MB or 256MB. It depends on your host.
Solution 1: Edit PHP.ini
If you’re still allowed to edit your PHP.inifile, update your memory_limit in PHP.ini by modifying the below line
memory_limit = 64M ; Maximum amount of memory a script may consume (64MB)
If the line is showing 64M in default, try 128M.
Solution 2: Edit .htaccess file
Add the script below to your .htaccess file.
php_value memory_limit 64M
Solution 3: Edit wp-config.php file
Add the script below to your wp-config.php file
Increasing memory allocated to PHP define('WP_MEMORY_LIMIT', '64M');
Solution 4: Create a PHP.ini file to wp-admin folder
- Open Notepad.
- Insert the following code into Notepad.
memory_limit = 64M ;
- Save as “PHP.ini”.
- Upload this file to “wp-admin” directory.
8. You are not authorized to view this page (403 error)
You receive an error message “You are not authorized to view this page. (403 error)” after inserting the username and password in the WordPress admin login page.