Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




Error using Wordpress on PHP on IIS where file paths are UNCs

UserPost

6:41 am
August 11, 2011


Paul Vickery

New Member

Exeter, Devon, UK

posts 1

1

Hi,

I have found an error which you may like to know about, so that you can fix it in future revisions.

We use PHP on IIS to run our Wordpress, and I have found that if the site is set to use UNC paths for its files (as it is on our live site, and now is on my local test site), then the code that includes options (and others) fails to find the included file.

The error produced is:

PHP Warning: include_once(\intaserver\WebsiteFiles\Localsite/wp-content/plugins/revisionary/admin/options.php) [function.include-once]: failed to open stream: No such file or directory in \\intaserver\WebsiteFiles\Localsite\wp-content\plugins\revisionary\admin\admin_rvy.php(333) : runtime-created function on line 1 PHP Warning: include_once() [function.include]: Failed opening '\intaserver\WebsiteFiles\Localsite/wp-content/plugins/revisionary/admin/options.php' for inclusion (include_path='.;C:\php5\pear') in \\intaserver\WebsiteFiles\Localsite\wp-content\plugins\revisionary\admin\admin_rvy.php(333) : runtime-created function on line 1 PHP Fatal error: Call to undefined function rvy_options() in \\intaserver\WebsiteFiles\Localsite\wp-content\plugins\revisionary\admin\admin_rvy.php(333) : runtime-created function on line 1

You can see that the UNC path of the included file which should start with a double-backslash actually starts with a single backslash.

I tracked this down to where the lambda function is defined. In some places, the $path variable is prefixed by a "/", but in this case (and others) it is not.

Inserting the "/" fixes the problem for me, though I'm not sure that this is necessarily the best fix.

Paul.


About the Agapetry forum

Currently Online:

12 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1244

Posts: 5649

Members:

There are 1254 members

There are 1 guests


Kevin has made 2502 posts

Top Posters:

metal450 - 178

Ragnar - 108

YikYak - 70

whiteorb - 49

Daisy - 35

Administrator: Kevin | Moderators: Kevin