• Resolved dasteralo2

    (@dasteralo2)


    Hello,
    I have those messages when i enter Menus section:
    ADMIN_V3_CLIENT already defined in /home/xxx/plugins/woo-payment-gateway/includes/admin/class-admin-assets.php on line 25

    Notice: Constant BFWC_ADMIN_V3_DROPIN already defined in /home/xxx/plugins/woo-payment-gateway/includes/admin/class-admin-assets.php on line 26

    Notice: Constant BFWC_PAYPAL_MARKETING already defined in /home/xxx/plugins/woo-payment-gateway/includes/admin/class-admin-assets.php on line 27

    do you have any idea of what the problem is?
    Thank you!
    Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Clayton R

    (@mrclayton)

    Hi @dasteralo2,

    When you receive a notice that a constant has already been defined, it means it’s appearing multiple times in the code. Note that this is a notice and not an error message so it won’t affect your site’s functionality.

    Our plugin only defines those constants once, so that means you might have two versions of the plugin installed on your site.

    Are you using the plugin in a multi-site setup?

    Kind Regards,

    Thread Starter dasteralo2

    (@dasteralo2)

    Thank you for your answer.
    Nope, this is not a multi-site setup and it seems that there is only one version of the plugin.
    It’s strange that this message only appears in menus section

    Plugin Author Clayton R

    (@mrclayton)

    The messages are only appearing in the menus section because those constants are specific to the admin functionality which is only loaded when you are in the admin section.

    Those constants are defined when the action admin_enqueue_scripts is triggered. I wonder if you have another plugin active that’s calling that action again. That would cause the constants to be re-defined even though they exist.

    Kind Regards,

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Error messages in Menus’ is closed to new replies.