Archives: Issues

Get a List of issues with fixes on various topics.

Here, you will find a collection of issues related to various programming languages, career, business, and technology. These blog issues help you to have good knowledge in your domain. You can find the latest news on major topics to keep yourself updated with the market.

Tutorials Class provides you a list of tools and resources for your projects and websites. You can also find some free stuff to download.

WordPress Default Sitemap is not working?

WordPress has added XML Sitemaps feature in version 5.5. If you have WordPress 5.5 or later, your website sitemap URL is: https://your-website.com/wp-sitemap.xml

Sometimes default sitemap does not work and throws an error. Here are some of the common fixes for WordPress default sitemap issues:

Fix 1: Update WordPress

Check if you have WordPress 5.5 or later. If you are using old WordPress, you need to update.

Fix 2: Enable Search Engine Settings

Sitemaps will be disabled if search engines are discouraged. Check in Dashboard > Settings > Reading

Fix 3: Update Permalink

Make sure that pretty permalinks are enabled. All settings should work except Plain/Default.

Fix 4: Disable/Enable if any plugin setting

Check if Yoast or any plugin disables default sitemap. Also once try to disable sitemap if any plugin is generating it.

Fix 5: Remove Filter code

This code is used to disable sitemap completely. Remove this if you find this in your theme.

add_filter( 'wp_sitemaps_enabled', '__return_false' );

Additionally, you can try returning true in above as well but that is not required so may not help much.

Fix 6: Switch theme or Disable plugins.

There are chances that your theme or any plugin still have some issue or conflict. You can switch theme and disable the plugin to identify the problematic item. There you can act accordingly.

Important Links:

Hope you will be able to Fix your sitemap URL in

mysqli extension is missing in PHP 7.4 – Fix using cPanel

Common mysqli Extension Issue:

  • When we upgrade PHP 7.4, WordPress is broken
  • When we switched to PHP 7.4 in cPanel, mysqli extension is missing.

In cPanel (PHP Selector) or in PHPInfo(), you can see in the module list, that mysqli is not enabled by default. Now, if you trying to enable mysqli in cPanel (PHP Selector), it shows that it can not be activated because of other extension conflicts.


Fix/Solution:

The possible conflict is because of nd_mysqli is enabled.

disable nd_mysqli extension and enable mysqli extension.


Enable the following mysqli extensions:

  • mysqlnd
  • nd_mysqli
  • nd_pdo_mysql

Disable following extensions:

  • mysqli
  • pdo_mysql

NodeJS – Gulp – AssertionError [ERR_ASSERTION] – Fix

While migrating from Gulp 3.x to Gulp 4.x, these are some AssertionError errors we may getting:

Errors:

  • AssertionError [ERR_ASSERTION]: Task function must be specified
  • AssertionError [ERR_ASSERTION]: Task never defined:
  • The following tasks did not complete: Did you forget to signal async completion?

How to Fix Assertion Error?

Here are few points to take care task definition and execution:

  1. First define task
  2. Use return
  3. Then execute with gulp.series()

Here, is the quick Gulp code which is working with Gulp v4:

// First define task with Return
gulp.task('css-minify', function () {
    return gulp.src('assets/images/*.*')
        .pipe(smushit({verbose: true}))
        .pipe(gulp.dest('assets/images'));
});

// Then execute task with bracket '()' instead of '[]'
gulp.task('default', gulp.series('css-minify'));

Elementor not loading on Edit Page

Elementor is the one of the most popular Website Builder plugins in WordPress.

Sometimes, when we click on “Edit with Elementor” for any page, it is stuck on the loading screen. There are some of the common fixes mentioned in the Official Elementor guide. Most of these issues are related to a resource issue, a conflict with another plugin or theme, or a server configuration. Here, we have provided tips similar to the Elementor guide as well as some additional fixes.

Note: It is important to backup your WordPress website before performing these checks, so that you do not lose any data especially during theme/plugin activations.


Check PHP version & Memory Limit:

Elementor tools allows you to check if current PHP related configuration supports Elementor or not.

  • To check PHP requirement related issues, Go to: WordPress Dashboard > Elementor > System Info.

Update Elementor:

Go to Dashboard > Updates and click the Check Again button if there is (Elementor) plugin update


Switch Theme:

There are chances that currently activated theme has compatibility issue with Elementor plugin.


Site Health

Site Health can tell you if WordPress Ajax, REST API or other features are not working properly, therefore Elementor does not load. See, if you find any issue related to Loopback request or REST API, so that you can debug accordingly.

  • Go to: WordPress Dashboard > > Tools > Site Health to get a hint about the issue.

Deactivate other plugins:

There are high chances that some plugin is having conflict with Elementor. You need to deactivate other plugins to find where the issue is.

  • Deactivate all of your plugins except Elementor and Elementor Pro.

Re-install WordPress:

This is rare but sometimes WordPress is not installed properly after WordPress update.

  • If an issue occurred after WordPress update, you can try WordPress re-install to fix the issue.

These tips will help you to identify the issue related to Elementor loading. If there is any theme/plugin conflict, you need to stop using it or contact their developer.

In case, you find something in Site Health and System Info, you may need to take help from the Server/Hosting Team to meet the requirement.

Important links: