Title: Causing Errors
Last modified: April 4, 2024

---

# Causing Errors

 *  [cdhodgdon](https://wordpress.org/support/users/cdhodgdon/)
 * (@cdhodgdon)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/causing-errors-2/)
 * This plugin has not been updated in 10 months and is no longer compatible with
   WordPress and causes an error. Please take the time to update the code so that
   it will work correctly again and not cause an error.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcausing-errors-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Tiago Dias](https://wordpress.org/support/users/adomasalcore3/)
 * (@adomasalcore3)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/causing-errors-2/#post-17680652)
 * on line: [class-plugin-base.php in dmca-badge/trunk/libraries/sidecar/classes – WordPress Plugin Repository](https://plugins.trac.wordpress.org/browser/dmca-badge/trunk/libraries/sidecar/classes/class-plugin-base.php#L1985)
 * replace line with the following content:
 *     ```wp-block-code
       		 /**
       		 * @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);
       ```
   
 *  [Muhammad Faizin](https://wordpress.org/support/users/kangzin/)
 * (@kangzin)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/causing-errors-2/#post-17843937)
 * Hi, [@adomasalcore3](https://wordpress.org/support/users/adomasalcore3/) .
 * I have the same problem. Could you give more explanation about which line should
   be replaced? From line…to line…?
 * Thanks in advance.
 *  [Tiago Dias](https://wordpress.org/support/users/adomasalcore3/)
 * (@adomasalcore3)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/causing-errors-2/#post-17850422)
 * 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](https://plugins.trac.wordpress.org/browser/dmca-badge/tags/2.1.56/libraries/sidecar/classes/class-plugin-base.php#L1985)
 * **Line 1985**
 *     ```wp-block-code
       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
 *     ```wp-block-code
       $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.

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

The topic ‘Causing Errors’ is closed to new replies.

 * ![](https://ps.w.org/dmca-badge/assets/icon-256x256.png?rev=1987331)
 * [DMCA Protection Badge](https://wordpress.org/plugins/dmca-badge/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dmca-badge/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dmca-badge/)
 * [Active Topics](https://wordpress.org/support/plugin/dmca-badge/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dmca-badge/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dmca-badge/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Tiago Dias](https://wordpress.org/support/users/adomasalcore3/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/causing-errors-2/#post-17850422)
 * Status: not resolved