Can't upload course presentation to WordPress on Pantheon

WP 5.1

htp 1.11.3

host: pantheon

Getting a 504 time out when trying to upload attached file.

Works fine on host wpengine.

Pantheon has a system where you can't write to folders outside of wp-content/uploads.

Does h5p create tmp directories for uploading? This won't work on pantheon.

How can I control the tmp directories for file uploading?

Thanks for your time,

-Andre Gagnon

H5P file: 
icc's picture

No, all files should be within the wp-content/upload/h5p folder.

It sounds like PHP might be hanging on some sort of operation. You may have to add some debugging in order to determine what's happening.

I'm using Drupal/Opigno at Pantheon. Just ran into same problem. 2 years same issue? Any ideas on what can be done?

ctli's picture

How can I support a new feature?   Pantheon will not change its infrastructure.    There is also memory issues when adding H5P content.  I've tried upgrading the hosting package to the max and it did not eliminate the issue.  

Php-slow.log

[19-Jul-2024 16:50:41]  [pool www] pid 47

script_filename = /code//wp-admin/admin.php

[0x00007d847b415cb0] copy() /code/wp-content/plugins/h5p/h5p-php-library/h5p-default-storage.class.php:522

[0x00007d847b415be0] copyFileTree() /code/wp-content/plugins/h5p/h5p-php-library/h5p-default-storage.class.php:519

[0x00007d847b415b10] copyFileTree() /code/wp-content/plugins/h5p/h5p-php-library/h5p-default-storage.class.php:138

[0x00007d847b415a40] exportLibrary() /code/wp-content/plugins/h5p/h5p-php-library/h5p.classes.php:1843

[0x00007d847b415890] createExportFile() /code/wp-content/plugins/h5p/h5p-php-library/h5p.classes.php:2230

[0x00007d847b415780] filterParameters() /code/wp-content/plugins/h5p/public/class-h5p-plugin.php:939

[0x00007d847b415610] get_content_settings() /code/wp-content/plugins/h5p/public/class-h5p-plugin.php:1033

[0x00007d847b415500] add_assets() /code/wp-content/plugins/h5p/admin/class-h5p-content-admin.php:250

[0x00007d847b415410] display_contents_page() /code/wp-includes/class-wp-hook.php:324

[0x00007d847b415330] apply_filters() /code/wp-includes/class-wp-hook.php:348

[0x00007d847b4152c0] do_action() /code/wp-includes/plugin.php:517

[0x00007d847b4151e0] do_action() /code/wp-admin/admin.php:259



[25-Jul-2024 18:45:20] NOTICE: child 22 stopped for tracing

[25-Jul-2024 18:45:20] NOTICE: about to trace 22

[25-Jul-2024 18:45:20] NOTICE: finished trace of 22

[25-Jul-2024 18:46:23] WARNING: [pool www] child 24, script '/code//wp-admin/admin.php' (request: "GET /wp-admin/admin.php?page=h5p&task=show&id=11") executing too slow (5.998271 sec), logging