"Loading semantics, please wait"

When adding a text box to a Course Presentastion in Wordpress the semantics fail to load. I'm also getting this when I try to edit a Twitter feed.

In my Safari error console I'm seeing:

http://www.inspireslearning.com/journal/wp-admin/admin-ajax.php?token=ce... to load resource: the server responded with a status of 503 (Service Temporarily Unavailable)

I've got the Twitter feed semantics loading. The twitter feed is the last of 27 slides. So I guessed that I was moving fast to the last slide in the h5p wordpress editor and then immediately trying to edit it. If I did this more slowly, and wait 20 seconds before trying to edit the feed details, it works OK. Is that because ajax.admin.php is slow in responding - I've read that it is often a problem, and can timeout - hence not loading the semantics file (json?).

falcon's picture

How much memory is available for PHP on your server? It might be a memory issue. I just tested on my local host and I don't have to wait at all.

I just increased it to:

define('WP_MEMORY_LIMIT', '128M');
define( 'WP_MAX_MEMORY_LIMIT', '256M' );

falcon's picture

Did it help? Are you able to confirm that you're getting this much memory? The memory must be allocated to PHP as well I thinkl.

Unfortunately with my hosting deal I don't seem to get control over the PHP memory allocation. I'll investigate further. I really don't like Wordpress! Does it work better with Drupal? I might try that out. And how is the development of the Moodle plugin? That would be most useful for us.

Thanks for your help. H5P is superb!

You can see two examples of what I have done here: 

https://h5p.org/node/16400 (this is the one I had trouble with on Wordpress, so I built it on your site)

http://www.inspireslearning.com/journal/interactive-cv/ (Timelines work fine on Wordpress)

falcon's picture

Ok, it is probably a memory problem then. Moodle plugin is in beta and will be a release candidate soon after Community Members have done some testing. No bugs reported so far as far as I know. https://h5p.org/moodle