h5p / h5p-wordpress-plugin

Adds support for H5P Content in WordPress.
https://wordpress.org/plugins/h5p/
71 stars 74 forks source link

Bug with wordpress 3.9 #1

Closed olivieralfieri closed 10 years ago

olivieralfieri commented 10 years ago

Hi

i'm not abble to use it

Is-it something special to do at the installation

regards

Olivier

Add New

Warning: include_once(/homez.646/clicandl/www/wp-content/plugins/h5p/public/../h5p-php-library/h5p.classes.php) [function.include-once]: failed to open stream: No such file or directory in /homez.646/clicandl/www/wp-content/plugins/h5p/public/class-h5p-plugin.php on line 276

Warning: include_once() [function.include]: Failed opening '/homez.646/clicandl/www/wp-content/plugins/h5p/public/../h5p-php-library/h5p.classes.php' for inclusion (include_path='.:/usr/local/lib/php') in /homez.646/clicandl/www/wp-content/plugins/h5p/public/class-h5p-plugin.php on line 276

Warning: include_once(/homez.646/clicandl/www/wp-content/plugins/h5p/public/../h5p-php-library/h5p-development.class.php) [function.include-once]: failed to open stream: No such file or directory in /homez.646/clicandl/www/wp-content/plugins/h5p/public/class-h5p-plugin.php on line 277

Warning: include_once() [function.include]: Failed opening '/homez.646/clicandl/www/wp-content/plugins/h5p/public/../h5p-php-library/h5p-development.class.php' for inclusion (include_path='.:/usr/local/lib/php') in /homez.646/clicandl/www/wp-content/plugins/h5p/public/class-h5p-plugin.php on line 277

Fatal error: Interface 'H5PFrameworkInterface' not found in /homez.646/clicandl/www/wp-content/plugins/h5p/public/class-h5p-wordpress.php on line 3

icc commented 10 years ago

Hi! It seems like you're missing the sub modules h5p-php-library and h5p-editor-php-library. Did you use the "Download ZIP" button? If so you must download the sub modules manually. If you used git you can get the submodules using git submodule update --init --recursive.

Please note that this plugin isn't released yet, but it should be pretty stable so feel free to test it and report any bugs you may find. Thank you for contributing.

olivieralfieri commented 10 years ago

Hi

thank you. I didn't see that. It's done but now i have to import a js librairy??

And the title : enter title here didn't disappear when i write a new title

What i have to do to be abble to use the plug in?

thks for you're help^

olivier

Add New Enter title here

Waiting for javascript...

icc commented 10 years ago

After the plugin is activated you should go to "Add new" under "H5P Content" in the admin menu (/wp-admin/admin.php?page=h5p_new), select "Upload" in the right sidebar and then select a .h5p file to upload. You can find H5P files here.

If the title doesn't disappear there may be a bug. Please check your JavaScript console(Ctrl+Shift+J on Chrome) and report back. Please make sure you have all the latest code by running git pull origin master && git submodule update --init --recursive. The plugin has now been submitted for review at wordpress.org. You may download the version sent to review here: http://h5p.org/sites/default/files/h5p-wordpress-1.0.zip (This is hopefully the finsihed 1.0 version)

icc commented 10 years ago

After content is uploaded/created you can insert it using the "Add H5P" button when editing posts, pages, etc.

olivieralfieri commented 10 years ago

Hi just let you know that everything is fine with the last version send to review

congratulations

regards

Olivier

olivieralfieri commented 10 years ago

Hi,

find a bug or maybe i make a mistake when i upload presentation interactive video game

but, nothing happend. It seems that the file is uploaded but at the end nothing appaer.

i have upload the others and it works

regards

olivier

bagofcats commented 10 years ago

using http://h5p.org/sites/default/files/h5p-wordpress-1.0.zip and wp 3.91

agree with above: tested fill in the blanks & presentation, and presentation doesn't work, it can be embedded in a page or post but can't edit it and doesn't appear in the list to create new h5p

another guy here, with an xampp installation and brute force (manually changing permissions for content directories) got as far as 'edit' but had errors in the path to fontAwesome - so it didn't show the icons for add slide, summary, etc

he could edit but again, it couldn't update, probably permissions again

cheers, alfredo

icc commented 10 years ago

When we changed how the URLs were generated there was a bug who snuck in, breaking the ajax url for the editor. I fixed this issue about five hours ago, but the zip-file you're linking to hasn't been updated. Try using the version which has been released here: http://wordpress.org/plugins/h5p/

Thank you for your input, we'll be updating H5P.org shortly. I'll be looking into the other issues.

bagofcats commented 10 years ago

Great! it's working now, can edit, save, etc. Yay!

It's even showing a few of the icons in Course prez. -- still not all, about half of them, but it's no biggie.

Cheers

icc commented 10 years ago

Is the "Right of use" icon displaying when you're viewing H5P content like "Course Presentation"? Or is it just the editor that's missing some icons?

bagofcats commented 10 years ago

yep, 'cc right of use' shows ok, it's just the editor's icons

icc commented 10 years ago

What browser and operating system are you using?

My best guess is that the font-family is case sensitive since the styles for the "Course Presentation" uses 'h5p' while the real font name is 'H5P'.

bagofcats commented 10 years ago

you're most probably right. I'm testing on the latest FF for Linux, which is case sensitive. The server is Apache linux, so that too. I know the same thing is happening on FF for Mac in a xampp installation (I think that's what Aron on the other thread uses)

bagofcats commented 10 years ago

Confirmed: just tested in Chromium, and all icons are showing correctly. Just FF borking ;)

icc commented 10 years ago

There was a naming collision between fonts in the editor for "Course Presentation", this has been fixed now. If you download the example content again and upload it to your WP all the icons should start working :-)

bagofcats commented 10 years ago

That seems to have fixed it! There was at first a conflict, as I tried to upload without deleting the previous one: H5P internal error: no validator exists for checkAnswer H5P internal error: no validator exists for changeAnswer H5P internal error: no validator exists for notFilledOut H5P internal error: no validator exists for showSolutionsRequiresInput

I deactivated the p0lugin and deleted it and the files, reinstalled and it uploaded perfectly, all icons showing now (FF on win7: another place, another machine...) I uploaded then a couple of h5p packages produced with Course presentation in a drupal installation, without problems - a couple of warnings, but probably because of the way they were done in Dp: H5P internal error: no validator exists for total No value given for mandatory field Total