Install problem with Drupal 8 and PHP 7.x

papi Jo's picture

Trying to install H5P on my localhost with following parameters:

XAMPP install with PHP 7.x (I tried with 7.0, 7.1 and 7.2, same pbs)

Drupal version drupal-8.4.4

H5P 8.x-1.0-rc5 released 22 January 2018

I do understand that Drupal 8 is NOT completely compatible with PHP 7.x at the moment. However, it installs OK, and H5P module installs OK too. But I get the following errors:

* When trying to configure H5P in Home Administration Configuration System H5P Settings, upon Save I get error:

The website encountered an unexpected error. Please try again later.

 

* More seriously, in Administration Structure Content types Basic page Manage fields when I try to H5P field to Basic page as instructed in the H5P doc for Drupal 8 I get: Error message
There was a problem creating field h5p: Invalid data type in config h5p.schema, found in filemodules/h5p/config/schema/h5p.schema.yml : Unable to parse at line 4 (near " mapping:").

Does this mean that it is not (yet) recommended to install H5P + Drupal 8.x + PHP 7.x and I should revert to PHP 5.6?

papi Jo's picture

I have now reverted to PHP 5.6 on my localhost and with Drupal 8 and H5P 8.x-1.0-rc5 released 22 January 2018 I get exactly the same errors as reported in my original post. This seems a rather serious bug.

EDIT.- Reverted to h5p 8.x-1.0-rc4 Posted by icc on 28 November 2017 and it works fine! Please fix bug in version rc5.

icc's picture

You are correct, it seems the format of config/schema/h5p.schema.yml includes an extra indentation space. It should be fixed now and we'll release a new version shortly.

papi Jo's picture

Thanks, h5p 8.x-1.0-rc6 is working fine now!

icc's picture

That is good to hear, thanks for reporting!

I've had a site running on:

  • Drupal 7.59
  • Database system MySQL, 5.7.22-0 ubuntu 16.04.1
  • PHP 7.0.30
  • PHP memory limit 128M

It has crashed many times due to the running out of memory problem. Besides, this problem started a month ago.

Another problem is in the cache database table (cache_menu), keeps growing bigger every time a when pages are loaded.
Even if I change the "Expiration of cached pages" from the performance menu to 1 hour, the cache can become huge, which leads to major memory problems.
Is there a way to safely disable cache_menu?

But I'm not sure that the only reason is the cache menu.
What could be causing this and how can I fix it?
Any advice much appreciated.

icc's picture

It does not seem like these problems are related to H5P.