Title: PHP error on activate
Last modified: March 22, 2020

---

# PHP error on activate

 *  [Sabuj Kundu](https://wordpress.org/support/users/manchumahara/)
 * (@manchumahara)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/php-error-on-activate/)
 * On activate I got php error and wordpress plugin manager dashboard showed some
   xxx character …type error.
 * As I have debug enabled in wordpress I found this
 * [22-Mar-2020 20:08:52 UTC] PHP Warning: array_slice() expects parameter 1 to 
   be array, boolean given in C:\xampp\htdocs\wordpress\wp-content\plugins\wp-crowdfunding\
   includes\woocommerce\Templating.php on line 245
 * [22-Mar-2020 20:08:52 UTC] PHP Warning: array_diff(): Argument #2 is not an array
   in C:\xampp\htdocs\wordpress\wp-content\plugins\wp-crowdfunding\includes\woocommerce\
   Templating.php on line 246
 * [22-Mar-2020 20:08:52 UTC] PHP Warning: count(): Parameter must be an array or
   an object that implements Countable in C:\xampp\htdocs\wordpress\wp-content\plugins\
   wp-crowdfunding\includes\woocommerce\Templating.php on line 248

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Md. Mehedi Hasan](https://wordpress.org/support/users/mehedih/)
 * (@mehedih)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/php-error-on-activate/#post-12580853)
 * Hello there,
 * I apologize for the delay.
 * You had to face the Error on the activation problem because of your Crowdfunding
   theme templating. Maybe you are currently using the **WP Crowdfunding** supported
   theme. Rename the folder inside your current theme **wpcftemplate** and then 
   check.
 * Require the following files for the CF Template Theme:
 * index.php
    style.css wpneo-listing.php single-crowdfunding.php wpneo-functions.
   php
 * I hope it will work for you. Let me know if you have more queries or issues.
 * Regards,
    Mehedi
 *  Thread Starter [Sabuj Kundu](https://wordpress.org/support/users/manchumahara/)
 * (@manchumahara)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/php-error-on-activate/#post-12581131)
 * [@mehedih](https://wordpress.org/support/users/mehedih/) using default theme.
   try to activate on a fresh wordpress.My php version 7.2.3
 *  [Md. Mehedi Hasan](https://wordpress.org/support/users/mehedih/)
 * (@mehedih)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/php-error-on-activate/#post-12581581)
 * Hi there,
 * We have tried to reproduce the issue locally with the fresh installation as you
   have described. But we couldn’t manage to reproduce that. It’s working fine for
   us.
 * I would request you to come to our live chat or email at `support@themeum.com`
   for further investigation.
 * Regards
 *  Thread Starter [Sabuj Kundu](https://wordpress.org/support/users/manchumahara/)
 * (@manchumahara)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/php-error-on-activate/#post-12583904)
 * [@mehedih](https://wordpress.org/support/users/mehedih/) can you try to produce
   without woocommerce installed? just try in a fresh wordpress and this plugin,
   see what happens. Please mention that my php version My php version 7.2.3
 * If you still can not produce, I will contact via email
 *  Thread Starter [Sabuj Kundu](https://wordpress.org/support/users/manchumahara/)
 * (@manchumahara)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/php-error-on-activate/#post-12583912)
 * [@mehedih](https://wordpress.org/support/users/mehedih/) also please keep debug
   enabled
 *     ```
       define('WP_DEBUG', true);
       define( 'WP_DEBUG_DISPLAY', true);
       define( 'WP_DEBUG_LOG', true);
       ```
   
 *  [Md. Mehedi Hasan](https://wordpress.org/support/users/mehedih/)
 * (@mehedih)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/php-error-on-activate/#post-12590677)
 * Hi there,
 * Thanks a lot for the suggestion. Please download the file from this link: [https://www.dropbox.com/s/i6b7ry9c1prm8i1/Templating.php?dl=0](https://www.dropbox.com/s/i6b7ry9c1prm8i1/Templating.php?dl=0).
 * And replace with **wp-crowdfunding⁩ ▸ ⁨includes⁩ ▸ ⁨woocommerce⁩ ▸ Templating.
   php**
 * I hope your problem will be solved.
 * Regards,
    Mehedi

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘PHP error on activate’ is closed to new replies.

 * ![](https://ps.w.org/wp-crowdfunding/assets/icon-256x256.jpg?rev=3262578)
 * [WP Crowdfunding](https://wordpress.org/plugins/wp-crowdfunding/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-crowdfunding/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-crowdfunding/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-crowdfunding/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-crowdfunding/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-crowdfunding/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Md. Mehedi Hasan](https://wordpress.org/support/users/mehedih/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/php-error-on-activate/#post-12590677)
 * Status: not resolved