• Resolved k40s

    (@k40s)


    Hello, I was going to try the plugin but when I activate it i get the following error:

    Fatal error: Cannot redeclare create_taxonomy() (previously declared in {path_to_theme}/functions.php:164) in {path}/wp-content/plugins/photo-gallery/photo-gallery.php on line 186

    The taxonomy created is: bwg_tag but on my theme I don’t have any other with the same name. Could you help me?

    Thanks

    https://ww.wp.xz.cn/plugins/photo-gallery/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor webdorado

    (@webdorado)

    Dear k40s,

    The function in use is create_taxonomy. Most likely your theme is also using the same title function. Please go to the main php file of the photo gallery and here find create_taxonomy and replace it with bwg_create_taxonomy. This will fix your issue.

    Thread Starter k40s

    (@k40s)

    Thank you webdorado, that worked out!

    Will you include that change on the next version?

    Plugin Contributor webdorado

    (@webdorado)

    Dear k40s,

    We will include it within our upcoming update. We are glad your issue got fixed.

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

The topic ‘Error when activating. (redeclare taxonomy)’ is closed to new replies.