4images Forum & Community

4images Issues / Ausgaben => Feedback & Suggestions => Topic started by: LoganSix on February 27, 2007, 09:24:24 PM

Title: Unique function names
Post by: LoganSix on February 27, 2007, 09:24:24 PM
Code: [Select]
Fatal error: Cannot redeclare get_categories() (previously declared in /blog/wp-includes/category.php:14) in /gallery/includes/functions.php on line 1120
On the next update can you verify that all functions have unique names?
The above mentioned function could be changed to get_galleryCategories().

I am trying to create a page on my site that will include the latest public new images.  The page is located witin the WordPress structure, so both applications are calling different functions with the same name.
I will also notify WordPress of this bug too.

Thanks.
Title: Re: Unique function names
Post by: Bodzio on May 09, 2015, 11:50:18 AM
I had the same problem, so I changed the names of the get_categories to _get_Galcategories, but now I have something strange:

Fatal error: Call to undefined function get_Galcategories() in /public_html/galeria/index.php on line 80

i think that it is declared...

I cleared cache, and now I get:

Fatal error: Cannot redeclare get_categories() in /public_html/wp/wp-includes/category.php on line 22

I checked the files, and there is no get_categories() in them - I mean 4images.

(I am trying to integrate the wordpress header and footer to the 4images template)...
Title: Re: Unique function names
Post by: Rembrandt on May 11, 2015, 07:36:21 PM
..

I checked the files, and there is no get_categories() in them - I mean 4images.


search in includes/functions.php  "get_categories".