FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Undefined variables: "register_conf_subject" and "reset_confirmation"
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
Undefined variables: "register_conf_subject" and "reset_confirmation" [message #167331] Fri, 08 June 2012 00:00 Go to next message
DaveQB is currently offline  DaveQB   Australia
Messages: 109
Registered: January 2006
Location: Sydney
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user

Notice: Undefined variable: register_conf_subject in public_html/adm/admuser.php on line 110
Notice: Undefined variable: reset_confirmation in public_html/adm/admuser.php on line 110


I get this when hitting the "Reset Password" link for a user.
The email ends up being blank.

Any tips?
Thanks.


UDforum version: 3.0.3
PHP version: 5.3.10
Database type: mysql (mysql)
Database version: 5.5.20
Re: Undefined variables: "register_conf_subject" and "reset_confirmation" [message #167373 is a reply to message #167331] Mon, 11 June 2012 01:50 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3624
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
I've developed a patch. Will commit it later after some testing.
Re: Undefined variables: "register_conf_subject" and "reset_confirmation" [message #167376 is a reply to message #167373] Mon, 11 June 2012 15:48 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3624
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
Please test this patch and let us know if it solves the problem:
http://fudforum.svn.sourceforge.net/fudforum/?rev=5511&view=rev
Re: Undefined variables: "register_conf_subject" and "reset_confirmation" [message #167380 is a reply to message #167376] Tue, 12 June 2012 03:54 Go to previous messageGo to next message
DaveQB is currently offline  DaveQB   Australia
Messages: 109
Registered: January 2006
Location: Sydney
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user

naudefj,

Thanks for the speedy response and patch.

I will test this tomorrow and give feedback.

Thanks again!
Re: Undefined variables: "register_conf_subject" and "reset_confirmation" [message #167381 is a reply to message #167380] Tue, 12 June 2012 04:04 Go to previous messageGo to next message
DaveQB is currently offline  DaveQB   Australia
Messages: 109
Registered: January 2006
Location: Sydney
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user

I just did a diff on your new file with mine compared to the diff with your new patch and the last version fro the 6th of June.

I have the same changes until line 354 where I continue to have more.

See code block below.

Also, may I suggest line 190 be changed from:
echo errorify('Sorry, you cannot abdicate from being and administrator. Ask another administrator to remove your account.');

to
echo errorify('Sorry, you cannot abdicate from being an administrator. Ask another administrator to remove your account.');







@@ -356,7 +354,7 @@
                $item_s = _esc($item_s);
 
                if (($cnt = q_singleval('SELECT count(*) FROM '. $DBHOST_TBL_PREFIX .'users WHERE '. $field . ($like ? ' LIKE ' : '=') . $item_s))) {
-                       $c = uq(q_limit('SELECT id, alias, email, last_visit, last_used_ip, posted_msg_count FROM '. $DBHOST_TBL_PREFIX .'users WHERE '. $field . ($like ? ' LIKE ' : '=') . $item_s . ' ORDER BY last_login DESC', 40, $start));
+                       $c = uq(q_limit('SELECT id, alias, email, last_login, last_known_ip, posted_msg_count FROM '. $DBHOST_TBL_PREFIX .'users WHERE '. $field . ($like ? ' LIKE ' : '=') . $item_s, 40, $start));
                }
                switch ($cnt) {
                        case 0:
@@ -376,12 +374,12 @@
                                echo '<p>There are '. $cnt .' users that match this '. $field .' mask:</p>';
                                echo '<table class="resulttable fulltable">';
                                echo '<thead><tr class="resulttopic">';
-                               echo '  <th>User Login</th><th>E-mail</th><th>Last visit</th><th>Last IP</th><th>Posts</th><th>Action</th>';
+                               echo '  <th>User Login</th><th>E-mail</th><th>Last online</th><th>Last IP</th><th>Posts</th><th>Action</th>';
                                echo '</tr></thead>';
                                $i = 0;
                                while ($r = db_rowarr($c)) {
                                        $bgcolor = ($i++%2) ? ' class="resultrow2"' : ' class="resultrow1"';
-                                       echo '<tr'. $bgcolor .'><td>'. $r[1] .'</td><td>'. htmlspecialchars($r[2]) .'</td><td>'. fdate($r[3], 'd M Y H:i:s') .'</td><td>'. $r[4] .'</td><td>'. $r[5] .'</td><td><a href="admuser.php?usr_id='. $r[0] .'&amp;act=m&amp;'. __adm_rsid .'">Edit</a> | <a href="admuser.php?act=del&amp;usr_id='. $r[0] .'&amp;'. __adm_rsid .'">Delete</a></td></tr>';
+                                       echo '<tr'. $bgcolor .'><td>'. $r[1] .'</td><td>'. htmlspecialchars($r[2]) .'</td><td>'. fdate($r[3], 'd M Y') .'</td><td>'. long2ip($r[4]) .'</td><td>'. $r[5] .'</td><td><a href="admuser.php?usr_id='. $r[0] .'&amp;act=m&amp;'. __adm_rsid .'">Edit</a> | <a href="admuser.php?act=del&amp;usr_id='. $r[0] .'&amp;'. __adm_rsid .'">Delete</a></td></tr>';
                                }
                                echo '</table>';
                                unset($c);
@@ -421,11 +419,11 @@
        if ($u->sig) {
                echo '<tr class="field"><td>Signature:</td><td>'. $u->sig .'</td></tr>';
        }
-       if ($u->registration_ip) {
-               echo '<tr class="field"><td>Registration:</td><td>'. fdate($u->join_date, 'd M Y') .' from <a href="../'. __fud_index_name__ .'?t=ip&amp;ip='. $u->registration_ip .'&amp;'. __adm_rsid .'" title="Analyse IP usage">'. $u->registration_ip .'</a></td></tr>';
+       if ($u->reg_ip) {
+               echo '<tr class="field"><td>Registration:</td><td>'. fdate($u->join_date, 'd M Y') .' from <a href="../'. __fud_index_name__ .'?t=ip&amp;ip='. long2ip($u->reg_ip) .'&amp;'. __adm_rsid .'" title="Analyse IP usage">'. long2ip($u->reg_ip) .'</td></tr>';
        }
-       if ($u->last_used_ip) {
-               echo '<tr class="field"><td>Last visit:</td><td>'. fdate($u->last_visit, 'd M Y') .' from <a href="../'. __fud_index_name__ .'?t=ip&amp;ip='. $u->last_used_ip .'&amp;'. __adm_rsid .'" title="Analyse IP usage">'. $u->last_used_ip .'</a></td></tr>';
+       if ($u->last_known_ip) {
+               echo '<tr class="field"><td>Last visit:</td><td>'. fdate($u->last_visit, 'd M Y') .' from <a href="../'. __fud_index_name__ .'?t=ip&amp;ip='. long2ip($u->last_known_ip) .'&amp;'. __adm_rsid .'" title="Analyse IP usage">'. long2ip($u->last_known_ip) .'</a></td></tr>';
        }
        if ($u->posted_msg_count) {
                echo '<tr class="field"><td>Post count:</td><td>'. $u->posted_msg_count .' [ <a href="../'.__fud_index_name__.'?t=showposts&amp;id='.$usr_id.'&amp;'.__adm_rsid.'" title="View user\'s messages on the forum">View Messages</a> ]</td></tr>';
Re: Undefined variables: "register_conf_subject" and "reset_confirmation" [message #185426 is a reply to message #167331] Sun, 30 March 2014 22:13 Go to previous messageGo to next message
DaveQB is currently offline  DaveQB   Australia
Messages: 109
Registered: January 2006
Location: Sydney
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user

Reviving an old thread. I am in the middle of moving my forum and will also take the opportunity to upgrade. But I have noticed that the "reg_ip" value for all users is a number like so:

2130706433
1702301936
1917744662

What is storing this value in this field?

Thanks.
Re: Undefined variables: "register_conf_subject" and "reset_confirmation" [message #185430 is a reply to message #185426] Mon, 31 March 2014 01:26 Go to previous messageGo to next message
naudefj is currently offline  naudefj   
Messages: 3624
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
"reg_ip" contained a numerical representation of an IPv4 address.

It was replaced by "registration_ip" in FUDforum 3.0.4 to accommodate IPv6 addresses.

For details, see Fud30_users.

[Updated on: Mon, 31 March 2014 02:19]

Report message to a moderator

Re: Undefined variables: "register_conf_subject" and "reset_confirmation" [message #185437 is a reply to message #185430] Mon, 31 March 2014 02:21 Go to previous messageGo to next message
DaveQB is currently offline  DaveQB   Australia
Messages: 109
Registered: January 2006
Location: Sydney
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user

Thanks naudefj

I have just upgraded to 5.0.5 after moving servers. I'll look into that link. Hopefully the upgraded cleaned everything up.

Just to be clear, the issue I had was that literal number was being shown in the GUI and so IP look ups didn't work.

Thanks for the quick response!
Re: Undefined variables: "register_conf_subject" and "reset_confirmation" [message #185438 is a reply to message #185437] Mon, 31 March 2014 02:26 Go to previous message
DaveQB is currently offline  DaveQB   Australia
Messages: 109
Registered: January 2006
Location: Sydney
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user

DaveQB wrote on Mon, 31 March 2014 17:21
Thanks naudefj

I have just upgraded to 5.0.5 after moving servers. I'll look into that link. Hopefully the upgraded cleaned everything up.

Just to be clear, the issue I had was that literal number was being shown in the GUI and so IP look ups didn't work.

Thanks for the quick response!


Looks like it has. I have a list of IPs now next to usernames. Cool.
Thanks. Sorry for the distraction.
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: Problems After Members Login
Next Topic: Can I stop subscription notification?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Oct 19 07:09:15 EDT 2017

Total time taken to generate the page: 0.00837 seconds