Title: Fatal error during plugin installation
Last modified: May 8, 2023

---

# Fatal error during plugin installation

 *  Resolved [moorthyit](https://wordpress.org/support/users/moorthyit/)
 * (@moorthyit)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-during-plugin-installation-2/)
 * 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)

1 [2](https://wordpress.org/support/topic/fatal-error-during-plugin-installation-2/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/fatal-error-during-plugin-installation-2/page/2/?output_format=md)

 *  Plugin Author [Never Settle](https://wordpress.org/support/users/neversettle/)
 * (@neversettle)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-during-plugin-installation-2/#post-16720951)
 * Hi there! Are you using the free version and updated to the latest? If you are
   still experiencing issues please email [support@neversettle.it](https://wordpress.org/support/topic/fatal-error-during-plugin-installation-2/support@neversettle.it?output_format=md)
   to we can assist further…
 *  Thread Starter [moorthyit](https://wordpress.org/support/users/moorthyit/)
 * (@moorthyit)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-during-plugin-installation-2/#post-16721484)
 * 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](https://wordpress.org/support/users/neversettle/)
 * (@neversettle)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-during-plugin-installation-2/#post-16723411)
 * Thanks! I’ve forwarded this issue over to our tier 2 team to have a closer look.
 *  [Dean Loh](https://wordpress.org/support/users/dean-loh/)
 * (@dean-loh)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-during-plugin-installation-2/#post-16723584)
 * 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](https://wordpress.org/support/users/moorthyit/)
 * (@moorthyit)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-during-plugin-installation-2/#post-16723893)
 * 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.
 *  [Dean Loh](https://wordpress.org/support/users/dean-loh/)
 * (@dean-loh)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-during-plugin-installation-2/#post-16724628)
 * 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](https://wordpress.org/support/users/neversettle/)
 * (@neversettle)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-during-plugin-installation-2/#post-16725118)
 * Hey [@dean-loh](https://wordpress.org/support/users/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
 *  [Dean Loh](https://wordpress.org/support/users/dean-loh/)
 * (@dean-loh)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-during-plugin-installation-2/#post-16725138)
 * 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](https://wordpress.org/support/users/neversettle/)
 * (@neversettle)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-during-plugin-installation-2/#post-16725153)
 * Hey [@dean-loh](https://wordpress.org/support/users/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
 *  [Dean Loh](https://wordpress.org/support/users/dean-loh/)
 * (@dean-loh)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-during-plugin-installation-2/#post-16725188)
 * 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](https://wordpress.org/support/users/neversettle/)
 * (@neversettle)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-during-plugin-installation-2/#post-16725286)
 * We always make sure to test with the latest version of WordPress
 *  [Dean Loh](https://wordpress.org/support/users/dean-loh/)
 * (@dean-loh)
 * [3 years ago](https://wordpress.org/support/topic/fatal-error-during-plugin-installation-2/#post-16784747)
 * Any luck with this? It’s been 3 weeks since…
 *  Plugin Author [Never Settle](https://wordpress.org/support/users/neversettle/)
 * (@neversettle)
 * [3 years ago](https://wordpress.org/support/topic/fatal-error-during-plugin-installation-2/#post-16785013)
 * Hey [@dean-loh](https://wordpress.org/support/users/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
 *  [Cameron Barrett](https://wordpress.org/support/users/cameronbarrett/)
 * (@cameronbarrett)
 * [2 years, 12 months ago](https://wordpress.org/support/topic/fatal-error-during-plugin-installation-2/#post-16817058)
 * 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.
 *  [fedeanimation](https://wordpress.org/support/users/fedeanimation/)
 * (@fedeanimation)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-during-plugin-installation-2/#post-16852418)
 * Same problem with my website. 
   My enviroment are:Nginx 1.18.0PHP 8.0.27WP 6.2.2

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/fatal-error-during-plugin-installation-2/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/fatal-error-during-plugin-installation-2/page/2/?output_format=md)

The topic ‘Fatal error during plugin installation’ is closed to new replies.

 * ![](https://ps.w.org/ns-cloner-site-copier/assets/icon-256x256.gif?rev=2323308)
 * [NS Cloner - Site Copier](https://wordpress.org/plugins/ns-cloner-site-copier/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ns-cloner-site-copier/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ns-cloner-site-copier/)
 * [Active Topics](https://wordpress.org/support/plugin/ns-cloner-site-copier/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ns-cloner-site-copier/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ns-cloner-site-copier/reviews/)

 * 16 replies
 * 6 participants
 * Last reply from: [Karena Kreger](https://wordpress.org/support/users/karenalenore/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-during-plugin-installation-2/page/2/#post-16868639)
 * Status: resolved