Windows host problem
-
Hello. I’m running Converts theme that includes this plugin on a Windows machine and I’ve experienced some issues. The plugin doesn’t work properly and causes func.js to trigger a 404. I have investigated and discovered that it’s caused by code that compares file paths to generate a relative URL “path” for home_url() function of WordPress. This approach works fine in Linux where forward slashes are used in the filesystem, but not in Windows where there are backslashes.
A “Hack” that fixes this is to replace _getCurrentWPDir function’s code (line 223 in wpset.inc.php) to this:
return strtr(str_replace( strtr(ABSPATH, array('/' => DIRECTORY_SEPARATOR)), '', dirname( __FILE__ ) ), array(DIRECTORY_SEPARATOR => '/'));Maybe it helps soembody before a fix is released.
The topic ‘Windows host problem’ is closed to new replies.