Go Back   Pligg CMS Forum > Pligg Development > Bug Report

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-14-2006, 03:19 AM
Yankidank's Avatar
Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 1,833
Thanks: 110
Thanked 183 Times in 129 Posts
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
dbconnect.php line 6 error

I'm getting this message when using the updated dbconnect.php file included with the beta 5.7 release. Not sure if this is something new to 5.7, since I haven't updated dbconnect.php for a long time.

Fatal error: Cannot redeclare _() in /home/.fetchit/scad/scadart.com/libs/dbconnect.php on line 6


dbconnect.php line 6:

function _($s) {return $s;}

I removed line 6 and everything is working fine to my knowledge.
Reply With Quote
  #2 (permalink)  
Old 01-14-2006, 10:37 AM
Constant Pligger
 
Join Date: Jan 2006
Posts: 197
Thanks: 1
Thanked 0 Times in 0 Posts
wish I could code I dropped out off compsci in college 8 years ago, regret it to this day.

edit: looked it up on google, apperantly everyone that got the same error (in wordpress) says that commenting out the offending code fixes the problem, however they do not know what is affected by commenting it out. dunno if that's usless info to you

Last edited by cryptkeeper; 01-14-2006 at 10:41 AM..
Reply With Quote
  #3 (permalink)  
Old 01-14-2006, 01:16 PM
AshDigg's Avatar
Coder
 
Join Date: Dec 2005
Posts: 1,574
Thanks: 235
Thanked 345 Times in 206 Posts
You're not supposed to use the dbconnect that's included. You need to use the one that was created when you ran the installer.

The installer add's the line "function _($s) {return $s;}" to your dbconnect ONLY if you need it (like my test box does).
__________________
- Ash

Last edited by AshDigg; 01-14-2006 at 03:16 PM..
Reply With Quote
  #4 (permalink)  
Old 02-03-2006, 04:51 AM
New Pligger
 
Join Date: Feb 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
i was also having the same problem and after removing this line:
function _($s) {return $s;}

from dbconnect.php that fixed it. thanks as well
Reply With Quote
  #5 (permalink)  
Old 02-06-2006, 07:09 AM
New Pligger
 
Join Date: Feb 2006
Posts: 15
Thanks: 0
Thanked 1 Time in 1 Post
Yea that function is needed by the normal spanish script I don't know about Pligg's script. I left mine up because without it it doesn't work.
Reply With Quote
Reply

Thread Tools
Display Modes
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
Internal server error pligger2 General Help 1 10-19-2007 05:11 AM
cann't vote in pligg (buliding 802) haxhax Bug Report 27 03-10-2007 06:53 AM
Got This Parse Error on c_ file on line 141 endph General Help 0 02-14-2007 06:44 PM
ERROR: my_base_url is not set. Please correct this using the admin panel. Then refres search Installation and Upgrade Help 7 11-14-2006 10:35 PM
/var/log/httpd/error_log messages gr8rcake Bug Report 3 01-28-2006 09:28 PM


Search Engine Friendly URLs by vBSEO 3.2.0