• Resolved kanojia

    (@kanojia)


    Hi

    I love your plugin.. just work as perfect for my need..

    I need help with one thing I got an error log stating — Cannot redeclare for generate_name_html()

    I have multiple files having the same codes but slight filters in every file..
    but after updating all posts with shortcodes in the post I got that error

    Can you help me to fix this error

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Mircea Sandu

    (@gripgrip)

    Hi @kanojia,

    Thank you for your feedback – we’re happy to hear you like the plugin.

    If you are using the snippet as a shortcode and you are declaring a function in it you should add a check to make sure the function wasn’t previously declared using “function_exists()”.

    Alternatively, you can try adjusting the snippet so that you don’t declare a function in the shortcode.

    Thread Starter kanojia

    (@kanojia)

    Hi we have rss diff data which we using shortcodes in multiple posts using same php and html funtions this maybe creating a cause coz its calling multiple times although with diff data but same appraoch..

    Plugin Author Mircea Sandu

    (@gripgrip)

    Hi @kanojia,

    Yes, if you are using the same function name in different shortcodes you will run into that error. If you need more detailed info on this please reach out via our contact form at https://wpcode.com/contact so that you can share some of the snippet code privately and we’ll try to provide some alternatives.

    Thread Starter kanojia

    (@kanojia)

    This error is not coming now.. but the issue still there… not actully harming anything .. just wanted to know if that cause any problem in performance and speed level?

    Using same php html 20 times for 20 diff shortcodes for posts to fatch diff data just cahning only one parament.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error log’ is closed to new replies.