
Originally Posted by
RodG
Yup. The file probably being loaded more than once.
I can offer a possible solution even though I can't really explain why you would need it but apparently no one else does,
Two files
/includes/init_includes/init_special_funcs.php
and
admin//includes/init_includes/init_special_funcs.php
Once contains code that reads
require(DIR_WS_FUNCTIONS . 'featured.php') ;
The other
require(DIR_FS_CATALOG . DIR_WS_FUNCTIONS . 'featured.php') ;
My 'theory' is that if the DIR_FS_CATALOG isn't defined (for whatever reason - even though I can't see how the store would function without it) the same 'featured.php' file will be loaded twice. If this were the case though, why is it only this function being redeclared?
If that theory is incorrect, and it probably is, then my *assumption* that the file is being loaded twice could still be valid, and there is an 'easy' way to prevent the error - even if the cause of the double loading isn't known... Change the 'require(blah blah...)' ; to 'require_once(blah blah...)' ;
This change, in itself, is quite safe and shouldn't have any ill effects. It doesn't really identify the cause as to why it is needed though. Perhaps there is an 'old/new' file in one of the auto_load folders that is causing it?
Sorry, no real answer, but a *possible* solution that will effectively 'hide' the problem.
Cheers
RodG