Unable to modify or to create content

Hello

After trying to modify (or create) a content, My COnsole (F12) displays this error

Ajax request failed

h5peditor.js?p6zidi:147 {readyState: 4, getResponseHeader: ƒ, getAllResponseHeaders: ƒ, setRequestHeader: ƒ, overrideMimeType: ƒ, …}

h5peditor.js?p6zidi:148 parsererror

h5peditor.js?p6zidi:149 SyntaxError: Unexpected end of JSON input

    at JSON.parse (<anonymous>)

    at parseJSON (jquery.js?p6zidi:2)

    at Fn (jquery.js?p6zidi:4)

    at k (jquery.js?p6zidi:4)

    at XMLHttpRequest.r (jquery.js?p6zidi:4)

Could you help me ?

Many thanks in advance

LMo

BV52's picture

Hi Edenquest,

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

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

Good to read you :)

The server is a debian 9.4 stretch / Dupral 7.58(FR) / H5P 7.x-1.34

I tried on a different server, same config.

On the first only all the Image Multiple hotspots dont' work (ok for view, nok for modify or create a new one). Each time after uploading or creating a Multiple hotspots, I've got this screen (upload in progress, please wait....) and as you can see "The successfull upload" popup... but The activity never appear and can't be create or update, nothing is recorded.

Please, note that these existing multiple hotspots work fine but can't be modified, exemple : http://cardif.web.guildup.fr/drupal/h5p/embed/48

I  try with Chrome, IE, Firefox

On the second server, the same result after 5 X h5p files uploading, but this time it's about the interactive video !

I'm crazy or not ?

Of course I've updated the librairies and refresh the drupal cache ... and, to be sure, restart the Apache server

It's a new server, so I can send you via a secure way an admin access to drupal.

Attached the php error

Thanks in advance

 

Attachments: 

The PHP error

Sorry I forgot it :)

 

Attachments: 
thomasmars's picture

Hi, it looks like your server is not configured properly. Please make sure that you've followed our guide for setting up your environment and configuring your PHP installation appropriately at: https://h5p.org/installation/configure-php.
The main problem seems to be that the content type is not finding the libraries it needs to be rendered, this can be caused by several issues, but most likely the libraries were never installed in the first place. Try to check your server/php error log when you upload the library initially. There should be some indication of what was wrong there.
You can also try following our PHP troubleshooting guide to find more information on what is wrong: https://h5p.org/documentation/troubleshooting-php.
You can also check the response of your AJAX request in your browser's console to see what goes wrong when you try to upload the file.

Best regards, Thomas

Thanks for answering my request. I didn't find any problem about the installation process.The installations were made thru install.php (drupal) and upload module (H5P) without problem. So it's a standard installation.

I can't understand why the H5P can be viewed (so thru librairies h5p) and not edit (Lib h5pEditor)

Please note that the 2 setup on 2 differents servers give the same result but on different librairy. When I compare the 2 servers (the same librairy runs fine on the first one but not on the second server), I see exactly the same files and contents on both sides.

I continue to investigate this and let you know if I can fix it

I tried different installations and configurations

Finally, the configuration that fixes this problem is Debian 8 JESSIE + Drupal 7 + H5P 7.x. With the previous 9.4 debian server, I have to load the libraries before the content, not at the same time to avoid the bug about some libraries (not find despite they are present and in the right place)

Best regards

thomasmars's picture

Which PHP version were you using on the different setups and with which extensions ?
Were you not able to find any error messages in your PHP error log and in your browsers console ?