Blank on Add New page

Forums: 

Hello!

I'm having an issue with my wordpress site on Azure only, I've tried locally and things work just fine.

- Plugin doesn't show h5p content

- Add new page is blank

 

Things I have tried:

- Reinstalling plugin on fresh site

- Disabling plugins

- Updating permalink

 

Definite culprit:

When on the Add New page, the console logs some (maybe all) of the scripts failing to load, mainly because they all start with wp-content/ instead of mydomain.com/

Here's an example of what I could copy (this goes on infinitely:

 

Loading failed for the <script> with source “https://wp-content/plugins/h5p/h5p-php-library/js/jquery.js?ver=1.16.0”. admin.php:2:1229 Loading failed for the <script> with source “https://wp-content/plugins/h5p/h5p-php-library/js/h5p.js?ver=1.16.0”. admin.php:2:1314 Loading failed for the <script> with source “https://wp-content/plugins/h5p/h5p-php-library/js/h5p-event-dispatcher.j...”. admin.php:2:1416 Loading failed for the <script> with source “https://wp-content/plugins/h5p/h5p-php-library/js/h5p-x-api-event.js?ver...”. admin.php:2:1513 Loading failed for the <script> with source “https://wp-content/plugins/h5p/h5p-php-library/js/h5p-x-api.js?ver=1.16.0”. admin.php:2:1604 Loading failed for the <script> with source “https://wp-content/plugins/h5p/h5p-php-library/js/h5p-content-type.js?ve...”. admin.php:2:1702 Loading failed for the <script> with source “https://wp-content/plugins/h5p/h5p-php-library/js/h5p-confirmation-dialo...”. admin.php:2:1807 Loading failed for the <script> with source “https://wp-content/plugins/h5p/h5p-php-library/js/h5p-action-bar.js?ver=...”. admin.php:2:1903 Loading failed for the <script> with source “https://wp-content/plugins/h5p/h5p-php-library/js/request-queue.js?ver=1...”. admin.php:2:1998 Loading failed for the <script> with source “https://wp-content/plugins/h5p/h5p-php-library/js/h5p-tooltip.js?ver=1.16.0”. admin.php:2:2091 Loading failed for the <script> with source “https://wp-content/plugins/h5p/h5p-editor-php-library/scripts/h5p-hub-cl...”. admin.php:2:2199 Loading failed for the <script> with source “https://wp-content/plugins/h5p/h5p-editor-php-library/scripts/h5peditor....”. admin.php:2:2302 Loading failed for the <script> with source “https://wp-content/plugins/h5p/h5p-editor-php-library/scripts/h5peditor-...”. admin.php:2:2424 Loading failed for the <script> with source “https://wp-content/plugins/h5p/h5p-editor-php-library/scripts/h5peditor-...”. admin.php:2:2544 Loading failed for the <script> with source “https://wp-content/plugins/h5p/h5p-editor-php-library/scripts/h5peditor-...”. admin.php:2:2662 Loading failed for the <script> with source “https://wp-content/plugins/h5p/h5p-editor-php-library/scripts/h5peditor-...”. admin.php:2:2770 Loading failed for the <script> with source “https://wp-content/plugins/h5p/h5p-editor-php-library/scripts/h5peditor-...”. admin.php:2:2878 Loading failed for the <script> with source “https://wp-content/plugins/h5p/h5p-editor-php-library/scripts/h5peditor-...”. admin.php:2:2986 Loading failed for the <script> with source “https://wp-content/plugins/h5p/h5p-editor-php-library/scripts/h5peditor-...”. admin.php:2:3096 Loading failed for the <script> with source “https://wp-content/plugins/h5p/h5p-editor-php-library/scripts/h5peditor-...”. admin.php:2:3208 Loading failed for the <script> with source “https://wp-content/plugins/h5p/h5p-editor-php-library/scripts/h5peditor-...”. admin.php:2:3325 Loading failed for the <script> with source “https://wp-content/plugins/h5p/h5p-editor-php-library/scripts/h5peditor-...”. admin.php:2:3433 Loading failed for the <script> with source “https://wp-content/plugins/h5p/h5p-editor-php-library/scripts/h5peditor-...”. admin.php:2:3542 Loading failed for the <script> with source “https://wp-content/plugins/h5p/h5p-editor-php-library/scripts/h5peditor-...”. admin.php:2:3657
Summary: 
H5P scripts not loading on WordPress
Content types: 

Hello everyone!

 

I managed to fix the issue by changing define('WP_CONTENT_URL', '/wp-content'); to define('WP_CONTENT_URL', 'https://yourdomain.com/wp-content');