Trying to access ar...
 
Notifications
Clear all

Trying to access array offset on value of type null

1 Posts
1 Users
0 Reactions
266 Views
Jan_AQ
(@jan_aq)
Posts: 1300
Noble Member
Topic starter
 

From the error log:

[21-Aug-2023 20:10:44 UTC] PHP Notice: Trying to access array offset on value of type null in /public_html/fanfiction/user/profile.php on line 32
[21-Aug-2023 20:10:44 UTC] PHP Notice: Trying to access array offset on value of type null in /public_html/fanfiction/user/profile.php on line 38
[21-Aug-2023 20:10:44 UTC] PHP Notice: Trying to access array offset on value of type null in /public_html/fanfiction/user/profile.php on line 39
[21-Aug-2023 20:10:44 UTC] PHP Notice: Trying to access array offset on value of type null in /public_html/fanfiction/user/profile.php on line 40
[21-Aug-2023 20:10:44 UTC] PHP Notice: Trying to access array offset on value of type null in /public_html/fanfiction/user/profile.php on line 42
[21-Aug-2023 20:10:44 UTC] PHP Notice: Trying to access array offset on value of type null in /public_html/fanfiction/user/profile.php on line 46

 

/fanfiction/user/profile.php lines 32 to 46:

if($userinfo['email'])
    $nameinfo .= " [<a href=\"viewuser.php?action=contact&amp;uid=".$userinfo['uid']."\">"._CONTACT."</a>]";
if(!empty($favorites) && isMEMBER && $userinfo['uid'] != USERUID) {
    $fav = dbquery("SELECT * FROM ".TABLEPREFIX."fanfiction_favorites WHERE uid = '".USERUID."' AND type = 'AU' AND item = '".$userinfo['uid']."'");
    if(dbnumrows($fav) == 0) $nameinfo .= " [<a href=\"user.php?action=favau&amp;uid=".USERUID."&amp;add=".$userinfo['uid']."\">"._ADDAUTHOR2FAVES."</a>]";
}
$tpl->assign("userpenname", $userinfo['penname']." ".$nameinfo);
$tpl->assign("membersince", date("$dateformat", $userinfo['date']));
if($userinfo['realname'])
    $tpl->assign("realname", $userinfo['realname']);
if($userinfo['bio']) {
    $bio = nl2br($userinfo['bio']);
    $tpl->assign("bio", stripslashes($bio));
}
if($userinfo['image'])
 

 

 

 


This topic was modified 2 years ago by Jan_AQ

Whoever said nothing is impossible never tried slamming a revolving door.

url: https://www.potionsandsnitches.org/fanfiction
php: 7.4.33 msql: 5.6.51-community GPL
efic version: 3.5.5 latest patches: yes
bridges: none mods: challenges, tracker, story end, beta, word

 
Posted : 21/08/2023 4:44 pm
Share: