Video format not supported — localhost
Submitted by Bruce McKenzie on Tue, 04/16/2019 - 17:04
I recently ditched MAMP for Mac-localhost, where I had H5P working well, for new localhost setup (installed with HomeBrew). Now everything works well except H5P video uploads, which invariably produce the error "Video format not supported" after upload appears to be successful.
Console shows 404 error for http://wp.localhost/wp-content/uploads/h5p/editor/videos/files-5cb5e2950...
phpinfo shows
upload_max_filesize: 2000M
upload_tmp_dir: none
post_max_size: 3000M
Some other setting I've missed?
Thx.
Bruce
Content types:
BV52
Wed, 04/17/2019 - 04:33
Permalink
Hi Bruce,Would you mind
Hi Bruce,
Would you mind attaching a screenshot of the browser console error?
-BV52
Bruce McKenzie
Wed, 04/17/2019 - 16:02
Permalink
Browser console error + missing directory
See attached.
I noticed when I set out to reproduce the error that there is an update to the interactive video package available. When I tried to install the update, I got this error:
Failed to download the requested H5P.
Destination directory for file streaming does not exist or is not writable.
Seems like it might be a relative of the 404 error I got when I tried to add interactions to the video I uploaded.
Would a new install of H5P be a good next move?
B.
BV52
Thu, 04/18/2019 - 05:21
Permalink
Hi Bruce,You are right it
Hi Bruce,
You are right it looks like they are related to each other. There are 2 usually suspects with these types of error one is permission settings and the other .htaccess file may be configured incorrectly or is corrupted. Please check these 2 as uninstalling H5P may not really solve the problem.
-BV52
Bruce McKenzie
Thu, 04/18/2019 - 18:18
Permalink
Still not working
This is a local (Mac) install.
permissions on uploads/h5p are drwxrwxrwx
htaccess contains only one code block, the standard WordPress stuff.
I still see the link to an updated version of inteactive video content type. But nothing happens now when I click on it.
Bruce
B.
Bruce McKenzie
Mon, 04/22/2019 - 17:46
Permalink
Solution found
In case someone runs into the same issue.
This turned out to be an Apache permissions problem — which I only discovered by reinstalling H5P :-(
The directory wp-content/uploads/h5p was not writable because, after moving the localhost website to a new location, read-write permissions on that directory were applied to myself and staff, not _www. However, in a the fresh h5p install, permissions were correctly granted to the _www group. Working now.
B.
BV52
Wed, 04/24/2019 - 03:34
Permalink
Hi Bruce,I'm glad this is
Hi Bruce,
I'm glad this is working for you now and thank you for getting back to us with your solution.
-BV52