Unable to modify or to create content
Submitted by Edenquest on Tue, 04/10/2018 - 23:17
Forums:
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
Wed, 04/11/2018 - 03:31
Permalink
Hi Edenquest,In order to give
Hi Edenquest,
In order to give your bug report the best chance of getting answered, please include the following information:
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
Edenquest
Wed, 04/11/2018 - 04:02
Permalink
Good to read you :)The server
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
Edenquest
Wed, 04/11/2018 - 04:30
Permalink
The PHP errorSorry I forgot
The PHP error
Sorry I forgot it :)
thomasmars
Wed, 04/11/2018 - 10:34
Permalink
Hi, it looks like your server
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
Edenquest
Thu, 04/12/2018 - 11:06
Permalink
Ok but...
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
Edenquest
Sat, 04/14/2018 - 07:21
Permalink
Librairies before
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
Wed, 04/18/2018 - 08:55
Permalink
Which PHP version were you
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 ?