• Resolved moorthyit

    (@moorthyit)


    Hi,

    We got the error below when we installed the plugin in our site:

    Fatal error: Access level to NS_Cloner_Process::get_batches() must be public (as in class WP_Background_Process) in wp-content/plugins/ns-cloner-site-copier/abstracts/class-ns-cloner-process.php on line 458

    Can you please check it? I appreciate any help you can provide.

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author Never Settle

    (@neversettle)

    Hi there! Are you using the free version and updated to the latest? If you are still experiencing issues please email [email protected] to we can assist further…

    Thread Starter moorthyit

    (@moorthyit)

    Hi, I am using the free version. I fixed the issue by myself by changing the access level of NS_Cloner_Process::get_batches() to the ‘public’ instead of ‘private’ since it is a function of an abstract class ‘NS_Cloner_Process’. It worked.

    I hope it is the correct way to fix that issue. If not, please let me know.

    Thanks for the great plugin.

    Plugin Author Never Settle

    (@neversettle)

    Thanks! I’ve forwarded this issue over to our tier 2 team to have a closer look.

    I’m facing the same error too. May I know where do I go to change access level of NS_Cloner_Process::get_batches() to the ‘public’?

    I’m trying to activate Version 4.2.2.1

    Thread Starter moorthyit

    (@moorthyit)

    File: wp-content/plugins/ns-cloner-site-copier/abstracts/class-ns-cloner-process.php

    Search for the function name ‘ NS_Cloner_Process::get_batches() ‘, and it has the access level as private. You need to change it to ‘public’. I hope it helps.

    I saw there was a version 4.2.2.2 update this morning, with line 458 changed to public. However I got the following error this time:

    Fatal error: Declaration of NS_Cloner_Process::get_batches() must be compatible with WP_Background_Process::get_batches($limit = 0) in?/wp-content/plugins/ns-cloner-site-copier/abstracts/class-ns-cloner-process.php?on line?458

    Plugin Author Never Settle

    (@neversettle)

    Hey @dean-loh ,

    Thanks for bringing this up. Do you mind sharing a list of active plugins that you have active on your site. Also please share the PHP version you are using.

    Warm Regards

    I only have the following plugins active at the moment:

    1. Elementor 3.13.1?
    2. Elementor Pro 3.13.0?
    3. OoohBoi Steroids for Elementor 2.1.5

    Funny thing is, I have another site on the same server with even more plugins activated but doesn’t have such problem.

    • WordPress 6.2
    • PHP 8.1.17

    Plugin Author Never Settle

    (@neversettle)

    Hey @dean-loh,

    Thanks for the list, I believe it should be a conflict with various implementations of the WP_Background_Process class and we might have to put additional checks for this. I will try replicate the issue with the plugin list you shared

    I wonder if this has to do with WordPress 6.2? Since on the plugin page it’s mentioned that this plugin only tested until 6.0.3

    Plugin Author Never Settle

    (@neversettle)

    We always make sure to test with the latest version of WordPress

    Any luck with this? It’s been 3 weeks since…

    Plugin Author Never Settle

    (@neversettle)

    Hey @dean-loh

    Sorry for the delay. We did some tests with the plugins mentioned but we did not get any issues installing and activating the plugin. Please confirm if both sites have the same PHP rules

    This is definitely a PHP 8.x issue. The most recent version of the plugin works fine with PHP 7.4 but gives a Fatal Error upon activation when running PHP 8.0.

    Same problem with my website.

    My enviroment are:
    Nginx 1.18.0
    PHP 8.0.27
    WP 6.2.2

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Fatal error during plugin installation’ is closed to new replies.