WordPress.org

Ready to get started?Download WordPress

Forums

Theme-Check
[resolved] Warning: file_get_contents (8 posts)

  1. bradthomas127
    Member
    Posted 2 years ago #

    Im getting this warning after update.
    Warning: file_get_contents(C:\xampplite\htdocs\wordpress/wp-content/themes/sonar\admin) [function.file-get-contents]: failed to open stream: Permission denied in C:\xampplite\htdocs\wordpress\wp-content\plugins\theme-check\main.php on line 29

    http://wordpress.org/extend/plugins/theme-check/

  2. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 2 years ago #

    The main.php file hasn't changed in 4 months. I think your problem comes from elsewhere.

  3. bradthomas127
    Member
    Posted 2 years ago #

    Alright Thanks Otto, Just switched to a new computer last week, might of had a bad file transfer.

  4. ChrisBongers
    Member
    Posted 2 years ago #

    Hi,

    Just wondering..
    You included a version check of timthumb
    But it won't validate the theme because of timthumb's fopen etc.

    Why dind't you integrate the 'overlooking' of these 'errors'??

    Regards,
    Chris

  5. jami0821
    Member
    Posted 2 years ago #

    I'm also getting the error message that bradthomas127 said too.

    I'm wondering if he was ever able to figure out what's happening there. It's pointing to my theme's options panel but the first time I used this plugin a month ago, it didn't show that warning. I have not changed anything inside the admin folder (although I have updated the theme check plugin) and now it's giving an error.

  6. bradthomas127
    Member
    Posted 2 years ago #

    jami0821 it did end up going away not too sure what changes i made though, i think it might have been wp_enqueue_script('dashboard'); in my admin panel, it was causing plugins not to delete.

  7. turtlewin
    Member
    Posted 2 years ago #

    I have the same error & found the solution at
    http://stackoverflow.com/questions/7587989/how-to-fix-php-warning-file-get-contents/7588421#7588421.

    Basically - change line 29 to this: if(!is_dir($filename)) $other[$filename] = file_get_contents( $filename );

  8. bradthomas127
    Member
    Posted 2 years ago #

    Thanks turtlewin, that worked for me. Is it a windows7 and XAMPP thing?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic