Not working with NS Cloner plugin since 12.4.2
-
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: #0Looking 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') ." (
idTINYINT(1) NOT NULL AUTO_INCREMENT,
hiddenTINYINT(1) NOT NULL DEFAULT 0,
userVARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci,
user_photoTEXT,
textTEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
ratingDECIMAL(3,1),
highlightVARCHAR(11),
dateDATE,
reviewIdTEXT,
replyTEXT 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)
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.