Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x
Author Message
hicuxunicorniobestbuildpc
The Mouse Is Extension Of Arm



Joined: Aug 13, 2009
Posts: 1123

PostPosted: Thu Apr 13, 2023 2:01 am Reply with quote

Morning everybody

I've got an error from download admin when I click on category list.

Notice: Trying to access array offset on value of type null in /www.bestbuildpc.org/modules/Downloads/includes/nsngd_func.php on line 305

Notice: Trying to access array offset on value of type null in /htdocs/www.bestbuildpc.org/modules/Downloads/includes/nsngd_func.php on line 306

Code:
function getparent($parentid, $title) {

   global $prefix, $db;
   $result = $db->sql_query('SELECT `title`, `parentid` FROM `' . $prefix . '_nsngd_categories` WHERE `cid` = ' . (int)$parentid);
   $cidinfo = $db->sql_fetchrow($result);
   if ($cidinfo['title'] != '') $title = htmlspecialchars($cidinfo['title'], ENT_QUOTES, _CHARSET) . ' -> ' . $title;
   if ($cidinfo['parentid'] != 0) {
      $title = getparent($cidinfo['parentid'], $title);
   }
   return $title;
}


Lines 305 and 306

Code:
   if ($cidinfo['title'] != '') $title = htmlspecialchars($cidinfo['title'], ENT_QUOTES, _CHARSET) . ' -> ' . $title;

   if ($cidinfo['parentid'] != 0) {


Let op! This error is not coming up when I am running php 7.3. It is only happening with php 7.4.
 
View user's profile Send private message
neralex
Site Admin



Joined: Aug 22, 2007
Posts: 1774

PostPosted: Fri Apr 14, 2023 4:33 am Reply with quote

Try this: [ Only registered users can see links on this board! Get registered or login! ]

_________________
Github: RavenNuke 
View user's profile Send private message
hicuxunicorniobestbuildpc







PostPosted: Fri Apr 14, 2023 5:51 am Reply with quote

Wow! That solved the issue! Dank u!!!!

I found out the same issue in module Submit_Downloads/index.php. I will use the same code to fix those issue when I come back from work.

Notice: Trying to access array offset on value of type null in /www.bestbuildpc.org/modules/Submit_Downloads/index.php on line 468//This one is fixed

Notice: Trying to access array offset on value of type null in /www.bestbuildpc.org//modules/Submit_Downloads/index.php on line 469//This one is fixed

Notice: Trying to access array offset on value of type null in /www.bestbuildpc.org/modules/Submit_Downloads/index.php on line 200//This one is fixed

Notice: Trying to access array offset on value of type null in /www.bestbuildpc.org/modules/Submit_Downloads/index.php on line 201//This one is fixed

Notice: Trying to access array offset on value of type null in /www.bestbuildpc.org/modules/Submit_Downloads/index.php on line 204//This one is fixed

Notice: Trying to access array offset on value of type null in /www.bestbuildpc.org/modules/Submit_Downloads/index.php on line 205//This one is fixed

Notice: Trying to access array offset on value of type null in /www.bestbuildpc.org/modules/Submit_Downloads/index.php on line 210//This one is fixed

Notice: Trying to access array offset on value of type null in /www.bestbuildpc.org/modules/Submit_Downloads/index.php on line 214//This one is fixed

Thankssssss!!!! Cheers Cheers Cheers Cheers Cheers

It looks like there are different lines with issues

Code:
$usrinfo = $db->sql_fetchrow($db->sql_query('SELECT * FROM `' . $user_prefix . '_users` WHERE `user_id` = \'' . $cookie[0] . '\''));//line 200


Last edited by hicuxunicorniobestbuildpc on Fri Apr 14, 2023 4:23 pm; edited 1 time in total 
neralex







PostPosted: Fri Apr 14, 2023 6:36 am Reply with quote

hicuxunicorniobestbuildpc wrote:
Wow! That solved the issue! Dank u!!!!

I found out the same issue in module Submit_Downloads/index.php. I will use the same code to fix those issue when I come back from work.

Notice: Trying to access array offset on value of type null in /www.bestbuildpc.org/modules/Submit_Downloads/index.php on line 468//This one is fixed

Notice: Trying to access array offset on value of type null in /www.bestbuildpc.org//modules/Submit_Downloads/index.php on line 469//This one is fixed

Notice: Trying to access array offset on value of type null in /www.bestbuildpc.org/modules/Submit_Downloads/index.php on line 200//not yet

Notice: Trying to access array offset on value of type null in /www.bestbuildpc.org/modules/Submit_Downloads/index.php on line 201//not yet

Notice: Trying to access array offset on value of type null in /www.bestbuildpc.org/modules/Submit_Downloads/index.php on line 204//not yet

Notice: Trying to access array offset on value of type null in /www.bestbuildpc.org/modules/Submit_Downloads/index.php on line 205/not yet

Notice: Trying to access array offset on value of type null in /www.bestbuildpc.org/modules/Submit_Downloads/index.php on line 210//not tet

Notice: Trying to access array offset on value of type null in /www.bestbuildpc.org/modules/Submit_Downloads/index.php on line 214//not yet

Thankssssss!!!! Cheers Cheers Cheers Cheers Cheers

It looks like there are different lines with issues

Code:
$usrinfo = $db->sql_fetchrow($db->sql_query('SELECT * FROM `' . $user_prefix . '_users` WHERE `user_id` = \'' . $cookie[0] . '\''));//line 200


I changed the way to fetch the user-data without your pointed sql-query: [ Only registered users can see links on this board! Get registered or login! ]
 
hicuxunicorniobestbuildpc







PostPosted: Fri Apr 14, 2023 4:26 pm Reply with quote

Come back again and I fixed everything now from this module I guess. I am gonna test file by file. It takes lots of times but it worth it. Thanks a lot neralex. Wave
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©