a few problems you can meet in the process using theme. As the web server needs to be told to view index.php by default;your PHP is not working properly. In this today article, Cmsmart give you some useful information so that you can fix it easily
By
890 views
0 reply
TABLE OF CONTENTS
Contact Us
Please fill out the Customization Request form if you need any
customization
1. Common Installation Problems
1.1. I see a directory listing rather than a web page
The web server needs to be told to view index.php by default. In Apache, use the DirectoryIndex index.php directive. The simplest option is to create a file named .htaccess in the installed directory and place the directive there. Another option is to add the directive to the web server’s configuration files.
1.2. I see lots of Headers already sent errors. How do I fix this?
You probably introduced a syntax error in editing wp-config.php.
Download wp-config.php(if you don’t have shell access).
Open it in a text editor.
Check that the first line contains nothing but <? PHP, and that there is no text before it (not even whitespace).
Check that the last line contains nothing but?>, and that there is no text after it (not even whitespace).
If your text editor saves as Unicode, make sure it adds no byte order mark (BOM). Most Unicode-enabled text editors do not inform the user whether or not it adds a BOM to files; if so, try using a different text editor.
Save the file, upload it again if necessary, and reload the page in your browser.
1.3. My page comes out gibberish. When I look at the source I see a lot of "<?php ?>" tags.
If the <?PHP?> tags are being sent to the browser, it means your PHP is not working properly. All PHP code is supposed to be executed before the server sends the resulting HTML to your web browser. (That’s why it’s called a preprocessor.) Make sure your web server meets the requirements to run WordPress, that PHP is installed and configured properly, or contact your hosting provider or system administrator for assistance.
1.4. I keep getting an Error connecting to database message but I'm sure my configuration is correct.
Try resetting your MySQL password manually. If you have access to MySQL via shell, try issuing:
SET PASSWORD FOR ‘wordpressusername’@’hostname’ = OLD_PASSWORD (‘password’);
If you are using a version of MySQL prior to 4.1, use PASSWORD instead of OLD_PASSWORD. If you do not have shell access, you should be able to simply enter the above into an SQL query in phpMyAdmin. Failing that, you may need to use your host’s control panel to reset the password for your database user.
1.5 My image/MP3 uploads aren't working
If you use the Rich Text Editor on a blog that’s installed in a subdirectory, and drag a newly uploaded image into the editor field, the image may vanish a couple seconds later. This is due to a problem with TinyMCE (the rich text editor) not getting enough information during the drag operation to construct the path to the image or another file correctly. The solution is to NOT drag uploaded images into the editor. Instead, click and hold on the image and select Send to Editor.
2. The Most Common WordPress Error
The problem:
Your WordPress site is showing “Briefly unavailable for scheduled maintenance” after an automatic upgrade has completed.
Solution: Remove .maintenance file
A file named .maintenance is placed by WordPress during an automatic upgrade to notify visitors that the site in under a short maintenance. If an upgrade fails or is corrupted, the file will remain in the WordPress folder and won’t get deleted.
To remove the .maintenance file:
Access your blog root directory via FTP.
Locate the file .maintenance.
Remove the .maintenance file from the blog root directory.Once you solve this problem, you may want to run the WordPress automatic upgrade again.
2.2. Can’t delete a plugin
The problem:
You’re not able to delete a plugin in WordPress admin. It still appears even after you have deleted the directory via FTP.
Solution: Delete plugin via Secure Shell (SSH)
Your plugin might have uploaded some hidden/nested files inside the plugin directory which didn’t appear in FTP.
If you have SSH access to your blog,
Login your site via SSH.
Use SSH commands to nagivate “../wp-content/plugins/”.
Use ls -alto sees the full list of folders.
Delete the particular plugin folder with rm (Folder Name).
2.3. Fatal error undefined function is_network_admin()
The problem:
You receive “Fatal error undefined function is_network_admin()” when you log into WordPress admin after updating WordPress.
Solution: Manual Update
This error is caused by a fail WordPress version upgrade. Try a manual update.
Download the latest WordPress zip file and unzip it.
Backup your WordPress.
Rename wp-includesand wp-admindirectories to wp-includes.bak andwp-admin.bak.
Upload the wp-includes and wp-admin directories from unzipped folder to your web host via FTP.
Upload files from new wp-content to your existing wp-content folder. Replace and overwrite existing files.
Upload the new version of the rest of files from the root directory to your existing WordPress root directory.
Remove .maintenanceat your WordPress directory via FTP.
Login to WordPress admin and you will be given a link to URL like “http://domain.com/wordpress/wp-admin/upgrade.php”. Follow the link and instructions.
Clear your cache to see the changes if you have caching enabled.
For more details about WordPress manual update, read
2.4. Warning: Cannot modify header information – header already send by
The problem:
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.phpvia 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.
2.5. WordPress admin dashboard is not displaying properly
The Problem:
The WordPress admin dashboard is displaying without CSS. All the links are not arranged properly.
Solution 1: Proxy & Firewall
Check if your Internet connection is behind a proxy connection or firewall. Some of these tools are blocking CSS files making CSS files to not load properly. Try to clear your proxy or firewall cookies and cache, and press Ctrl + F5 to refresh your page.
Solution 2: Upgrade WordPress Plugins
If you have any WordPress plugins installed for the admin menu such as ‘Admin Drop Down Menu’ plugin or ‘Lighter Menus’ plugin, upgrade it. If it doesn’t work, try to deactivate it.
2.6. Fatal error: Allowed memory size of 33554432 bytes exhausted.
The problem:
Receive “Fatal error: Allowed memory size of 33554432 bytes exhausted” when trying 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 inPHP.ini by modifying the below line:
If the line is showing 64M in default, try 128M.
Solution 2: Edit .htaccess file
Add the script below to your .htaccess file.
Solution 3: Edit wp-config.php file
Add the script below to your wp-config.php file
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.
2.7. WordPress Admin Login 404 Issue
The problem:
You’re not able to login to WordPress admin. You receive a 404 error page instead.
Solution 1: Update the URL in database
If you’re able to access phpMyAdmin, try to update the URL in the database.
Login Panel, click onphpMyAdminunder Databases.
Select your WordPress database. For example: Username_wrdp1.
Go to wp_options, click on Browse.
Search for siteurl under the field option_name.
Click on Edit Field.
Change the URL in the input box of option_value.
At the bottom of a page, click the Go button.
Solution 2: Update Folder Attributes
Go to “/wp-admin” directory via FTP.
Right-click on the wp-admin directory and click on File Attributes.
Update the value to 755 and check Recurse into subdirectories if there’s an option.
Click OK.
Repeat step 1 to step 4 for /wp-content and wp-includes.
Open your web browser and try to login to WordPress admin. Press Ctrl +F5 to clear cache.
2.8. WordPress Blog and admin is showing blank page.
The problem:
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 currently 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 currently 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.
2.9. Lost Admin Password & Email Retrieval is not functioning
The Problem:
You lost your WordPress admin password, and have tried to enter your username or email address in the “Lost your password?” page but failed to receive any link to create a new password via email.
Here are 2 simple solutions to reset your WordPress admin password.
Solution 1: phpMyAdmin
Login Panel, click on phpMyAdmin under Databases.
Select your WordPress database. For example: Username_wrdp1.
Go to wp_users, click on Browse.
Look for your Username and click Edit.
Reset your password by inserting a new value into user_pass. Remember, it is case-sensitive.
Once you completed this, click the drop-down menu under Function, and choose MD5 from the menu.
At the bottom of the page, click the Go button.
Solution 2: Via FTP
Login your FTP account.
Go to “…/wp-content/themes/ (your active theme)/”, download the functions.phpfile.
Open functions.php and add the code below right after the first <?php:
Replace YourNewPassword with your desired new password. The “1” in the script is the user ID number in the wp_users table.
Upload the edited functions.php file to your FTP.
Remove the code and upload to your FTP after you’re able to login WordPress.
2.10. You are not authorized to view this page (403 error)
The problem:
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.
Solution: Enable Index.php
If your blog is hosted on a Windows server, this could be an error with Directory Indexes.
Login to the Control Panel.
Click on Web Options.
Go to Directory Indexes section.
Add index.php to the Directory Indexes.
The above are a few problems you can meet in the process using theme. I hope with the useful share from Cmsmart you can fix it. If you have any questions about the article please free feedback here to receive answer. Don't forget to use coupon code MAR_DL to get 18% for this item.
Welcome to the Cmsmart Store 5.0 tutorial, your comprehensive guide to building and managing an eCommerce store on WordPress. Whether you're a business owner looking to create an online...
In a digital age where the online presence of your printing business is paramount, the design of your website sets the stage for success. Enter CMSmart's newest breakthrough: Printshop...
In the dynamic world of graphic design, adaptability and innovation are paramount. Software tools that cater to the evolving needs of designers play a crucial role in shaping the...
Other Usefull Contents
You can see many success stories from our customers, and you may be one of them in
the future
Oops! The following errors occurred with your submission:
WE ARE IN LOVE WITH CLIENT
Recently, we discovered how client loving working with us by their 5 star
recommedation
1. Common Installation Problems
1.1. I see a directory listing rather than a web page
The web server needs to be told to view index.php by default. In Apache, use the DirectoryIndex index.php directive. The simplest option is to create a file named .htaccess in the installed directory and place the directive there. Another option is to add the directive to the web server’s configuration files.
1.2. I see lots of Headers already sent errors. How do I fix this?
You probably introduced a syntax error in editing wp-config.php.
1.3. My page comes out gibberish. When I look at the source I see a lot of "<?php ?>" tags.
If the <?PHP?> tags are being sent to the browser, it means your PHP is not working properly. All PHP code is supposed to be executed before the server sends the resulting HTML to your web browser. (That’s why it’s called a preprocessor.) Make sure your web server meets the requirements to run WordPress, that PHP is installed and configured properly, or contact your hosting provider or system administrator for assistance.
1.4. I keep getting an Error connecting to database message but I'm sure my configuration is correct.
Try resetting your MySQL password manually. If you have access to MySQL via shell, try issuing:
SET PASSWORD FOR ‘wordpressusername’@’hostname’ = OLD_PASSWORD (‘password’);
If you are using a version of MySQL prior to 4.1, use PASSWORD instead of OLD_PASSWORD. If you do not have shell access, you should be able to simply enter the above into an SQL query in phpMyAdmin. Failing that, you may need to use your host’s control panel to reset the password for your database user.
1.5 My image/MP3 uploads aren't working
If you use the Rich Text Editor on a blog that’s installed in a subdirectory, and drag a newly uploaded image into the editor field, the image may vanish a couple seconds later. This is due to a problem with TinyMCE (the rich text editor) not getting enough information during the drag operation to construct the path to the image or another file correctly. The solution is to NOT drag uploaded images into the editor. Instead, click and hold on the image and select Send to Editor.
2. The Most Common WordPress Error
The problem:
Your WordPress site is showing “Briefly unavailable for scheduled maintenance” after an automatic upgrade has completed.
Solution: Remove .maintenance file
A file named .maintenance is placed by WordPress during an automatic upgrade to notify visitors that the site in under a short maintenance. If an upgrade fails or is corrupted, the file will remain in the WordPress folder and won’t get deleted.
To remove the .maintenance file:
2.2. Can’t delete a plugin
The problem:
You’re not able to delete a plugin in WordPress admin. It still appears even after you have deleted the directory via FTP.
Solution: Delete plugin via Secure Shell (SSH)
Your plugin might have uploaded some hidden/nested files inside the plugin directory which didn’t appear in FTP.
If you have SSH access to your blog,
2.3. Fatal error undefined function is_network_admin()
The problem:
You receive “Fatal error undefined function is_network_admin()” when you log into WordPress admin after updating WordPress.
Solution: Manual Update
This error is caused by a fail WordPress version upgrade. Try a manual update.
For more details about WordPress manual update, read
https://codex.wordpress.org/Updating_WordPress#Manual_Update
2.4. Warning: Cannot modify header information – header already send by
The problem:
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
This error could happen on other files too. Read the error message carefully as it states the specific file name where the error occurred.
2.5. WordPress admin dashboard is not displaying properly
The Problem:
The WordPress admin dashboard is displaying without CSS. All the links are not arranged properly.
Solution 1: Proxy & Firewall
Check if your Internet connection is behind a proxy connection or firewall. Some of these tools are blocking CSS files making CSS files to not load properly. Try to clear your proxy or firewall cookies and cache, and press Ctrl + F5 to refresh your page.
Solution 2: Upgrade WordPress Plugins
If you have any WordPress plugins installed for the admin menu such as ‘Admin Drop Down Menu’ plugin or ‘Lighter Menus’ plugin, upgrade it. If it doesn’t work, try to deactivate it.
2.6. Fatal error: Allowed memory size of 33554432 bytes exhausted.
The problem:
Receive “Fatal error: Allowed memory size of 33554432 bytes exhausted” when trying 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 inPHP.ini by modifying the below line:
If the line is showing 64M in default, try 128M.
Solution 2: Edit .htaccess file
Add the script below to your .htaccess file.
Solution 3: Edit wp-config.php file
Add the script below to your wp-config.php file
Solution 4: Create a PHP.ini file to wp-admin folder
memory_limit = 64M;
2.7. WordPress Admin Login 404 Issue
The problem:
You’re not able to login to WordPress admin. You receive a 404 error page instead.
Solution 1: Update the URL in database
If you’re able to access phpMyAdmin, try to update the URL in the database.
At the bottom of a page, click the Go button.
Solution 2: Update Folder Attributes
2.8. WordPress Blog and admin is showing blank page.
The problem:
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 currently 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.
Solution 2: Reset plugin folder via FTP
2.9. Lost Admin Password & Email Retrieval is not functioning
The Problem:
You lost your WordPress admin password, and have tried to enter your username or email address in the “Lost your password?” page but failed to receive any link to create a new password via email.
Here are 2 simple solutions to reset your WordPress admin password.
Solution 1: phpMyAdmin
Solution 2: Via FTP
Replace YourNewPassword with your desired new password. The “1” in the script is the user ID number in the wp_users table.
2.10. You are not authorized to view this page (403 error)
The problem:
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.
Solution: Enable Index.php
If your blog is hosted on a Windows server, this could be an error with Directory Indexes.
The above are a few problems you can meet in the process using theme. I hope with the useful share from Cmsmart you can fix it. If you have any questions about the article please free feedback here to receive answer. Don't forget to use coupon code MAR_DL to get 18% for this item.
Many thanks!
Vincent
Sales Consultant Manager
Skype: live:vincent_4281
Phone/ WhatsApp: +84 978 847 058
Email: [email protected]