php forum
php mysql forum
php mysql smarty
 
Topic Options
#279716 - 09/18/04 01:02 PM A PHP error I'm getting, need help
donJulio Offline
Code Monkey

Registered: 06/17/02
Posts: 682
Loc: CA, USA
I'm trying to upgrade the Hivemail/Threads integration to work with Hivemail 1.3.1. It can update new mail, but I can't sign up new users into hivemail. I've attatched the ubbthreads_plugin.php file as a .txt file.<br /><br />Anyhow, I get this error when I try to sign up a new user:<br /><br /> [] <br />Fatal error: Call to a member function on a non-object in /home/laondal/public_html/correo/includes/ubbthreads_plugin.php on line 116 [/] <br /><br />So I changed the instances of "$dbh->do_query" to "$DB_site->query" before the two queries for creating a user and got this error:<br /><br /> [] Fatal error: Call to a member function on a non-object in /home/laondal/public_html/correo/includes/ubbthreads_plugin.php on line 112 [/] <br /><br />The two queries for creating the user, with $DB_site->query is an exact copy of the query used by Hivemail to insert a new user into the database, so I don't know what I really need to do to make this work.<br /><br />Any suggestions would be appreciated. Thanks! <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />


Attachments
120055-ubbthreads_plugin.txt (154 downloads)

_________________________
Too many men. There's too many people making too many problems, and not much love to go around. Can't you see this is the Land of Confusion? <img src="http://www.ubbdev.com/forum/images/graemlins/confused.gif" alt="" />

Top
#279717 - 09/18/04 11:33 PM Re: A PHP error I'm getting, need help [Re: luan]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Well - line 116 is this:<br /><br /> (NULL, '".addslashes($username)."', '".addslashes($password)."', '".addslashes(IPADDRESS)."', ".iif(getop('moderate'), 3, 2).", '".addslashes($altemail)."', ".getop('defaultskin').", ".getop('defaultlang').", '".addslashes($realname)."', ".TIMENOW.", ".TIMENOW.", '".addslashes(USER_DEFAULTCOLS)."', '$birthday', '".addslashes($question)."', '".addslashes(md5($answer))."', '".addslashes($country)."', '".addslashes($state)."', '".addslashes($zip)."', $defuseroptions[0], $defuseroptions[1], '".addslashes($username.$domain)."', 'Verdana|10|Regular|Black|None', ".addslashes(floatme($timezone)).", ".intval($DB_site->get_field('SELECT soundid FROM hive_sound WHERE userid <= 0 ORDER BY userid LIMIT 1')).", '".addslashes($domain)."', '".addslashes($username)."')<br /><br /><br />The error means you are calling a function outside of the class which it's in. There are some functions in there, like "getop" which I'm not familar with. They may be something specific to hivemail and the class hasn't been called.<br /><br />Also that get_field function. It may be part of a different class.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks