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: 1122

PostPosted: Tue Apr 03, 2018 6:38 pm Reply with quote

Code:
Notice: Undefined offset: 2 in /admin/modules/sommaire.php on line 980


Lots of error with sommaire.php
[ Only registered users can see links on this board! Get registered or login! ]


This file is a mess. It needs really a better attention. and it doesn't work anymore after running php 7

The first line of this is giving the same offset error.

Code:
      if ($sublevel[$groupmenu[$keysommaire]][$z]>0) {

         $sublevelwidth=15*$sublevel[$groupmenu[$keysommaire]][$z];
         $inputadresswidth=20;
         $inputlinktextwidth=15;
         $sublevelimage1="<img src=\"$urlofimages/admin/null.gif\" name=\"sublevelspacer1[$keysommaire][$z]\" height=\"1px\" width=\"".$sublevelwidth."px\" />";
         $sublevelbgcolor="";
      }
      else {
         $sublevelwidth=1;
         $sublevelimage1="<img src=\"$urlofimages/admin/null.gif\" name=\"sublevelspacer1[$keysommaire][$z]\" height=\"1px\" width=\"1px\" />";
         $inputadresswidth=20;
         $inputlinktextwidth=15;
         $sublevelbgcolor="";
      }
 
View user's profile Send private message
neralex
Site Admin



Joined: Aug 22, 2007
Posts: 1772

PostPosted: Tue Apr 03, 2018 10:33 pm Reply with quote

Try this:

php Code:
if (isset($sublevel[$groupmenu[$keysommaire]][$z]) && $sublevel[$groupmenu[$keysommaire]][$z]>0) {
 
View user's profile Send private message
hicuxunicorniobestbuildpc







PostPosted: Wed Apr 04, 2018 12:33 am Reply with quote

This trick solved 1 but I got a bunch of errors.

Code:
Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 963


Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 980

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1004

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1004

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1004

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1138

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1159

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1161

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1180

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1182

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1186

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1187

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1188

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 980

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1004

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1004

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1004

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1138

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1159

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1161

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1180

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1182

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1186

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1187

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1188

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 980

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1004

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1004

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1004

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1138

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1159

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1161

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1180

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1182

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1186

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1187

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1188

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 980

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1004

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1004

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1004

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1138

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1159

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1161

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1180

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1182

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1186

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1187

Notice: Undefined offset: 0 in admin/modules/sommaire.php on line 1188
 
neralex







PostPosted: Wed Apr 04, 2018 8:09 am Reply with quote

Ya for sure, its an example how you can fix it.
 
hicuxunicorniobestbuildpc







PostPosted: Wed Apr 04, 2018 2:39 pm Reply with quote

Ya, but not all the lines are the same. Did u check the file how old and messy is? Shocked

This line is giving me undefined offset as well.

Code:
$nbmodules = $nombremodules = count($moduleinthisgroup[$groupmenu[$keysommaire]]);


Code:
echo "<input type=\"hidden\" name=\"sommaire_schedule_days[$keysommaire][$z]\" value=\"".$days_link[$groupmenu[$keysommaire]][$z]."\" />";
 
neralex







PostPosted: Wed Apr 04, 2018 10:25 pm Reply with quote

I don't have the time to fix an file with 1800 lines. You know, I'm doing my exam. I can not go deeper into this code. There is no reason why have to really use it.

php Code:
if (is_array($moduleinthisgroup[$groupmenu[$keysommaire]])) {

$count_modules = count($moduleinthisgroup[$groupmenu[$keysommaire]]);
} else {
$count_modules = 0;
}
$nbmodules = $nombremodules = $count_modules;

if (isset(sommaire_schedule_days[$keysommaire][$z])) {
echo "<input type=\"hidden\" name=\"sommaire_schedule_days[$keysommaire][$z]\" value=\"".$days_link[$groupmenu[$keysommaire]][$z]."\" />";
}
 
hicuxunicorniobestbuildpc







PostPosted: Thu Apr 05, 2018 7:47 pm Reply with quote

Thanks anyway, Im not in a hurry. Good luck with your exam. Let me know later. This file really need a treatment and clean code. I always wanted to fix this mess. See ya around.
 
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 ©