clayp
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Missing WordPress Files- If you have a recent backup of your WordPress site, retrieve it. This can be from a backup plugin, hosting provider, or any other backup solution you use.
- Extract the backup files to a location on your computer. Look for the missing files within the backup.
- Use cPanel or FTP to upload the wp-login.php file and gain access for wp-admin.
- Install the “Health Check & Troubleshooting” plugin and navigate to Tools > Site Health in the Tools Tab, and check a file integrity.
- The plugin will generate a list of missing files, which you can address by uploading them via CPanel for resolution.
Forum: Installing WordPress
In reply to: Almalinux 9.3 compatibility with WordPressWordPress is compatible with all operating systems, including Windows, macOS, and Linux. Regardless of your operating system, you can install WordPress locally using appropriate tools. However, WordPress is more optimized for Unix/Linux-based systems and web server stacks. The majority of WordPress websites are hosted on Linux operating systems, often using stacks like LAMP (Linux, Apache, MySQL & PHP). For local installations on Windows, macOS, or Linux, you can utilize XAMPP, a popular PHP development environment.
And if there are any compatibility issues, they are more likely related to the versions of the software packages that you are using.
WordPress server requirements:
- Web server: Nginx or Apache with mod-rewrite module.
- Disk space: At least 1 GB.
- PHP: Version 8.0 or higher.
- Database: MySQL 5.015 or higher (An alternative is MariaDB, version 10.1 or higher)
- RAM (Random Access Memory): At least 512 MB.
- CPU (Central Processing Unit): At least 1.0 GHz.
Forum: Fixing WordPress
In reply to: Re install WordPressI checked your link, I suggest you to contact your hosting provider first.
To Reinstall WordPress, you can follow the below options:
Option 1: Using WordPress dashboard
- Go to your WordPress dashboard.
- Navigate to the Updates and click on Re-install now.
- It will automatically download and reinstall latest wordpress version.
Option 2: Using cPanel
- Download latest WordPress version and extract folder.
- once downloaded, delete the wp-content folder.
- Upload all the files and folders inside public_html directory.
- Now, you have your latest WordPress version.
Forum: Fixing WordPress
In reply to: Modsecurity crs4 rule exclusions for WordPress Rest API?As you said It showed a 403 forbidden error, because of HTTP status code sent by the server when the client (user) initiating the request doesn’t have permission to access a specific page or resource. 1. Contact your host It is a server-side error, and a recommended and safer solution for fixing the error is to contact your hosting provider. Reach out to their support team, describe the issue, and they will likely resolve it by disabling specific security rules or whitelisting the requested page. 2. Find whitelist.conf or exclude.conf file and add following code. <locationmatch "/wp-admin/page.php"> SecRuleRemoveById 300013 SecRuleRemoveById 300015 SecRuleRemoveById 300016 SecRuleRemoveById 300017 SecRuleRemoveById 949110 SecRuleRemoveById 980130 </locationmatch> <locationmatch "/wp-admin/post.php"> SecRuleRemoveById 300013 SecRuleRemoveById 300015 SecRuleRemoveById 300016 SecRuleRemoveById 300017 SecRuleRemoveById 949110 SecRuleRemoveById 980130 </locationmatch> 3. Disable mod_security for specific URL With this approach, you can deactivate mod_security for particular URLs rather than for your entire site, providing a more secure option. You can define the URLs to match using regex within the <If> statement below. <IfModule mod_security.c> <If "%{REQUEST_URI} =~ m#/admin/#"> SecFilterEngine Off SecFilterScanPOST Off </If> </IfModule>Forum: Everything else WordPress
In reply to: Connection not secure/Certificate is not valid1. Install an SSL certificate
1. Login to your cPanel account.
2. Navigate to the security, and click on SSL/TLS.
3. Choose Manage SSL sites Under the INSTALL AND MANAGE SSL FOR YOUR SITE (HTTPS) option.
4. Scroll down to the page, select your domain name and Install Certificate.2. Force an HTTPS connection
Enabling HTTPS forces visitors to automatically redirect to the secure URL as soon as they access your website.3. Reinstall an SSL certificate
An SSL installation that is invalid or broken can result in your website displaying a “Can’t Provide a Secure Connection” message. The optimal solution is to resolve this issue by reinstalling the SSL certificate.
4. Reset the SSL Cache and Clear Browser Cache
To clear the SSL state on Windows, enter “Control Panel” in the Windows search tab. In the Network and Internet panel, choose “View network status and tasks,” then click on “Internet Options.” In the Internet Properties box, go to the Content tab and click “Clear SSL state.”
5. Disable QUIC Protocol Support
To clear data Google Chrome, click the three dots in the upper right-hand corner, go to “More tools,” and select “Clear browsing data” to clear the data.Disable QUIC Protocol Support
1. Enter chrome://flags/#enable-quic in the browser address bar.
2. Locate the Experimental QUIC protocol option, typically found at the top of the page.
3. Select Disabled from the drop-down box.Forum: Everything else WordPress
In reply to: Can’t update WordPress 6.4.3First, Clear your website cache and create a backup using a plugin such as BlogVault.
Then, delete the .maintenance file from your site’s server, using your cPanel or FTP client.
- Log into your cPanel account.
- Navigate to Files > File Manager.
- Inside public_html, search .maintenance file.
- Right-click on it and choose Delete.
After that check your WordPress dashboard, and you’ll see that the error “An Automated WordPress Update Has Failed to Complete” has been resolved.
If you can’t find the .maintenance file then, go to File Manager > Settings and select Show Hidden Files from the window that pops up.
- Check for conflicts: Theme or plugin conflicts can cause WordPress updates to fail. You can deactivate plugins one by one and check which plugin is the cause.
- Check for database or server issues: Issues with the site’s database or server can cause WordPress updates to fail.
- Check for maintenance mode: Maintenance mode can cause WordPress updates to fail.
- Check the permission: Permission errors can cause WordPress updates to fail.
- Check for other causes: Other causes of WordPress update failures may be problems with the WordPress REST API.
- Manually update – using WordPress dashboard
- Log into your WordPress dashboard. Navigate to the Updates link. If there’s an update, click on the corresponding link.
- Inspect your wp-admin dashboard; if a database update is required, a pop up will appear. Click on it to finalize the update.
2. Manually update – using cPanel
Here are the steps to update WordPress manually:
1. Download the latest WordPress version to your computer.
2. Log in to cPanel and access File Manager.
3. Go to the root directory of your site (public_html).
4. Delete the wp-content and wp-admin directories.
5. Click on the “Upload” to upload the zipped WordPress file to your site server.
6. Extract the zipped file.
7. Move the wp-admin and wp-includes folders to the root directory, along with any loose files. Only the wp-content folder should remain.
8. Compare the two wp-content folders and only move files and folders that don’t already exist on your site to avoid unintentional deletion of plugins, themes, and media.
9. In File Manager, locate the version.php file in the wp-includes folder and note the value for $wp_db.
10. Close File Manager, open phpMyAdmin from cPanel, find your site’s database and open the wp_options table. Check the value for db_version and ensure it matches the version number from the version.php file. Update if necessary.
11. Log in to wp-admin, check the dashboard for messages, and follow any instructions to update the database.
After completing these steps, add “/wp-admin/about.php” to your site URL to verify if the WordPress version updated correctly.
Forum: Installing WordPress
In reply to: User roleEditor Role:
Editors have the same permissions as Authors, allowing them to edit and publish posts authored by other users. They have complete access to the content sections of your website, allowing them to edit or publish pages, including private pages and posts created by others. Editors can also oversee categories and moderate comments. However, they can’t access to website settings, themes, or plugins.
They have the authority to add, edit, publish, and delete any posts on the site, including the ones written by others.
You can use the below plugins for roles and permission.
1. Members
2. Ultimate Member
3. User Role Editor
4. PublishPress Capabilities
Forum: Fixing WordPress
In reply to: Old blog posts won’t show on blog pageIt could be possible if you started with one theme and later switched to another theme. To display your blog posts on either the front page of your site or a dedicated Posts page, some changes are required to set up the post.
- Log into your WordPress dashboard.
- Navigate to the Post > Edit.
- On the right side of the page, click on Visibility and set it as Public.
Forum: Fixing WordPress
In reply to: Header Section & Footer Logo Missing – News 12 WordPress ThemeHeader Section:
Make sure that you are using the latest version of the WordPress Newspaper 12 theme. If not, consider updating the theme to the latest version. If the problem is not fixed, try reinstalling the theme to fix any potentially corrupted files. And check the Newsletter theme documentation.Footer logo:
Some themes have a predefined logo size, and if the logo exceeds this size, it may not display correctly. It is recommended to check the theme documentation and modify the logo size as per the guidelines provided.When using the default templates, you need to upload your logo in the Theme Panel > Header section. Expand the Logo & Favicon section and use the provided options: Logo upload (default logo for desktop), Retina Logo Upload (Retina Version for retina-ready devices), and Favicon.
Forum: Fixing WordPress
In reply to: Error establishing a database connectionHello @deedslag
As you said you face “Error Establishing A Database Connection”, which happens when the website refuses to connect to the WordPress database.
There is a high chance that the issue might be due to insufficient server resources. If not then check the below solutions.
Solutions:
–>Error establishing a database connection
- Check your database server
The error message may arise on your WordPress site when your MySQL server is unavailable. Various factors can generate this error, it commonly occurs due to an excessive number of connections.
A database server has a maximum limit on simultaneous client connections. When this limit is reached, additional connections may be denied. Please reach out to your hosting provider to inspect and address potential issues with your MySQL server.
- Connect to your control panel.
- Inside public_html, create one php file.
- And, add the following code:
<?php
$link = mysqli_connect(‘localhost’, ‘username’, ‘password’);
if (!$link) {
die(‘Could not connect: ‘ . mysqli_error());
}
echo ‘Connected successfully’;
mysqli_close($link);
?>Replace username, database name and password.
- Access this file in browser
https://domain-name/test.php
- Check the Database Login Credentials
1. Open the file manager from the cPanel account.
2. Open your wp-config.php file.
3. Next, verify this data in your database. For this go to Databases > phpMyAdmin.
4. Make sure that both data should be the same. - Fix the corrupted files
A corruped theme or plugin is one of the factors that cause file corruption.
Themes:
1. To solve this, navigate to Apperance > Themes from your WordPress dashboard.
2. Choose another theme and check your page, then check whether it solved the issue or not. If not then the issue could be a corrupted plugin. In that case, consider deactivating all plugins and gradually reactivating them one by one to pinpoint the problematic ones.Plugins:
1. Go to the File Manager.
2. Inside public_html, choose wp-content folder.
3. Rename the plugins folder.By taking this step, you will deactivate all your plugins simultaneously. The same process can be used for disabling all WordPress themes. However, it is crucial not to disable both themes and plugins concurrently, as this can significantly complicate the process of identifying the root cause of the problem.
If the error disappears after renaming the plugins folder, it indicates that one of the plugins is causing the issue.
4. Repair the database in WordPress
Add the following code in your wp-config.php file.
define(‘WP_ALLOW_REPAIR’, true);
Next go to http://www.your-domain.com/wp-admin/main/repair.php in your web browser.
Two repair options will be presented – select the one that suits your needs.
Once the repair process is over, check your WordPress site to verify if it has returned to its normal state. If successful, promptly remove the function from your wp-config.php file to prevent potential misuse, as the repair page can be accessed by anyone without the need for login credentials.
–>503 error
1. Temporarily Disable Your Content Delivery Network
Occasionally, the 503 error may not originate from an issue on your website but from your Content Delivery Network (CDN). If you use a CDN, a swift method to determine this is to temporarily deactivate it.
2. Review logs and enable WP_DEBUG
Add the following code in your wp-config.php file.
define( ‘WP_DEBUG’, true );
define( ‘WP_DEBUG_LOG’, true );
define( ‘WP_DEBUG_DISPLAY’, false );3. As above mentioned, disable and re-enable your plugins and theme.
Forum: Fixing WordPress
In reply to: Error establishing a database connectionHello @deedslag
As you said you face “Error Establishing A Database Connection”, which happens when the website refuses to connect to the WordPress database.
Solutions:
–>Error establishing a database connection
- Check your database server
The error message may arise on your WordPress site when your MySQL server is unavailable. Various factors can generate this error, it commonly occurs due to an excessive number of connections.
A database server has a maximum limit on simultaneous client connections. When this limit is reached, additional connections may be denied. Please reach out to your hosting provider to inspect and address potential issues with your MySQL server.
- Connect to your control panel.
- Inside public_html, create one php file.
- And, add the following code:
<?php
$link = mysqli_connect(‘localhost’, ‘username’, ‘password’);
if (!$link) {
die(‘Could not connect: ‘ . mysqli_error());
}
echo ‘Connected successfully’;
mysqli_close($link);
?>Replace username, database name and password.
- Access this file in browser
https://domain-name/test.php
- Check the Database Login Credentials
1. Open the file manager from the cPanel account.
2. Open your wp-config.php file.
3. Next, verify this data in your database. For this go to Databases > phpMyAdmin.
4. Make sure that both data should be the same. - Fix the corrupted files
A corruped theme or plugin is one of the factors that cause file corruption.
Themes:
1. To solve this, navigate to Apperance > Themes from your WordPress dashboard.
2. Choose another theme and check your page, then check whether it solved the issue or not. If not then the issue could be a corrupted plugin. In that case, consider deactivating all plugins and gradually reactivating them one by one to pinpoint the problematic ones.Plugins:
1. Go to the File Manager.
2. Inside public_html, choose wp-content folder.
3. Rename the plugins folder.By taking this step, you will deactivate all your plugins simultaneously. The same process can be used for disabling all WordPress themes. However, it is crucial not to disable both themes and plugins concurrently, as this can significantly complicate the process of identifying the root cause of the problem.
If the error disappears after renaming the plugins folder, it indicates that one of the plugins is causing the issue.
4. Repair the database in WordPress
Add the following code in your wp-config.php file.
define(‘WP_ALLOW_REPAIR’, true);
Next go to http://www.your-domain.com/wp-admin/main/repair.php in your web browser.
Two repair options will be presented – select the one that suits your needs.
Once the repair process is over, check your WordPress site to verify if it has returned to its normal state. If successful, promptly remove the function from your wp-config.php file to prevent potential misuse, as the repair page can be accessed by anyone without the need for login credentials.
–>503 error
1. Temporarily Disable Your Content Delivery Network
Occasionally, the 503 error may not originate from an issue on your website but from your Content Delivery Network (CDN). If you use a CDN, a swift method to determine this is to temporarily deactivate it.
2. Review logs and enable WP_DEBUG
Add the following code in your wp-config.php file.
define( ‘WP_DEBUG’, true );
define( ‘WP_DEBUG_LOG’, true );
define( ‘WP_DEBUG_DISPLAY’, false );3. As above mentioned, disable and re-enable your plugins and theme.
Forum: Fixing WordPress
In reply to: I can’t login to wp admin even with the right credentialsPlease check your database, it may be corrupted and reset your password if possible.
- Reset password
You can reset the password from the WordPress dashboard, by clicking on Reset Password or Lost Your Password.
OR
1. Log into your cPanel or FTP.
2. Navigate to Databases > phpMyAdmin.
3. Choose your database, choose the wp_users table and change the username and password. - Security plugins block you
If you use a WordPress security plugin, you might unintentionally restrict your access. For example, several WordPress security plugins come with functionality to restrict login attempts, which may temporarily ban you if you input an incorrect username/password multiple times.
You have two options: wait, as typically the block is temporary and you can retry after a while, or you can manually disable the security plugin to regain immediate access. - Check your Site URL
1. Log into your cPanel account.
2. Go to the Files > File Manager.
3. Inside public_html, open the wp-config.php file and check both URLs. - Check your File permission
Ensure that wp-login.php is set to 664.
Ensure that the wp-admin folder is set to 775.
- This reply was modified 2 years, 3 months ago by clayp.
Forum: Installing WordPress
In reply to: My theme (newspaper) does not work on mobile devicesImportant point: Regular pages, such as the Contact Us page, are present on the desktop version of the Newspaper theme only, not appear on the “Mobile theme.”
- Solved the issue with the Newspaper mobile theme path by toggling the on/off button.
To do this, navigate to Jetpack > Settings > Optimize your site for smartphones > OFF. - Deactivating the Jetpack Plugin may solve your problem. This can be due to a conflict between the theme and Jetpack for creating a mobile-friendly site.
Forum: Fixing WordPress
In reply to: error message while trying to authenticate- Rename plugins:
First, you need to rename the Wordfence plugin folder, Have doubts about the success of 2FA or reCAPTCHA, or perhaps question whether they are not appearing initially for authentication. I also suggest to disabling other plugins (In your case Jetpack and others that you currently use) and trying to log into your dashboard. - Rename theme:
1. Log into your cPanel account or FTP.
2. Navigate to public_html > wp-content > theme.
3. Rename the theme folder, and try to access your dashboard. - Corrupted login file:
Back up WordPress before deleting the login file.
Download the most recent version of WordPress and then log into your cPanel account or FTP. Navigate to public_html > wp-config file. Add your login details. Now try to log into your dashboard.
- This reply was modified 2 years, 3 months ago by clayp.
Forum: Fixing WordPress
In reply to: Website is not opening- Check Your File Permissions
1. connect to your FTP account.
2. Navigate to the public_html.
3. Right-click on it and choose Permission.
Make sure that the numeric value in the Permission box is set to 744 or 775.
Set the file permission to 644 or 640. - Check .htaccess file
Access .htaccess file by logging in cPanel. Navigate to Files and choose File Manager. Inside public_html look out for the .htaccess file.
First, take a backup of that, then create a new file and add the following code:
RewriteEngine On Rewrite rule to redirect requests to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]- Deactive all plugins
1. Log into your FTP account.
2.Navigate to the public_html > wp-content folder.
3.Rename the Plugin folder. (For ex. plugin_backup).
4. Go back to the browser and refresh the page.
5. If the website functions correctly after this change, it indicates that the plugins were causing the error. Rename your “plugins_backup” folder back to “plugins“. - Hotlink Protection
Hotlink protection is a feature that prevents other websites from using your site’s images. If you wish to restrict Google Images, Pinterest, or any other site from displaying your images, hotlink protection proves beneficial. Additionally, it aids in managing site bandwidth and reducing server resource consumption.
At times, activating hotlink protection on your CDN or hosting may result in a 403 error if not configured correctly. Hence, it is strongly advised to configure it carefully and then check the site’s status.