Support » Theme: Ad Mag-Lite » Pages with shortcodes broken

Viewing 4 replies - 1 through 4 (of 4 total)
  • lordmatt

    (@lordmatt)

    The error I get is:

    Fatal error: Cannot redeclare ad_mag_lite_comments_callback() (previously declared in /[…]/wp-content/themes/ad-mag-lite/comments.php:53) in /[…]/wp-content/themes/ad-mag-lite/comments.php on line 129

    • This reply was modified 8 months ago by  lordmatt.
    lordmatt

    (@lordmatt)

    I fixed it by wrapping BOTH functions in comments.php in an if not functions exists and then moving

        // Get comment form
        ad_mag_lite_comment_form();

    after the functions

    lordmatt

    (@lordmatt)

    I would suggest that there was a better location for those functions.

    lordmatt

    (@lordmatt)

    I fixed another problem by moving the functions to the top of the file. I really think this is not the right file for these functions.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Pages with shortcodes broken’ is closed to new replies.