WordPress.org

Ready to get started?Download WordPress

Forums

Cannot redeclare load_template() (2 posts)

  1. cron
    Member
    Posted 8 years ago #

    After installing Coppermine Gallery I get this error message :

    Fatal error: Cannot redeclare load_template() (previously declared in /home/zaeatco/public_html/tokyocrew51/gallery/include/functions.inc.php:653) in /home/zaeatco/public_html/tokyocrew51/wp-includes/functions.php on line 2085

    Does anyone have any sugestions? I know that wordpress and coppermine both have a function called load_template() and that they are intefering with each other. Does anyone know a work around?

    Any help would be appreciated;

    Cron

  2. cron
    Member
    Posted 8 years ago #

    I have found that there are quite a few functions that the same between wordpress and coppermine:

    load_template()
    make_clickable()
    get_setings()

    and more. I have tried putting cmg_ in front of the coppermine ones and wp_ in front of the wordpress ones but they are refrenced in a ton of diffrent files and I am afraid that this will ruin future proofing.

    Is there any way I could use a plugin to automaticly put wp_ in front of all the wordpress functions. That way it will automaticly re-refrence all the calls to that function and I can dissable it whenever I want.

    Is this posible?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.