Forum Support

Shape 5
March 29, 2024, 12:24:41 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Fatal error: Cannot redeclare  (Read 388 times)
jc786
Jr. Member
**
Offline Offline

Posts: 152



« on: February 03, 2011, 11:07:07 AM »

HI
I'm getting this error messagage. Can you please advise what it might be?

Fatal error: Cannot redeclare s5_acc_internal_styles() (previously declared in /home2/humanhel/public_html/muslimpetitions/wp-content/plugins/mod_s5_accordion_menu/mod_s5_accordion_menu.php:27) in /home2/humanhel/public_html/muslimpetitions/wp-content/plugins/mod_s5_accordion_menu/mod_s5_accordion_menu.php on line 27

Here is the code from line 25-28
if($acc_need_css == '1'){
         define('S5_ACC_PATH', WP_PLUGIN_URL . '/mod_s5_accordion_menu/');          
         function s5_acc_internal_styles(){echo '<link rel="stylesheet" href="'.S5_ACC_PATH.'css/s5_accordion_menu.css" type="text/css" />';}
         add_action('wp_head','s5_acc_internal_styles');} ?>


Thanks
Logged
Tristan Rineer
Global Moderator
*****
Offline Offline

Posts: 3858

Gravatar


« Reply #1 on: February 03, 2011, 05:35:04 PM »

Please try commenting out that block of code like this, and let me know if that fixes the problem:
Code:
/** if($acc_need_css == '1'){
         define('S5_ACC_PATH', WP_PLUGIN_URL . '/mod_s5_accordion_menu/');         
         function s5_acc_internal_styles(){echo '<link rel="stylesheet" href="'.S5_ACC_PATH.'css/s5_accordion_menu.css" type="text/css" />';}
         add_action('wp_head','s5_acc_internal_styles');} **/?>

Our demo site doesn't seem to have that problem, so it could be something specific to your server.  If you notice, the error message is saying that it's trying to repeat that line a second time, which is somewhat unusual.  If that fixes it, great.  If not, I'll be glad to take another look and see if there's something else that can be done.
Logged

Tristan Rineer
------------
Shape 5 Team



- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.