Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks
Author Message
Donovan
Client



Joined: Oct 07, 2003
Posts: 735
Location: Ohio

PostPosted: Mon Jul 24, 2006 12:30 pm Reply with quote

I released my MILPACS module to the public and my first bug from this guy who wrote the following:


Quote:
Here is my problem:
Everything was working fine until I tried to add the MILPACS block. As soon as I did that the entire website went into a neverending loop. I couldn't access any portion of the site and eventually the browser would come up 'Page is redirected into a neverending loop' .

As soon as I went into the site via FTP and deleted the block_milpacs.php file from the blocks directory everything is working fine again. I tried to put the block file back in and the same thing happens.

Have you heard anything about this from anyone else or do you have any ideas what the problem might be?


My block is very basic.

Code:
<?php


/************************************************************************/
/* MILPACS (Military Personell and Classification System)               */
/* Author::Donovan [3rd ID]                                    */
/* Copyright (c) 2005 by Steven Donovan AKA Donovan [3rd ID]         */
/* Email:: donovan@3rd-infantry-division.net
/* Homepage::http://www.3rd-infantry-division.net                  */
/*                                                      */
/* This program is free software; you can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/*                                                                      */
/* This program is distributed in the hope that it will be useful, but  */
/* WITHOUT ANY WARRANTY; without even the implied warranty of           */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU     */
/* General Public License for more details.                             */
/*                                                                      */
/* If you want a copy of the GNU General Public License write to the    */
/* Free Software Foundation, Inc.                              */
/* 59 Temple Place, Suite 330, Boston, MA 02111-1307               */
/* USA                                                                  */
/************************************************************************/

if ( !defined('BLOCK_FILE') ) {
    Header("Location: ../index.php");
    die();
}

global $prefix, $db;
$module_name = "MILPACS";
get_lang($module_name);

$result = $db->sql_query("SELECT * FROM " . $prefix . "_milpacs_main");
$info = $db->sql_fetchrow($result);
$unit_name = $info[unit_name];
$unit_tag = $info[unit_tag];
$unit_nick = $info[unit_nick];

$content  =  "&nbsp;<b><big>&middot;&nbsp;</big></b><a href=\"modules.php?name=MILPACS\">Information</a><BR>";
$content  .= "&nbsp;<b><big>&middot;&nbsp;</big></b><a href=\"modules.php?name=MILPACS&file=roster\">Roster</a><BR>";
$content  .= "&nbsp;<b><big>&middot;&nbsp;</big></b><a href=\"modules.php?name=MILPACS&file=award\">Medals</a><BR>";
$content  .= "&nbsp;<b><big>&middot;&nbsp;</big></b><a href=\"modules.php?name=MILPACS&file=weapon\">Weapons</a><BR>";
$content  .= "&nbsp;<b><big>&middot;&nbsp;</big></b><a href=\"modules.php?name=MILPACS&file=ranks\">Ranks</a><BR>";
$content  .= "&nbsp;<b><big>&middot;&nbsp;</big></b><a href=\"modules.php?name=MILPACS&file=enlistment\">Enlistment</a><BR>";
$content  .= "<HR><br>";
$content  .= "<B><center>$unit_tag Only!</center></B><BR>";
$content  .= "&nbsp;<b><big>&middot;&nbsp;</big></b><a href=\"modules.php?name=MILPACS&file=checkuser\">Drill Report</a><BR>";
$content  .= "&nbsp;<b><big>&middot;&nbsp;</big></b><a href=\"admin.php\">Administration</a><BR>";
?>


I am waiting for a reply from him about his version of Nuke and patch level.
 
View user's profile Send private message Visit poster's website ICQ Number
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6437

PostPosted: Mon Jul 24, 2006 1:54 pm Reply with quote

Sounds like he doesn't have BLOCK_FILE defined. It's a patch issue.

_________________
I search, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
Donovan







PostPosted: Mon Jul 24, 2006 2:01 pm Reply with quote

He told me the following.

Quote:
The answers to your 3 questions are:

1. We have nukesentinel installed, but it is not and has not been active.

2. I tried to re-ftp the block file and the same thing happens.

3. Our version of PHPNuke says it is Powered by Platinum 7.6.b.2
We are running PNC (PHPnuke Clan) v. 3.0.1

Does any of that help you out?


PNC (PHPnuke Clan) is an intergrated version of vWar.

He runs Platinum 7.6.b.2
 
kguske







PostPosted: Mon Jul 24, 2006 2:33 pm Reply with quote

He probably doesn't have the patch that introduced the BLOCK_FILE definition. He can probably add that without adding the rest of the patch, but he should probably update to the current patch.
 
Donovan







PostPosted: Mon Jul 24, 2006 2:53 pm Reply with quote

kguske wrote:
He probably doesn't have the patch that introduced the BLOCK_FILE definition. He can probably add that without adding the rest of the patch, but he should probably update to the current patch.


He would ad that where? In mainfile.php?

I looked at his mainfile.php and it has the following:

Code:
define('NUKE_FILE', true);

define('BLOCK_FILE', true);
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks

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 ©