mdshak
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Hola Theme Site Logo not displayingThere is a rectangular white box. Please click here to get the media image upload box for your logo.
Forum: Everything else WordPress
In reply to: Photos are not displaying properly on my websiteI discovered after troubleshooting the problem that you had inadvertently erased these pictures. To use it, simply upload the pictures once again.
Forum: Fixing WordPress
In reply to: Post Categories problemWe need more information to get your issue exactly. Just provide some screenshots and specific page URL.
Forum: Fixing WordPress
In reply to: Uncaught Error: Class ‘WP_REST_Revisions_Controller’ not foundThe error you’re encountering, “Class ‘WP_REST_Revisions_Controller’ not found,” suggests that WordPress is unable to find the
WP_REST_Revisions_Controller
class, which is likely a part of the REST API infrastructure for handling revisions. This usually points to a corrupted or incomplete WordPress installation.Please contact your hosting provider to re-install WordPress at your website.
Forum: Fixing WordPress
In reply to: Hola Theme Site Logo not displayingTo change the logo, go to Admin > Appearance > Editor > Patterns > Choose Header Pattern to change the logo of theme.
Forum: Fixing WordPress
In reply to: Edit Button of Page is not workingWhen encountering the “There has been a critical error on this website” message in WordPress, follow these steps to debug and resolve the issue. First, enable debugging mode by adding the following lines to your
wp-config.php
file:define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false );
This will log errors to the
wp-content/debug.log
file, helping you identify the root cause. Common issues include plugin or theme conflicts, PHP memory limits, and database connection errors. Deactivate all plugins via the WordPress admin panel or by renaming theplugins
folder inwp-content
. If the error resolves, reactivate plugins one by one to pinpoint the problematic plugin. Switch to a default theme like Twenty Twenty-One to rule out theme issues. Increase PHP memory limits by addingdefine('WP_MEMORY_LIMIT', '256M');
towp-config.php
. Check the database connection settings inwp-config.php
, ensuring they match your hosting credentials. After identifying and fixing the issue, disable debugging mode for security purposes by removing or commenting out the debugging lines inwp-config.php
.Forum: Fixing WordPress
In reply to: Hola Theme Site Logo not displayingThis is not the logo of theme. It is the site icon of website that displays in browser tab. This is displaying perfectly.
Forum: Fixing WordPress
In reply to: Hola Theme Site Logo not displayingI am not able to even at page source code. Have you setup your logo in page using the theme customizer?
- This reply was modified 3 months, 1 week ago by mdshak.
You can try this code with new hook template_include. This will work definitely.
function assign_category_template($category_template) {
if (is_single()) {
global $post;
if ('post' !== $post->post_type) {
return;
}
// Define category-to-template mappings
$categories_to_templates = [
'motherhood' => 'single-motherhood',
'business' => 'single-business',
'lifestyle' => 'single-lifestyle'
];
foreach ($categories_to_templates as $category => $template_slug) {
if (has_category($category, $post_id)) {
$category_template = locate_template($template_slug.'.php');
}
}
}
return $category_template;
}
add_filter('template_include', 'assign_category_template');Forum: Installing WordPress
In reply to: WP is telling me to update from a new to old versionPlease contact and check Bluehost support resources or contact their support team to see if there are any ongoing issues related with WordPress. Because hosting manager has the right to check everything with your WordPress installation.
- This reply was modified 3 months, 3 weeks ago by mdshak.
Forum: Everything else WordPress
In reply to: Creating a Website for Specific UsersI am not getting your requirement exactly. Please explain in detail. I would like to suggest in right of direction.
Forum: Developing with WordPress
In reply to: Qns on wordpress pluginFor custom WordPress plugins, especially those designed for specific purposes like enhancing WooCommerce websites, there is no requirement to have the plugin verified or approved by any external entity to use it on your site. You can simply upload and activate the plugin directly through your WordPress admin dashboard.
You do not intend to publish the plugin publicly on the WordPress Plugin Repository, there is no need for any verification or approval process. Custom plugins can be used freely on any WordPress site as long as they meet the site’s requirements and do not conflict with other plugins or themes.
Forum: Fixing WordPress
In reply to: Variable Product in WordPressBack your website and create your staging site to take next steps of debugging. Ensure that you are using the latest version of theme, WooCoomerce & WordPress itself. Please check through default WooCommerce Storefront theme.
Use Health Check & Troubleshooting plugin allows you to troubleshoot your WordPress site without affecting visitors. You can enable troubleshooting mode, which deactivates all plugins and switches to the default theme only for your session. You can then reactivate plugins one by one in troubleshooting mode.
Forum: Fixing WordPress
In reply to: upload path is not validWhen dealing with issues related to the WordPress upload path, there are several steps you can take to debug and resolve the problem. Here’s a structured approach to help you identify and fix the issue.
Ensure that the
wp-content/uploads
directory has the correct permissions. The typical permission setting for directories is755
and for files644
. You may ask to help from hosting manager.Ensure that the upload path is correctly set in the WordPress settings.
- Go to
Settings
>Media
. - Check the “Store uploads in this folder” field. It should typically be
wp-content/uploads
.
Enable WordPress debugging to get more information about the issue.
- Add or update the following lines in your
wp-config.php
:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false); // Optional: Disable display of errors on the siteFollowing these steps should help you identify and resolve the issue with the WordPress upload path. If the problem persists, please provide any specific error messages or logs you encounter, and I can help further debug the issue.
If tests are not running, check the GitHub Actions logs for any errors or misconfigurations. Ensure all necessary dependencies are installed and properly configured. Verify the database connection settings in the
wp-config.php
andwp-tests-config.php
files. Ensure the scripts and files have the necessary permissions to execute.If you encounter specific errors, please share the logs or error messages for more detailed assistance.