Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.30.01 RN New Installation Issues
Author Message
sotas
New Member
New Member



Joined: Mar 22, 2009
Posts: 4

PostPosted: Sun Mar 22, 2009 4:40 pm Reply with quote

I've gone through the installation with no issues and everything is successful, the tables are created in the DB, but when I get to this point.
Configure Base RavenNuke™
Most settings have already been pre-configured in the installation process so far. There are just a few more settings that you may want to configure at this time. It is suggested that you open up another browser session and point your address bar to http://YOURDOMAIN.com/admin.php

When I try the URL on my machine I get a blank page with the message "Nice Try!!", I have tried various pages with the same message.
I am running a Windows, IE7, MySQL, PHP setup on the localhost.

Any suggestions?
Thanks
 
View user's profile Send private message
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Sun Mar 22, 2009 8:15 pm Reply with quote

Make sure your admin username has no special characters. It should only be alphanumeric

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
sotas







PostPosted: Sun Mar 22, 2009 11:10 pm Reply with quote

I don't have any special characters in my admin usename or password. Every PHP file I try and go to just gives me the same, blank page with the message "Nice Try!!"
 
jakec
Site Admin



Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Mon Mar 23, 2009 1:06 am Reply with quote

I suspect this may be to do with the setup of your local server installation. What are you using to run your localhost?
 
View user's profile Send private message
testy1
Involved
Involved



Joined: Apr 06, 2008
Posts: 484

PostPosted: Mon Mar 23, 2009 2:03 am Reply with quote

remove your ip address from nuke_banned_ip

actually more likely something to do with this...

File: includes/ipban.php
Code:


$ip = $_SERVER['REMOTE_ADDR'];
if(!ereg('^([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})$', $ip)) die('Nice try!!');
 
View user's profile Send private message
sotas







PostPosted: Mon Mar 23, 2009 2:50 am Reply with quote

testy1 wrote:
remove your ip address from nuke_banned_ip

actually more likely something to do with this...

File: includes/ipban.php
Code:


$ip = $_SERVER['REMOTE_ADDR'];
if(!ereg('^([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})$', $ip)) die('Nice try!!');


Thanks, this sorted the issue.
The nuke_banned_ip is blank, but the code was the issue.
 
testy1







PostPosted: Mon Mar 23, 2009 4:43 am Reply with quote

change it to this

Code:


$ip = $_SERVER['REMOTE_ADDR'];
echo $ip;
//if(!ereg('^([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})$', $ip)) die('Nice try!!');


and let me know what is displays....

should be at the top left hand side of your site.
 
sotas







PostPosted: Mon Mar 23, 2009 4:55 am Reply with quote

All it displays is ::1
 
testy1







PostPosted: Mon Mar 23, 2009 4:08 pm Reply with quote

mmm ok, has to be something to do with your setup, not sure what though.
 
hamster
Hangin' Around



Joined: Mar 19, 2009
Posts: 42

PostPosted: Thu Mar 26, 2009 11:49 am Reply with quote

Hello,

I'm having the same issue. After the testy1 change to ipban.php, I get this.

::1
YOUR ATTENTION PLEASE
You have attempted to access this site with an invalid IP.
If you think this is a mistake you can contact the site webmaster at xxxxxxx(at)xxxx(dot)com.
Be SURE to include the following information in any email!
etc
 
View user's profile Send private message
testy1







PostPosted: Thu Mar 26, 2009 4:09 pm Reply with quote

is this a local setup.
Are you using Apache, mysql
Anything else you can tell me that may be out of the ordinary (sounds vague because it is lol)?
 
testy1







PostPosted: Thu Mar 26, 2009 4:14 pm Reply with quote

Im wondering if it has something to do with ipv6 address's

e.g.

Quote:

* ::1/128 — the loopback address is a unicast localhost address. If an application in a host sends packets to this address, the IPv6 stack will loop these packets back on the same virtual interface (corresponding to 127.0.0.1 in IPv4).
* fe80::/10 — The link-local prefix specifies that the address is only valid in the scope of a given local link. This is analogous to the Autoconfiguration IP addresses 169.254.0.0/16 in IPv4.

 
hamster







PostPosted: Thu Mar 26, 2009 4:25 pm Reply with quote

Local setup MAMP

I had a clone site running locally to switch to Ravenuke. Got stuck at the same spot the OP did.
 
testy1







PostPosted: Thu Mar 26, 2009 5:35 pm Reply with quote

mmmm mamp is mac i think?

does mac use ipv6 network protocol?

it is definitely a hardware based issue by the sound of it.

@sotas, are you using mac? or which operating system are you on?


I also came across this for future reference

Code:


/*** try to validate as IPV6 address ***/
if(filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6) === FALSE)
{
echo "$ip is not a valid IP";
}
else
{
echo "$ip is valid";
}


EDIT: Just as note filter_var is only available since php version 5.2.3


Last edited by testy1 on Thu Mar 26, 2009 9:09 pm; edited 1 time in total 
hamster







PostPosted: Thu Mar 26, 2009 5:43 pm Reply with quote

Looks like Mac does by default.
 
testy1







PostPosted: Thu Mar 26, 2009 9:08 pm Reply with quote

In windows you can revert back to ipv4 by uninstalling ipv6, maybe mac has a similar setup?

Mac's may also have a hosts file like windows where you might be able to map ::1 to 127.0.0.1

This issue will need discussion by the dev's as I feel it could become a significant problem in the long run.
 
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Sat Mar 28, 2009 7:56 am Reply with quote

testy1, if you haven't submitted an issue for the team yet, would you please do so? I believe you have the permission level to do so. Thanks!

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
hamster







PostPosted: Sat Mar 28, 2009 9:56 am Reply with quote

I'd like to see what the fix is for this.
 
testy1







PostPosted: Sat Mar 28, 2009 5:25 pm Reply with quote

montego wrote:
testy1, if you haven't submitted an issue for the team yet, would you please do so? I believe you have the permission level to do so. Thanks!


Im not sure that I do montego, or I dont remember one of the two Sad
 
testy1







PostPosted: Thu Apr 02, 2009 4:02 am Reply with quote

ok this got me interested :(

If someone wants to try this and let me know if it works alright it would be appreciated.Someone with an interment knowledge of reg could probably enhance this.

Replace the code in ipban.php file with this
Code:


<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System                                          */
/* ===========================                                          */
/*                                                                      */
/* Copyright (c) 2004 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* 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.       */
/************************************************************************/

if ( stristr(htmlentities($_SERVER['PHP_SELF']), "ipban.php") ) {
    Header( "Location: ../index.php" );
    die();
}

global $prefix, $db;
$bIPver = false;
$ip = $_SERVER['REMOTE_ADDR'];
if ( ereg('^([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})$', $ip) ) {
    $bIPver = true;
} elseif ( ereg("^[0-9a-fA-F:]+([0-9a-fA-F]{1,4})[:]{1,2}([0-9a-fA-F]{1,4})[:]{1,2}([0-9a-fA-F]{1,4})[:]{1,2}([0-9a-fA-F]{1,4})$", $ip) ) {
    $bIPver = true;
} elseif ( ereg("^::[1]{1}$", $ip) ) {
    $bIPver = true;
}

$numrow = $db->sql_numrows( $db->sql_query("SELECT id FROM " . $prefix . "_banned_ip WHERE ip_address='$ip'") );
if ( $numrow != 0 ) {
    echo "<br /><br /><center><img src='images/admin/ipban.gif' /><br /><br /><b>You have been banned by the administrator</b></center>";
    die();
}

if ( $bIPver == true ) {
    $ip_class = explode( ".", $ip );
    $ip = "$ip_class[0].$ip_class[1].$ip_class[2].*";
    list( $ip_address ) = $db->sql_fetchrow( $db->sql_query("SELECT ip_address FROM " . $prefix . "_banned_ip WHERE ip_address='$ip'") );
    $ip_class_banned = explode( ".", $ip_address );
    if ( isset($ip_class_banned[3]) && $ip_class_banned[3] == "*" ) { // "isset" is faster than "count"
        if ( $ip_class[0] == $ip_class_banned[0] && $ip_class[1] == $ip_class_banned[1] && $ip_class[2] == $ip_class_banned[2] ) {
            echo "<br /><br /><center><img src='images/admin/ipban.gif' /><br /><br /><b>You have been banned by the administrator</b></center>";
            die();
        }
    }
} else {
    die( 'Nice try!!' );
}



?>
 
hamster







PostPosted: Fri Apr 03, 2009 1:54 pm Reply with quote

Well, it's seems to be moving in the right direction.

I went through the whole INSTALLATION/setup.php again. Got to the
end, it said all is good, go to admin.php.

But the page is completely blank.
 
Palbin
Site Admin



Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Fri Apr 03, 2009 4:15 pm Reply with quote

If you are having invalid ip problems on local installations open rnconfig.php and set $bypassNukeSentinelInvalidIPCheck to true.

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
testy1







PostPosted: Fri Apr 03, 2009 5:13 pm Reply with quote

Palbin wrote:
If you are having invalid ip problems on local installations open rnconfig.php and set $bypassNukeSentinelInvalidIPCheck to true.


He should of been shown the block page if it was for invalid ip, I would assume there is another check somewhere in admin.php which has flagged his ip as invalid again.

is it only the admin page or all pages that are blank.Turn on error reporting as well just to check.
 
hamster







PostPosted: Fri Apr 03, 2009 6:51 pm Reply with quote

They are all blank, or it says, the page is not found on the server.

Setting that to "true" didn't do it.
 
testy1







PostPosted: Fri Apr 03, 2009 7:00 pm Reply with quote

it is only your local pc that is having issues all hosts online will not be a problem.

I assume mac have ipv6 by default as do windows vista now, so it is something that will have to be looked into as most o/s's will be that way now I suppose.But untill then I would revert your o/s back to ipv4, it is a simple process in windows vista and I assume mac are the same.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.30.01 RN New Installation Issues

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 ©