1
Dreakon
Main page is blank?!
  • 2004/4/15 13:45

  • Dreakon

  • Just popping in

  • Posts: 57

  • Since: 2004/3/4 1


I am moving my site to a different host and it seems to have gone smoothly, I made the databases right and all the informations there. All of the modules work but when I try to go directly to the main page it's blank! If I go straight to news module, then to forums, then to members, everything works right. But going to index.php in the main XOOPS html folder on my host, brings up a blank page. For example:

Main Page (not working):http://dreakon.thehost4you.com/xoops/html/index.php

Poll Page (working):http://dreakon.thehost4you.com/xoops/html/modules/xoopspoll/index.php

As you can see, its the same host, same path, but different folders and files. Why is this happening and how do I get the main page working?

2
Herko
Re: Main page is blank?!
  • 2004/4/15 14:07

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


Turn on php-debug in the system admin -> preferences -> general settings page, and go to the startpage that gives you a blank. Then you will see what is causing this.

Herko

3
Dreakon
Re: Main page is blank?!
  • 2004/4/15 14:27

  • Dreakon

  • Just popping in

  • Posts: 57

  • Since: 2004/3/4 1


Warning [PHP]: Cannot modify header information - headers already sent by (output started at /home/dreakon/public_html/xoops/html/mainfile.php:77) in file index.php line 39


Any help please?

4
Herko
Re: Main page is blank?!
  • 2004/4/15 15:32

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


have you updated the system module by going to the system admin -> modules page and clicking the 'update' icon behind the system module?

Herko

5
Dreakon
Re: Main page is blank?!
  • 2004/4/15 15:40

  • Dreakon

  • Just popping in

  • Posts: 57

  • Since: 2004/3/4 1


I just tried it and the page still doesnt work. Should I update everything?

EDIT: Tried updating everything and it still didnt work. Any other suggestions?

6
ackbarr
Re: Main page is blank?!

remove any blank lines outside of php script blocks ("<?php" and "?>") in XOOPS_ROOT/mainfile.php

7
Dreakon
Re: Main page is blank?!
  • 2004/4/15 18:19

  • Dreakon

  • Just popping in

  • Posts: 57

  • Since: 2004/3/4 1


I dont see any blank lines. The php file begins with <?php and ends with ?>. No lines anywhere outside of it.

8
ackbarr
Re: Main page is blank?!

Quote:
Warning [PHP]: Cannot modify header information - headers already sent by (output started at /home/dreakon/public_html/xoops/html/mainfile.php:77) in file index.php line 39


This error message indicates otherwise. It basically says that on line 77 of mainfile.php, something happened to force the file headers to be sent to the user prematurely, this keeps the line 39 in index.php:
header('Location: '.XOOPS_URL.'/modules/'.$xoopsConfig['startpage'].'/');

from adding the header to your page.

So the question for you is, what is on line 77 in mainfile.php?

9
Dreakon
Re: Main page is blank?!
  • 2004/4/15 18:40

  • Dreakon

  • Just popping in

  • Posts: 57

  • Since: 2004/3/4 1


Quote:

ackbarr wrote:
So the question for you is, what is on line 77 in mainfile.php?


mainfile.php doesnt seem to go to line 77. I counted from beginning to end and it ended on line 75.

Seems my mainfile.php is fudged up.

10
Herko
Re: Main page is blank?!
  • 2004/4/15 20:14

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


What did you use to edit your mainfile.php?

Herko

Login

Who's Online

72 user(s) are online (49 user(s) are browsing Support Forums)


Members: 0


Guests: 72


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits