Title: Wrong argument in load_plugin_textdomain
Last modified: August 31, 2016

---

# Wrong argument in load_plugin_textdomain

 *  [Mick Levin](https://wordpress.org/support/users/mick-levin/)
 * (@mick-levin)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/wrong-argument-in-load_plugin_textdomain/)
 * Hello,
 * I am testing this plugin in my DEV environment.
 * The WPQuery’s output shows that the plugin is not loading the textdomain. The
   path the plugin supplies is very weird, and wrong:
 *     ```
       load_plugin_textdomain()
       html/plugins/lightbox-plus/lightboxplus.php:143
       html/plugins/http:/dev.local/html/plugins/lightbox-plus/languages/lightboxplus-ru_RU.mo
       ```
   
 * Obviously, the ‘load_plugin_textdomain’ function takes wrong parameter as a relative
   plugin language path…
 * Checking the file ‘lightboxplus.php` at line 143 proves, the the relative path
   is being passed with the *url* variable:
 *     ```
       load_plugin_textdomain( 'lightboxplus', false, $path = $g_lightbox_plus_url . 'languages' );
       ```
   
 * More proper way to get the 3rd parameter for load_plugin_textdomain would be 
   this:
 *     ```
       load_plugin_textdomain ('lightboxplus', FALSE, $path = trailingslashit (basename (dirname (__FILE__))) . 'languages' );
       ```
   
 * Please correct that.
 * Thank you.
 * [https://wordpress.org/plugins/lightbox-plus/](https://wordpress.org/plugins/lightbox-plus/)

The topic ‘Wrong argument in load_plugin_textdomain’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/lightbox-plus_fafafa.svg)
 * [Lightbox Plus Colorbox](https://wordpress.org/plugins/lightbox-plus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/lightbox-plus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/lightbox-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/lightbox-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lightbox-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lightbox-plus/reviews/)

## Tags

 * [load_plugin_textdomain](https://wordpress.org/support/topic-tag/load_plugin_textdomain/)

 * 0 replies
 * 1 participant
 * Last reply from: [Mick Levin](https://wordpress.org/support/users/mick-levin/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/wrong-argument-in-load_plugin_textdomain/)
 * Status: not resolved