• Resolved djsteveb

    (@djsteveb)


    Plugin looks like the best options are available with it, but I am getting an error on first go round with it:

    Any ideas on this?

    Warning: fopen(/home/blog/wp-content/sh5vp_cache/index.php): failed to open stream: No such file or directory in /home/blog/wp-content/plugins/secure-html5-video-player/sh5vp-functions.php on line 1955 Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/blog/wp-content/plugins/secure-html5-video-player/sh5vp-functions.php on line 1956 Warning: fclose() expects parameter 1 to be resource, boolean given in /home/blog/wp-content/plugins/secure-html5-video-player/sh5vp-functions.php on line 1957

    This appears when viewing the public post/page… then under that the video “poster” does show.. and the video does play.. weird.

    https://www.ads-software.com/plugins/secure-html5-video-player/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author trillamar

    (@trillamar)

    It appears that when trying to write to file, PHP on your server was denied from being able to write to the file output. This usually happens when the user that the web server and php process runs on is not granted write permission to the directories under the wp-content directory. The owner of the directory system is likely different as well.

    To correct the problem, you can do one of 2 things:
    1. Change the plugin settings to “serve dynamically” instead of “serve from cache”. That will remove the necessity for the plugin to write to your file system.

    2. Grant write access to the wp-content directory and all of its contents to the user that PHP and web server is operating under.

    We will fix the plugin so that a better error message is printed out in a future release.
    Thanks for reporting this to us.

    Thread Starter djsteveb

    (@djsteveb)

    Thanks for the speedy response!

    This makes sense, as I have the videos ftp’d up to : mydot .com/videos/
    and the wordpress and this plugin are in mydot com/blog/wp-content/plugins

    I have a weird situation with the security settings with this server maybe… I am guessing the the “owner” of the /videos folder was different than the php, as I was able to create that through the ftp program on the server..

    but when I tried to ftp my video files to mdot com/blog/wp-content/uploads/06 – it would not go through. I guess that whole owner thing.

    What is more of an issue is that I can’t upload these videos through php, as they are more than 80mb in size. So I am stuck there.

    I would suggest that it may be worth considering adding an option in future updates that would allow the plugin installer to add a /wp-content/videos folder – that may help some people with a similar situation.. or not – still trying to figure all this out!

    Thanks again!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘fwrite() expects parameter 1 to be resource, boolean given’ is closed to new replies.