Yoast / wordpress-seo

Yoast SEO for WordPress
https://yoast.com/wordpress/plugins/seo/
Other
1.78k stars 894 forks source link

Warnings on Edit Files section #1048

Closed slobich closed 10 years ago

slobich commented 10 years ago

after updating from Version 1.4.25 i get errors on the Edit Files section:

Warning: fopen(path\to\wordpress/.htaccess): failed to open stream: No such file or directory in path\to\wp-content\plugins\wordpress-seo\admin\pages\files.php on line 115

Warning: filesize(): stat failed for path\to\wordpress/.htaccess in path\to\wp-content\plugins\wordpress-seo\admin\pages\files.php on line 116

Warning: fread() expects parameter 1 to be resource, boolean given in path\to\wp-content\plugins\wordpress-seo\admin\pages\files.php on line 116

and i get a warning that .htaccess is not writable

i have WordPress setup similar to https://github.com/markjaquith/WordPress-Skeleton. WordPress is in a separate folder and wp-content is out side the WordPress folder. this set up worked with 1.4.25. on all later updates i get the errors noted above.

jrfnl commented 10 years ago

Thanks for reporting. Pull request #1051 will probably fix this. Would be good if you could test it.

Closing this issue now in favour of the pull request.

slobich commented 10 years ago

i tried the fix and it works. warnings are gone and i can see/edit my .htaccess file now. thank you for your help.

jrfnl commented 10 years ago

@slobich Thanks for confirming!