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
The topic ‘Path Problem: PHP Warning on Windows Server’ is closed to new replies.