• Sabuj Kundu

    (@manchumahara)


    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)
  • 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

    (@manchumahara)

    @mehedih using default theme. try to activate on a fresh wordpress.My php version 7.2.3

    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 [email protected] for further investigation.

    Regards

    Thread Starter Sabuj Kundu

    (@manchumahara)

    @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

    (@manchumahara)

    @mehedih also please keep debug enabled

    define('WP_DEBUG', true);
    define( 'WP_DEBUG_DISPLAY', true);
    define( 'WP_DEBUG_LOG', true);

    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.

    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.