Kayako logo
Will Implement (V3) Feature requests in this forum will be implemented in Version 3 of the product line (the current version).

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  (#1) Old
Sheep Offline
Member
 
Sheep's Avatar
 
Posts: 350
Join Date: Feb 2007
Location: Lyon, France
Code -> change 2 function's names - 10-07-2007, 02:51 PM

Quote:
Fatal error: Cannot redeclare fetchchildcategories()
(previously declared in support\modules\knowledgebase\functions_knowledgeb ase.php:373)
in support\modules\downloads\functions_downloads.php on line 87
There's 2 functions having the same name:
PHP Code:
function fetchChildCategories($kbcategoryid, &$tslist
function 
fetchChildCategories($downloadcategoryid, &$tslist
they should be renamed to fetchKBChildCategories and fetchDLChildCategories.


atm you can't include the two files at the same time
PHP Code:
require_once ("./modules/knowledgebase/functions_knowledgebase.php");  
require_once (
"./modules/downloads/functions_downloads.php"); 
http://www.php.net/language.functions
Quote:
PHP does not support function overloading, nor is it possible to undefine or redefine previously-declared functions.


Antoine "Sheep" BERMON
-- Lurking around there --

Last edited by Sheep; 10-07-2007 at 03:05 PM.
   
Reply With Quote
  (#2) Old
Jamie Edwards Offline
Operations Manager
 
Jamie Edwards's Avatar
 
Posts: 5,559
Join Date: Jan 2006
Location: United Kingdom
10-07-2007, 03:04 PM

Adding this as a bug to the bug tracker instead.


Jamie Edwards (jamie.edwards ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#3) Old
Jamie Edwards Offline
Operations Manager
 
Jamie Edwards's Avatar
 
Posts: 5,559
Join Date: Jan 2006
Location: United Kingdom
10-07-2007, 03:06 PM

http://bugs.kayako.com/index.php?cmd=view&id=159


Jamie Edwards (jamie.edwards ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#4) Old
Sheep Offline
Member
 
Sheep's Avatar
 
Posts: 350
Join Date: Feb 2007
Location: Lyon, France
10-07-2007, 03:12 PM

Well.. it's not really a "bug" as Supportsuite will work perfectly without changing this. That why i posted under Feature Request

This -bug- is encountered when develloping a module and including those 2 files (in kayako's code they are never called in the same time)

Thanks anyway jamie.


Antoine "Sheep" BERMON
-- Lurking around there --

Last edited by Sheep; 10-07-2007 at 03:16 PM.
   
Reply With Quote
  (#5) Old
Sheep Offline
Member
 
Sheep's Avatar
 
Posts: 350
Join Date: Feb 2007
Location: Lyon, France
10-07-2007, 03:51 PM

Seems like there's more functions


3 files are in conflict:
modules/knowledgebase/functions_knowledgebase.php
modules/downloads/functions_downloads.php

modules/troubleshooter/functions_troubleshooter.php

as far as i could find here are the other functions in conflicts:
Quote:
renderCategoryList()


Antoine "Sheep" BERMON
-- Lurking around there --
   
Reply With Quote
  (#6) Old
Jamie Edwards Offline
Operations Manager
 
Jamie Edwards's Avatar
 
Posts: 5,559
Join Date: Jan 2006
Location: United Kingdom
10-07-2007, 05:57 PM

To keep things easier and in case you find more, I have kept it as a feature request.

Thanks Antoine!


Jamie Edwards (jamie.edwards ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#7) Old
Sheep Offline
Member
 
Sheep's Avatar
 
Posts: 350
Join Date: Feb 2007
Location: Lyon, France
11-07-2007, 10:14 AM

Seems like that's all.

patch:

for each file in modules/downloads
replace every fetchChildCategories(
by fetchChildDLCategories(
replace every renderCategoryList(
by renderDLCategoryList(

for each file in modules/knowledgebase
replace every fetchChildCategories(
by fetchChildKBCategories(
replace every renderCategoryList(
by renderKBCategoryList(


for each file in modules/troubleshooter
replace every fetchChildCategories(
by fetchChildTSCategories(
replace every renderCategoryList(
by renderTSCategoryList(


supporsuite seems to be working with no problems.
no more conflicts in my module with triple inclusions

you can close this request as it's solved (and should be submited to the dev team)

Greetings,
Antoine


Antoine "Sheep" BERMON
-- Lurking around there --
   
Reply With Quote
Reply

Tags
>, code, function, names

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Functionality -> Change and asset management Jeremym87 Think Tank 57 01-12-2008 07:11 PM
Live Chat Tag Generator -> Generate tag for more than one dept. craigbrass Feature Requests 0 30-07-2007 08:09 PM
Misc / General Product URL -> Add a trailing slash if none is found dmarwick Will Implement (V3) 0 02-12-2006 12:21 AM
Change names of flags f0rd42 SupportSuite, eSupport and LiveResponse 3 27-04-2006 09:50 AM



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Help desk software by Kayako.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48