Author Topic: Unique function names  (Read 11362 times)

0 Members and 1 Guest are viewing this topic.

Offline LoganSix

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • http://www.dean-logan.com/gallery
Unique function names
« 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.

Offline Bodzio

  • Newbie
  • *
  • Posts: 36
  • BJ Fan
    • View Profile
    • Always - Bon Jovi Portal Gallery
Re: Unique function names
« Reply #1 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 errorCall 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 errorCannot 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)...
« Last Edit: May 09, 2015, 12:06:36 PM by Bodzio »
---
Best regards / Pozdrawiam serdecznie

Artur "Bodzio" Bogdański

Rembrandt

  • Guest
Re: Unique function names
« Reply #2 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".