WordPress.org

Ready to get started?Download WordPress

Forums

HTML5 jQuery Audio Player
[resolved] Fatal error: Cannot redeclare my_admin_scripts() (3 posts)

  1. andrebazaglia
    Member
    Posted 1 year ago #

    Hello,

    I am unable to activate the plugin. Everytime I tries I get this message:

    Fatal error: Cannot redeclare my_admin_scripts() in /var/www/wp-content/plugins/html5-jquery-audio-player/index.php on line 232

    I'm using the latest plugin version and WordPress 3.5. What should I do?

    Thank you very much.

    http://wordpress.org/extend/plugins/html5-jquery-audio-player/

  2. Maeve Lander
    Member
    Plugin Author

    Posted 1 year ago #

    Sounds like you might have another plugin or theme that is already using the name my_admin_scripts() The solution is to change the name to something unique. You could change the one in your theme or the other plugin, or in this plugin in index.php

    Do be aware that if you make customisations to a plugin then if you update it in the future you'll overwrite the change, so if it's the theme better to do it there than in the plugin, however if it's another plugin then it is unavoidable so just pick one and make sure you remember it if you update.

    Hope this helps.

  3. andrebazaglia
    Member
    Posted 1 year ago #

    Worked! Thanks. Excellent plugin! :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.