• Hi there,

    we try to use your plugin but have some troubles creating contents. When I try to edit a H5P content in the admin area (/wp-admin/admin.php?page=h5p_new&id={id}) and choose “Branching Scenario” for example, then it is not loading the editor but showing me some shortcode like string “[field:group:branchingScenario:branchingScenario]” below the title.

    I’ve disabled all other plugins and used twentytwentytwo as the theme so it doesn’t seem to be an issue with other plugins or the theme. We use php7.4 for now as we cannot currently update to 8.0 or higher because of other parts of the application that need to be refactored first.

    There are currently no error logs. But I had some trouble with “unabletocopy” even though the uploads folder is defenetly writable for the application. I’ve fixed this by manually creating all directories that were causing error logs. But these folders are still empty. So maybe this could be a problem too.

    Thanks in advance
    Edward

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author icc0rz

    (@icc0rz)

    It sounds like there are some issues with the content type and you have to reinstall it. To do this you need to add a setting to your wp-config.php and then download example 2 from: https://h5p.org/branching-scenario#example=440740 and then upload it to your H5P Libraries page.

    The setting you need to add is:
    define('H5P_DEV', true);

    This will allow reuploading existing content types.
    Remember to remove it after uploading it and verifying that it works.

    Thread Starter EdwardBock

    (@edwardbock)

    Hi @icc0rz

    thanks for the quick reply. But sadly that didn’t help. I’ve added the H5P_DEV bool and uploaded the example. The upload was successful and I can view the content. But still no chance to edit the content. Still getting the raw shortcode on edit screen [field:group:branchingScenario:branchingScenario].

    Plugin Author icc0rz

    (@icc0rz)

    Then there must be some issue loading the JavaScript files needed. If you open your browser’s console (Ctrl+Shift+J in Chrome) and click on the network tab, can you see any .js requests failing?

    Thread Starter EdwardBock

    (@edwardbock)

    Nobe, no network requests are failing. A lot of h5p*.js files are loaded correclty with response code 200 from wp-content/plugins/h5p/*. No error log in console.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Editor not resolving shortcode’ is closed to new replies.