|
|
| Author |
Message |
alhgo Private

Joined: 10 Nov 2003 Posts: 2
|
Posted: Mon Nov 10, 2003 10:46 am Post subject: Problems with PHP-Nuke header function: blank page |
|
|
|
I've recently installed Apache_PHP_MYSQL in Windows. It seems to work it all, but when i try to run PHP NUKE's index page the browser starts to search the page without showing anytihg. Tryig to find where is the problem, i think it's in the Header function, that apear in many pages:
| Code: |
foreach ($_POST as $secvalue) {
if ((eregi("<[^>]*script*\"?[^>]*>", $secvalue)) || (eregi("<[^>]*style*\"?[^>]*>", $secvalue))) {
Header("Location: index.php");
die();
}
}
|
If i comment the line with the function, it doesn't work, but at least the page loads. I created a simple script in the root directory with this line:
| Code: |
<?
Header("Location: index.php");
?>
|
and it happens the same.
Th funciton works correctly, i've checked it out, and the buffering_header in PHP.ini is on. I don't know if it's a problem with the OS, because I've been working in LINUX without problems, but now i'm lost and need HELP
Thanks
[edit] Included code in code tags. Chris [/edit] |
|
| Back to top |
|
 |
chris Dark Lord of the Sith

Joined: 10 May 2003 Posts: 6262 Location: Outer Space
|
Posted: Mon Nov 10, 2003 11:26 am Post subject: |
|
|
|
Does it work if you replace $_POST with $HTTP_POST_VARS? If yes, then you probably have an old PHP version. PHP-Nuke (starting from 6.5, I think) needs at least PHP 4.1.x (see the INSTALL file). _________________ Regards
Chris Karakas
www.karakas-online.de |
|
| Back to top |
|
 |
alhgo Private

Joined: 10 Nov 2003 Posts: 2
|
Posted: Mon Nov 10, 2003 12:16 pm Post subject: |
|
|
|
It'seem it has something to do with the PHP version, but not because it's too old:
http://bugs.php.net/bug.php?id=16842
I had running the 4.3 version. Now i'll try with another and i'll tell you.[/url] |
|
| Back to top |
|
 |
scubadude Private

Joined: 21 Mar 2004 Posts: 1
|
Posted: Sun Mar 21, 2004 12:19 pm Post subject: |
|
|
|
I found that when I replaced the 'index.php' with
| Code: |
http://" . $_SERVER['HTTP_HOST']. dirname($_SERVER['PHP_SELF']). "/" ."index.php"
|
in mainfile.php everything worked fine. See the php documentation for the Header() function - it suggests this for HTTP/1.1 compliance. This was required running PHP 4.3.4 |
|
| Back to top |
|
 |
cshackle Private

Joined: 02 Aug 2004 Posts: 1
|
Posted: Mon Aug 02, 2004 1:11 am Post subject: blank screen with W2K, Apache2, PHP5 and PHPNuke |
|
|
|
Just installed apache 2, php5, MySQL and phpNuke on a W2K machine. php5 and apache 2 working just fine. tested the header() function as well and it works ok with multiple variations.
Tried changing the header('Location: index.php'); script in the mainfile.php of phpnuke as suggested and as suggested by the PHP manual but to no avail.
Interestingly the whole thing worked in minutes without a glitch on MacOSX Panther.
Any thoughts, help?
Thanks
:? |
|
| Back to top |
|
 |
Del Private

Joined: 05 Mar 2005 Posts: 1
|
Posted: Sat Mar 05, 2005 5:58 am Post subject: |
|
|
|
| I am having the same problem. I think it has to do with the internet program used, because I can not access it at home (Windows ME, Internet Explorer) or at a school computer in one of the classrooms (Windows XP Pro, Internet Explorer), but it I can access it from the computer in my school library (Windows XP Pro, Mozilla Firefox). |
|
| Back to top |
|
 |
chris Dark Lord of the Sith

Joined: 10 May 2003 Posts: 6262 Location: Outer Space
|
Posted: Mon Mar 07, 2005 1:00 pm Post subject: |
|
|
|
Could this be the security settings of IE? _________________ Regards
Chris Karakas
www.karakas-online.de |
|
| Back to top |
|
 |
wouter Private

Joined: 13 Apr 2005 Posts: 2
|
Posted: Wed Apr 13, 2005 2:08 pm Post subject: |
|
|
|
I just installed phpnuke 7.5 and I face a problem with the index.php. It stays blank. The whole website is working perfectely, all the modules, all the things... just the index.php is blank.
I guess it doesn't concern the same problem as mentioned by other users since there are newer versions op phpnuke and php now.
Who has advice? |
|
| Back to top |
|
 |
Racine Second Lieutenant


Joined: 19 May 2004 Posts: 112 Location: Racine, Wisconsin
|
Posted: Thu Apr 14, 2005 3:27 pm Post subject: |
|
|
|
You haven't configured something properly. This means an incorrect installation.
Does your sit ework if you go to www.yoursite.com/index.php?
If I had to guess, your problem is you have a blank index.html page and an index.php page. You need to delete the index.html page.
If you don't have an index.html page, and your www.yoursite.com/index.php exists, then look at the file. Does it have anything written in it?
If not, then you failed to install everything correctly and should do it over from the top - it only takes about ten minutes and since you can't see the home page, you probably don't have any members yet.
First, check for a blank index.html file. If there, handle as above. If not, go down.
Second, check for an empty index.php file. If so, then reinstall nuke, if not, then post back here.
If or when you post back here, refer us, by link, to the instructions you followed to install Nuke. And tell me, specifically, any step of the instructions you had a hard time figuring out. |
|
| Back to top |
|
 |
wouter Private

Joined: 13 Apr 2005 Posts: 2
|
Posted: Thu Apr 21, 2005 12:55 pm Post subject: |
|
|
|
Thank you for your reply Racine !
Your questions:
- Does your sit ework if you go to www.yoursite.com/index.php? -> No
- There is no index.html
How I installed:
- extracted the phpnuke pack
- uploaded all the files in /html/ to the webserver
- loaded the sql file in the sql database
- configured the config.php
Everything works, all the modules, and other stuff but clicking on "home" gives thus a blank page.
INTERESTING: I installed the phpnuke on a webhost of my friend (just in the same way) and there it worked just fine. So I guess the problem lies with my webhost. Although he doesn't know what he needs to change in php. Any tips ??
I already tried to create a .htaccess file with PHP_FLAG output_buffering on ,but it didn't change anything.
Other reference with the same problem:
http://phpnuke.org/modules.php?name=News&file=article&sid=987 |
|
| Back to top |
|
 |
|
|
 |
|
|