Timeline has stopped working

After a recent update (not entirely sure which one, but I'm current with both the Drupal module and H5P library releases), our Timeline content types on our Drupal site have stopped working. Even downloading the sample timeline from the H5P examples page no longer works. Anyone else experiencing this?

icc's picture

I've updated the Timeline content type with a fix for jQuery. I believe it should fix your issue. Let me know if it works.

Thanks. How do I update the Timeline content type? I tried using the "Upgrade all H5P Libraries" admin page in Drupal, but that did not seem to update anything.

falcon's picture

admin/content/h5p in Drupal

Yes, but what am I supposed to do at admin/content/h5p? Is there a file I'm supposed to upload? I tried downloading and uploading both the sample timeline and the libraries update file (from http://h5p.org/update-all-content-types), but it does not seem to have changed anything. None of the "update" buttons for the content types are enabled on the admin page.

falcon's picture

It's the sample content from the timeline page. You won't get an update button, it just automatically updates all your timeline content since this is just a patch update. I recon that the update didn't work and you still have the same problem?

Ah, okay. Yes, the update did not resolve the problem for me, then.

falcon's picture

yeah, ok, the guy who did the previous fix is on vacation this week. He'll look into this next week when he gets back. Please let me know if this is urgent.
icc's picture

That is strange. Is it possible for you to share a link to one of the broken timelines so we can have a quick look at what might be failing?

Sure, here's a link to the main timeline we're using (that used to work): https://foxylearning.com/timeline

And here is a straight upload of the sample timeline (about strawberries) from H5P: https://foxylearning.com/node/177278

On a probably unrelated note, I discovered users could not even access this content type unless I gave them the "View quiz question outside of a quiz" permission. I use the Quiz module on this site, but do not use any H5P questions for the quizzes yet. I reported this issue (at least I think it's the same issue) in the issue queque of the Drupal Quiz module: https://www.drupal.org/node/2456921

I'm attaching a node_access report (from Devel node access, I believe) that may be helpful for the latter issue.

Attachments: 
icc's picture

Thank you! It seems like there was an issue when I added the new version to h5p.org. The H5P file didn't get updated, so now I've updated the file manually. If you could download the timeline h5p once again, and upload it to your libraries page, the timelines should start working again. If they don't, try saving one of the nodes again or flushing the cache.

Sorry for the inconvenience!

Awesome, that fixed it! Thanks!

icc's picture

Good to hear! Thank you for reporting this bug :-)

"Missing mandatory data - not able to draw the timeline. Please open this H5P in the editor, and make the necessary changes."
I do not know, what is that "Missing mandatory data"?

Missing mandatory data - not able to draw the timeline. Please open this H5P in the editor, and make the necessary changes.

BV52's picture

Hi aarnehagman,

In order to give your bug report the best chance of getting answered, please include the following information:

  1. Detailed steps to reproduce the bug (exactly how and when did it happen)
  2. Platform and version number. E.g. Drupal, Wordpress, Moodle.
  3. Mobile or Desktop
  4. Browser: Chrome, Firefox, Safari etc
  5. H5P plugin version
  6. H5P content type and version (if a content type was used), and a sample URL or attached H5P.
  7. Any browser console errors
  8. Any PHP errors
  9. Screenshots if it's a visual problem
  10. Any recent changes to the environment (new plugins/modules, updates, configuration changes etc.)
  11. Any recent changes to the browser you're using (new extensions, updates etc.)

The more information you provide, the quicker the community will be able to fix it and the quicker you'll have a working solution!

-BV52

Hei!
I found the reason for this problem...and also myself a bit stupid: If there is some item that does not have all the information needed (marked red*) the time line will not appear. I did not notice that item there on my time line!

BV52's picture

Hi aarnehagman,

No worries and thank you for getting back to us.

-BV52