• Resolved killme56k

    (@killme56k)


    This is happening since 12.4.2 release, when i try to clone a multisite using NS Cloner this error occurs:

    Fatal error: Uncaught Error: Using $this when not in object context in /var/www/*****/www/wp-content/plugins/wp-reviews-plugin-for-google/include/schema.php:5 Stack trace: #0

    Looking at schema.php you call the instance:

    <?php
    defined('ABSPATH') or die('No script kiddies please!');
    $ti_db_schema = [
    'reviews' => "
    CREATE TABLE ". $this->get_tablename('reviews') ." (
    id TINYINT(1) NOT NULL AUTO_INCREMENT,
    hidden TINYINT(1) NOT NULL DEFAULT 0,
    user VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci,
    user_photo TEXT,
    text TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
    rating DECIMAL(3,1),
    highlight VARCHAR(11),
    date DATE,
    reviewId TEXT,
    reply TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
    PRIMARY KEY (id)
    )
    "
    ];
    ?>

    But inside your plugin main file you’re including outside a class causing this error:

    include $pluginManagerInstance->get_plugin_dir() . 'include' . DIRECTORY_SEPARATOR . 'schema.php';

    I think this is a bug.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Laca

    (@lacadev)

    Hi @killme56k

    Thank you for reporting this issue and helping us improve the plugin!

    We’ve identified the problem you mentioned, and it will be fixed in the next update, which is expected to be released in the first half of next week.

    We appreciate your patience and support! 😊

    Best regards,
    Laca from Trustindex

    Plugin Support Laca

    (@lacadev)

    Hi @killme56k

    We’ve addressed the issue, and we kindly ask you to update the plugin to its latest version (v12.4.5).

    Please let us know if everything works smoothly now. We sincerely apologize for the inconvenience and appreciate your understanding.

    Thank you for your patience and support!

    Best regards,
    Laca from Trustindex

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

The topic ‘Not working with NS Cloner plugin since 12.4.2’ is closed to new replies.