• This plugin run under PHP7, produces error:

    Warning: Use of undefined constant EmbAdminAjax - assumed 'EmbAdminAjax' (this will throw an Error in a future version of PHP) in public_html/wp-content/plugins/embedder/emb-admin-ajax.php on line 33

    Quick fix:

    on line 33 of emb-admin-ajax.php find line:

    $methods = get_class_methods(EmbAdminAjax);

    and replace with

    $methods = get_class_methods('EmbAdminAjax');

Viewing 1 replies (of 1 total)
  • Whoops — thanks! Will upload a new version later today.

    It’s been a while since I actively worked on the plugin (to say the least) so there may be a few other outstanding issues because of changes to WordPress or PHP in the meantime, but I’ll keep an eye on things.

    I have tested on the latest WordPress, but my test-bed is still on an older version of PHP.

    • This reply was modified 7 years, 8 months ago by English Mike.
Viewing 1 replies (of 1 total)

The topic ‘PHP7: Warning: Use of undefined constant EmbAdminAjax’ is closed to new replies.