• Resolved xu_xusha

    (@xu_xusha)


    I already have seen that you had resolved this problem in version 0.4.1.
    Sorry for opening new topic, this plugin is really cool and it worked before and saved me A LOT!

    Now comments shortcode creates this error:

    Fatal error: Cannot redeclare mytheme_comment() (previously declared in /home/content/36/11401336/html/wp-content/themes/yoo_moustache_wp/layouts/comments.php:29) in /home/content/36/11401336/html/wp-content/themes/yoo_moustache_wp/layouts/comments.php on line 29

    Thank you.

    https://www.ads-software.com/plugins/custom-content-shortcode/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Eliot Akira

    (@miyarakira)

    Hello, thank you for telling me about this. It’s a compatibility issue with the theme you’re using. I don’t have the theme myself so I cannot test it, but I made changes to the name of the comments shortcode function and updated the plugin (v0.4.9).

    Can you tell me if the update solves the issue?

    Thread Starter xu_xusha

    (@xu_xusha)

    Wow! Your support is fast.

    No, I updated, then I even uninstalled and installed the plugin, but it shows the same error.

    Fatal error: Cannot redeclare mytheme_comment() (previously declared in /home/content/36/11401336/html/wp-content/themes/yoo_moustache_wp/layouts/comments.php:29) in /home/content/36/11401336/html/wp-content/themes/yoo_moustache_wp/layouts/comments.php on line 29

    May be I should change some discussion settings?

    It is yootheme.com theme “Moustache”.
    It is paid, but I can send you this theme via e-mail or I can tell you some info you need. Just let me know.
    My e-mal is: xenia.ericovna [at] gmail [.] com
    Thank you a lot for the support)

    Plugin Author Eliot Akira

    (@miyarakira)

    For anyone else who is using the Warp framework, apparently their comments template cannot be called from outside the theme. It declares mytheme_comment() inside, so using the [comments] shortcode produces an error.

    The way we solved it was putting this in line 28 of /layout/comments.php:

    if ( ! function_exists('mytheme_comment') ) {

    ..and on line 80:

    }

    This prevents the function from being declared twice.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error in Version 0.4.8’ is closed to new replies.