1
slgan
Blank Main Page and script errors
  • 2004/8/22 17:50

  • slgan

  • Just popping in

  • Posts: 5

  • Since: 2004/8/21


Hi All,

I have posted questions and some investigation to this in the
Q&A forum.Thanks to Stew Brennand who is trying to help.

https://xoops.org/modules/newbb/viewtopic.php?viewmode=flat&order=DESC&topic_id=23573&forum=7

I thought I should move it here as the right topic and see
what ideas others have.

Here is the recap:

I did a little checking and found that the
offending line in the generate default^theme.html file
where the line <?php if (): ?> came from the
default/theme.html file and it corresponds to the
line <{if $xoops_showcblock == 1}> in the theme.html file.

There are two occurences of <{if $xoops_showcblock == 1}>
in the theme.html file and similarly, map to two
<?php if (): ?> in the generated file.

I tried to delete the two if and the endif from the
theme.html file and it generated the default^theme.html
file which could be used when I loaded the home page.
Of course the page looks funny with things dislocated.

Any idea why the <{if $xoops_showcblock == 1}> would
generate the <?php if (): ?> line ? as if the "if" with
no condition to check.

Oh, also, I checked the theme.html file and there
is no "<?php>" anywhere in there.

Also, tried another theme phpkaox and the exact same
behavior with the <{if $xoops_showcblock == 1}> generating
the offending <?php if (): ?> in the generated file.

FYI, the error:

Parse error: parse error in /home/xoops/www/html/templates_c/default^theme.html on line 78

Looking at the file line 78:


<td id="centercolumn">

<!-- Display center blocks if any -->
<?php if (): ?> <<=========== this is line 78

<table cellspacing="0">
<tr>
<td id="centerCcolumn" colspan="2">

mySQL: 4.0
PHP: 4.3.3.
xoops: 2.0.7.1

I also wonder if there is anything else I am missing
in the php.ini file that could have caused this but did not
see anything obvious.

Thanks.

Gan



2
slgan
Re: Upgrading from 2.07 to 2.07.1
  • 2004/8/22 4:55

  • slgan

  • Just popping in

  • Posts: 5

  • Since: 2004/8/21





3
slgan
Re: my all page is blank
  • 2004/8/22 4:22

  • slgan

  • Just popping in

  • Posts: 5

  • Since: 2004/8/21


I did a little checking and found that the
offending line in the generate default^theme.html file
where the line <?php if (): ?> came from the
default/theme.html file and it corresponds to the
line <{if $xoops_showcblock == 1}> in the theme.html file.

There are two occurences of <{if $xoops_showcblock == 1}>
in the theme.html file and similarly, map to two
<?php if (): ?> in the generated file.

I tried to delete the two if and the endif from the
theme.html file and it generated the default^theme.html
file which could be used when I loaded the home page.
Of course the page looks funny with things dislocated.

Any idea why the <{if $xoops_showcblock == 1}> would
generate the <?php if (): ?> line ? as if the "if" with
no condition to check.

Oh, also, I checked the theme.html file and there
is no "<?php>" anywhere in there.

Also, tried another theme phpkaox and the exact same
behavior with the <{if $xoops_showcblock == 1}> generating
the offending <?php if (): ?> in the generated file.

I wonder if there is anything else I am missing
in the php.ini file that could have caused this.


Steve, I have moved this discussion to Installation
Troubleshooting forum since I thought that would be a
more suitable place as it falls into that category.

https://xoops.org/modules/newbb/viewtopic.php?topic_id=23639&forum=1


Thanks.

Gan



4
slgan
Re: my all page is blank
  • 2004/8/21 20:08

  • slgan

  • Just popping in

  • Posts: 5

  • Since: 2004/8/21


Hi,

OK. I read through the FAQ and got the error message to
display. Also, did some of the common fixed as suggested
but am still getting the blank home page.

The error:

Parse error: parse error in /home/xoops/www/html/templates_c/default^theme.html on line 78

Looking at the file line 78:


<td id="centercolumn">

<!-- Display center blocks if any -->
<?php if (): ?> <<=========== this is line 78

<table cellspacing="0">
<tr>
<td id="centerCcolumn" colspan="2">

<!-- Start center-center blocks loop -->
<?php if (count((array)$this->_tpl_vars['xoops_ccblocks'])):


I have not done php before so don't understand this problem.

Any idea ?

mySQL: 4.0
PHP: 4.3.3.
xoops: 2.0.7.1

Thanks.

Gan



5
slgan
Re: Database problem
  • 2004/8/21 18:44

  • slgan

  • Just popping in

  • Posts: 5

  • Since: 2004/8/21


Hi everyone,

OK. I got the same problem initially and read through the forum about this but still could not get it to work and
my MySQL install works just fine and database can do
what it should just that install says still cannot
connect???.

Finally, I decided to look at the php.ini file in /etc/apache
in my linux and saw quite a number of blank items for mysql.

After filling them to match with my /etc/my.cnf, it works !!


They are:
mysql.default_port = 3306
mysql.default_socket = /tmp/mysql.sock
mysql.default_host = localhost

You shoud match whatever you have setup your MySQL with.
After changing this, you need to start apache

Now, I have gone forward and see a blank home page, which
I recall seeing someone having the same problem.
So, I am going to check that and see if a solution
has been posted in the forum.

Gan





TopTop



Login

Who's Online

100 user(s) are online (56 user(s) are browsing Support Forums)


Members: 0


Guests: 100


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