Stop data retention! Click here & act! Are you a webmaster and want to participate? Here you can find all necessary material for your website - Willst du auch an der Aktion teilnehmen? Hier findest du alle relevanten Infos und Materialien:
Chris Karakas Online Forum Index Karakas Online
 FAQFAQ   Forum SearchForum Search   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Problems with PHP-Nuke header function: blank page


Goto page 1, 2  Next
 
Post new topic   Reply to topic
   Chris Karakas Online Forum Index -> PHP-Nuke Forum RSS Feed of this Forum
Share this page: These icons link to social bookmarking sites where readers can share and discover new web pages.Digg  del.icio.us  tc.eserver.org  Blinklist  Furl  Reddit  Blogmarks  Magnolia  Sphere  Yahoo!  Google  Windows Live  Technorati  Blue Dot  Simpy  Newsvine  Stumble Upon  co.mments.com  Blinkbits  BlogMemes  Connotea  View previous topic :: View next topic  
Author Message
alhgo
Private
Private


Joined: 10 Nov 2003
Posts: 2

PostPosted: Mon Nov 10, 2003 10:46 am    Post subject: Problems with PHP-Nuke header function: blank page
Reply with quote

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
View user's profile Send private message
chris
Dark Lord of the Sith


Joined: 10 May 2003
Posts: 6262
Location: Outer Space

PostPosted: Mon Nov 10, 2003 11:26 am    Post subject:
Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
alhgo
Private
Private


Joined: 10 Nov 2003
Posts: 2

PostPosted: Mon Nov 10, 2003 12:16 pm    Post subject:
Reply with quote

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
View user's profile Send private message
scubadude
Private
Private


Joined: 21 Mar 2004
Posts: 1

PostPosted: Sun Mar 21, 2004 12:19 pm    Post subject:
Reply with quote

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
View user's profile Send private message
cshackle
Private
Private


Joined: 02 Aug 2004
Posts: 1

PostPosted: Mon Aug 02, 2004 1:11 am    Post subject: blank screen with W2K, Apache2, PHP5 and PHPNuke
Reply with quote

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
View user's profile Send private message
Del
Private
Private


Joined: 05 Mar 2005
Posts: 1

PostPosted: Sat Mar 05, 2005 5:58 am    Post subject:
Reply with quote

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
View user's profile Send private message
chris
Dark Lord of the Sith


Joined: 10 May 2003
Posts: 6262
Location: Outer Space

PostPosted: Mon Mar 07, 2005 1:00 pm    Post subject:
Reply with quote

Could this be the security settings of IE?
_________________
Regards

Chris Karakas
www.karakas-online.de
Back to top
View user's profile Send private message Send e-mail Visit poster's website
wouter
Private
Private


Joined: 13 Apr 2005
Posts: 2

PostPosted: Wed Apr 13, 2005 2:08 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Racine
Second Lieutenant
Second Lieutenant


Joined: 19 May 2004
Posts: 112
Location: Racine, Wisconsin

PostPosted: Thu Apr 14, 2005 3:27 pm    Post subject:
Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
wouter
Private
Private


Joined: 13 Apr 2005
Posts: 2

PostPosted: Thu Apr 21, 2005 12:55 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Share this page: These icons link to social bookmarking sites where readers can share and discover new web pages.Digg  del.icio.us  tc.eserver.org  Blinklist  Furl  Reddit  Blogmarks  Magnolia  Sphere  Yahoo!  Google  Windows Live  Technorati  Blue Dot  Simpy  Newsvine  Stumble Upon  co.mments.com  Blinkbits  BlogMemes  Connotea 
Display posts from previous:   
Post new topic   Reply to topic
   Chris Karakas Online Forum Index -> PHP-Nuke Forum
Page 1 of 2
This page contains valid HTML 4.01 Transitional - click here to check it!
This page contains a valid CSS - click here to check it!

 

Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group