on line: class-plugin-base.php in dmca-badge/trunk/libraries/sidecar/classes – WordPress Plugin Repository
replace line with the following content:
/**
* @var string $slug
*/
$slug = (string) basename( dirname( $this->plugin_file ) );
/**
* @var bool $deprecated
*/
$deprecated = (bool) false;
/**
* @var bool $relative_path
*/
$relative_path = (string) '/' . $slug . '/languages';
$args = array(
$slug,
$deprecated,
$relative_path
);
call_user_func_array("load_plugin_textdomain",$args);
Hi, @adomasalcore3 .
I have the same problem. Could you give more explanation about which line should be replaced? From line…to line…?
Thanks in advance.
This appears to be resolved in the latest version, if not, see: class-plugin-base.php in dmca-badge/tags/2.1.56/libraries/sidecar/classes – WordPress Plugin Repository
Line 1985
load_plugin_textdomain( $this->plugin_slug, false, '/' . basename( dirname( $this->plugin_file ) ) . '/languages' );
the bug is on the part “$this->plugin_slug”, replace it by
$slug = basename( dirname( $this->plugin_file ) );
$relative_path = '/' . $slug . '/languages';
load_plugin_textdomain( $slug, false, $relative_path );
And that should solve the error. If not, there is a new bug that I have not seen yet.