I encountered the following error when installing a new plug-in (edited for details):
Warning: include_once() [function.include]: Failed opening ‘##path-to-wordpress##/wp-content/plugins/twitter-for-wordpress/’ for inclusion (include_path=’.:/usr/share/php:/usr/share/pear’) in ‘##path-to-wordpress##/wp-settings.php on line 473
I’d installed the plug-in “manually” (that is, downloaded itÂ and unzipped it into the plug-ins directory).Â Some quick web searching didn’t exactly point to the error.Â Nor did looking at the wp-settings.php file line 473 (just a straightforward directory include … of a directory that’s already been confirmed to exist!).
Everything pointed to a permissions problem.Â OK.Â Checked the permissions … and they were, indeed, bad.Â So I fixed up all the permissions (so that Apache and its friends could read the directory) … still the same error.Â Even recycled Apache … still a problem.Â Googling didn’t really help … one page was on point (but without a fix), and the rest of the hits were all on pages that were throwing this same error <g>.
Turns out that once you’ve started a plug-in install, if your permissions are bad, you’re hosed.Â You need to remove, then re-install the plug-in.Â I did this, which fixed the problem:
- Moved the new plug-in directory out of the plugins folder.
- Reloaded the admin plugins page … OK, error disappears.
- Moved the new plug-in directory back in.
- … voila, able to install and configure the plug-in.