Title: Path Problem: PHP Warning on Windows Server
Last modified: August 22, 2016

---

# Path Problem: PHP Warning on Windows Server

 *  [TheSteveHimself](https://wordpress.org/support/users/thestevehimself/)
 * (@thestevehimself)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/path-problem-php-warning-on-windows-server/)
 * Today I tried to install the plugin on a live server for a wordpress site. I 
   tested the plugin in my dev environment on OSX. From there everything worked 
   fine.
    But it didn’t on my Windows Server.
 * The problem is that this plugin tries to load the text domain with the normal
   dirname() of __FILE__ which returns a normal Windows Path like E:\……
 * This is a problem. I did a little digging and found out that a quick and easy
   fix was changing the following line in [plugin-root]/om-shortcodes.php:
 * `load_plugin_textdomain( 'om_shortcodes', false, $GLOBALS['omShortcodesPlugin']['
   path'] . 'languages/' );`
 * to
 * `load_plugin_textdomain( 'om_shortcodes', false, basename($GLOBALS['omShortcodesPlugin']['
   path']) . 'languages/' );`
 * Is it possible to include this fix in future releases?
 * Thanks for the otherwise great plugin!
 * Cheers
 * [https://wordpress.org/plugins/olevmedia-shortcodes/](https://wordpress.org/plugins/olevmedia-shortcodes/)

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

 *  Thread Starter [TheSteveHimself](https://wordpress.org/support/users/thestevehimself/)
 * (@thestevehimself)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/path-problem-php-warning-on-windows-server/#post-5531503)
 * I guess this still is not fixed as the error returned after I updated today.
 * Can you please fix this?
 *  Thread Starter [TheSteveHimself](https://wordpress.org/support/users/thestevehimself/)
 * (@thestevehimself)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/path-problem-php-warning-on-windows-server/#post-5531525)
 * Still not fixed.
    Do you even read this? A response would be nice.

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

The topic ‘Path Problem: PHP Warning on Windows Server’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/olevmedia-shortcodes_d8d8d8.svg)
 * [Olevmedia Shortcodes](https://wordpress.org/plugins/olevmedia-shortcodes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/olevmedia-shortcodes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/olevmedia-shortcodes/)
 * [Active Topics](https://wordpress.org/support/plugin/olevmedia-shortcodes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/olevmedia-shortcodes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/olevmedia-shortcodes/reviews/)

## Tags

 * [basedir](https://wordpress.org/support/topic-tag/basedir/)
 * [path](https://wordpress.org/support/topic-tag/path/)
 * [windows](https://wordpress.org/support/topic-tag/windows/)

 * 2 replies
 * 1 participant
 * Last reply from: [TheSteveHimself](https://wordpress.org/support/users/thestevehimself/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/path-problem-php-warning-on-windows-server/#post-5531525)
 * Status: not resolved