Fatal error: Cannot redeclare sdec() help !

  • Answered
I'm getting this error

Fatal error: Cannot redeclare sdec() (previously declared in /home/playho10/public_html/libraries/joomla/session/session.php:135) in /home/playho10/public_html/libraries/joomla/session/session.php on line 176

can anyone help ?
Hello Kayskeem,

Sorry to hear you are getting an error about decalring the sdec function. The error states that your function is already defined ;

This normally means one of two things:
You have the same function defined either in two files or twice in the same file

The file in which your function is defined is included two times (so, it seems the function is defined two times)

To help with the second scenario, you would want to use include_once as opposed to include when you include your functions file. This way it cannot be included more than once.

Kindest Regards,
Scott M