Title: PHP error when creating timelines
Last modified: August 30, 2016

---

# PHP error when creating timelines

 *  Resolved [Alex Furr](https://wordpress.org/support/users/alexfurr/)
 * (@alexfurr)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/php-error-when-creating-timelines/)
 * Hi,
    Fantastic open source app, thanks for the wordpress plugin as well.
 * I’m getting the following errors when saving timeline
    Warning: Invalid argument
   supplied for foreach() in /var/www/efoliodev/htdocs/blog/wp-content/plugins/h5p/
   h5p-php-library/h5p.classes.php on line 1581 Warning: Invalid argument supplied
   for foreach() in /var/www/efoliodev/htdocs/blog/wp-content/plugins/h5p/h5p-php-
   library/h5p.classes.php on line 1581 Warning: Invalid argument supplied for foreach()
   in /var/www/efoliodev/htdocs/blog/wp-content/plugins/h5p/h5p-php-library/h5p.
   classes.php on line 1581 Warning: Invalid argument supplied for foreach() in /
   var/www/efoliodev/htdocs/blog/wp-content/plugins/h5p/h5p-php-library/h5p.classes.
   php on line 1581
 * The timeline still works though.
 * Thanks,
 * Alex
 * [https://wordpress.org/plugins/h5p/](https://wordpress.org/plugins/h5p/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [Alex Furr](https://wordpress.org/support/users/alexfurr/)
 * (@alexfurr)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/php-error-when-creating-timelines/#post-6642687)
 * Update – I’m getting the error when creating any content! Not just timelines
 *  Plugin Author [icc0rz](https://wordpress.org/support/users/icc0rz/)
 * (@icc0rz)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/php-error-when-creating-timelines/#post-6642933)
 * If I’m not mistaken the warnings has been fixed, but this support request wasn’t
   updated. Using the new [populateFileList](https://github.com/h5p/h5p-php-library/blob/master/h5p.classes.php#L1579)
   should solve this issue. The fix will be part of the next release.
 *  Thread Starter [Alex Furr](https://wordpress.org/support/users/alexfurr/)
 * (@alexfurr)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/php-error-when-creating-timelines/#post-6642934)
 * Yes the fix posted on github worked thank you. I posted here first. Please close
   the ticket
    Alex

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘PHP error when creating timelines’ is closed to new replies.

 * ![](https://ps.w.org/h5p/assets/icon.svg?rev=986118)
 * [Interactive Content – H5P](https://wordpress.org/plugins/h5p/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/h5p/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/h5p/)
 * [Active Topics](https://wordpress.org/support/plugin/h5p/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/h5p/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/h5p/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Alex Furr](https://wordpress.org/support/users/alexfurr/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/php-error-when-creating-timelines/#post-6642934)
 * Status: resolved