Support Forums

Fatal error: Call to undefined function

This is a discussion on Fatal error: Call to undefined function within the Installation Problems forums, part of the Technical Support Forums category; I'm trying to reinstall 68 classifieds. Everything went fine up to where it says Site Settings, when I click next ...


Go Back   68 Classifieds Forums > Technical Support Forums > Installation Problems

Reply
 
Thread Tools Display Modes
Old 01-06-2010, 08:14 PM   #1
Junior Member
 
Join Date: Dec 2008
Posts: 13
Rep Power: 9
rubpay73 is on a distinguished road
Default Fatal error: Call to undefined function

I'm trying to reinstall 68 classifieds. Everything went fine up to where it says Site Settings, when I click next an error shows up.

Fatal error: Call to undefined function throw_db_error() in /home/xxxxxx/public_html/includes/classes/database/mysql.php on line 96

I've installed 68c many times and this is the first time it does that.
__________________
Ruben

68 Classifieds Developer 4.1.3 version
rubpay73 is offline   Reply With Quote
Old 01-06-2010, 09:24 PM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,497
Rep Power: 132
Eric Barnes is just really nice Eric Barnes is just really nice
Default

It seems to be a bug that the file the function is in is not included at that step. But all it does it print out an error message.

I am guessing your database connection values are not correct or it can not connect to the mysql server. Can you double check those and try again?
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 01-06-2010, 09:46 PM   #3
Junior Member
 
Join Date: Dec 2008
Posts: 13
Rep Power: 9
rubpay73 is on a distinguished road
Default

A step before this one said connection made successfully
__________________
Ruben

68 Classifieds Developer 4.1.3 version
rubpay73 is offline   Reply With Quote
Old 01-06-2010, 10:06 PM   #4
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,497
Rep Power: 132
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Will you open setup/includes/functions.php and add this just above the closing php. "?>"
Code:
function throw_db_error($heading, $message)
{
   echo '<h2>'.$heading.'</h2>';
  echo '<p>'.$message.'</p>';
die;
}
This should then show what the actual error is.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 01-06-2010, 10:13 PM   #5
Junior Member
 
Join Date: Dec 2008
Posts: 13
Rep Power: 9
rubpay73 is on a distinguished road
Default

It says Database ERROR

Could not connect to server
__________________
Ruben

68 Classifieds Developer 4.1.3 version
rubpay73 is offline   Reply With Quote
Old 01-06-2010, 10:28 PM   #6
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,497
Rep Power: 132
Eric Barnes is just really nice Eric Barnes is just really nice
Default

That is really strange. The previous step should be catching any db errors. Can you open the connections/classifieds.php file and see if what it is saving is the same as you are entering. No extra spaces or anything?
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 01-06-2010, 10:49 PM   #7
Junior Member
 
Join Date: Dec 2008
Posts: 13
Rep Power: 9
rubpay73 is on a distinguished road
Default

Finally it worked!!

what happened was that my database password had a single quotation mark ( ' ) in it and that confused the script

THANKS FOR ALL YOUR HELP!!!
__________________
Ruben

68 Classifieds Developer 4.1.3 version
rubpay73 is offline   Reply With Quote
Old 01-07-2010, 09:50 AM   #8
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,497
Rep Power: 132
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Ahh good find. Glad you got it sorted.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error Message Undefined variable jaybarber1 Technical Support 2 08-04-2009 01:27 PM
Call Smarty Modifier Function Syntax nagrap2 Technical Support 2 02-16-2009 03:48 PM
Help needed: Notice: Undefined index error Grebogreen Technical Support 0 04-21-2007 04:16 AM


All times are GMT -4. The time now is 10:35 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0