Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

error with gforum

Quote Reply
error with gforum
Hi all, My forum has been running for about 2 months now and today for some reason it decided to give a server 500 error??? I am not sure why all of a sudden it decided to do this, but it did.

I cannot work out what the problem is so is it best just to do a re-install to get it back up and running??



Thanks
Webmaster
http://www.e-bannerx.com
Quote Reply
Re: [fulcan] error with gforum In reply to
Check your error log first.
Quote Reply
Re: [Paul] error with gforum In reply to
Hi Paul,

Sorry I was having problems with my error log so it took a while to get it working properly. The error I get is as follows.

[Sun May 12 09:21:36 2002] [error] Premature end of script headers: /home/virtual/site14/fst/var/www/cgi-bin/forum/g$
Can't call method "param" on an undefined value at bad_link.cgi line 33.
GForum::Config (26375): Unable to compile '/home/virtual/site14/fst/var/www/cgi-bin/forum/admin/GForum/Config/Data.pm': syntax error at /ho$
Missing right curly or square bracket at /home/virtual/site14/fst/var/www/cgi-bin/forum/admin/GForum/Config/Data.pm line 1622, at end of li$
. at /home/virtual/site14/fst/var/www/cgi-bin/forum/admin/GForum.pm line 91.

[Sun May 12 09:21:39 2002] [error] Premature end of script headers: /home/virtual/site14/fst/var/www/cgi-bin/forum/g$

Does this provide any ideas?

Thanks
Webmaster
http://www.e-bannerx.com
Quote Reply
Re: [fulcan] error with gforum In reply to
Did you touch the source code in the last few days?

Especially: GForum/Config/Data.pm, GForum.pm, bad_link.cgi.

If not, You must check Data.pm, it seems it was not written out properly (it is generated automatically).
If you have a backup of Data.pm somewhere, it may help you to restore the last know good state of the file.

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Quote Reply
Re: [fulcan] error with gforum In reply to
The bad_link plugin is for links sql...you seem to have installed it with GForum?
Quote Reply
Re: [Paul] error with gforum In reply to
Webmaster33 - nope have not touched it for a few weeks. I logged into the forum yesterday and everything was fine. Tried to log in today and internal server error. Thats why I am very confused.

Paul - I also run Links SQL and I have the badlink.cgi installed for that. Not sure why it should pull it up for the forum. Seems very strange. I dont have it installed in the forum but maybe there is a conflict??? in some way with Links SQL???
Webmaster
http://www.e-bannerx.com
Quote Reply
Re: [fulcan] error with gforum In reply to
Data.pm seems to be corrupted in the neighbourhood of the markup tag entries.

Try editing GForum/Config/Data.pm by hand, you probably have to add a right square bracket ] somewhere.

Use "perl -c Data.pm" to see if the file is OK.

If you don't succeed, post a few dozen lines around line 1622 of Data.pm here (in an attachement), and we might be able to see what goes wrong.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] error with gforum In reply to
Ok, I had a look at data.pm. The one I might query is the last line at the bottom of this message as it opens but does not close. How should I fix this, with a ], on a new line or should it be different as it is the end of the script.

'markup_tags' => {
'/b' => [
'</b>',
'Font Attribute'
],
'/black' => [
'</font>',
'Font Color'
],
'/blue' => [
'</font>',
'Font Color'
],
'/center' => [
'</p>',
'Page Format'
],
'/code' => [
'</big></pre></div><table border=0 cellpadding=0 cellspacing=0 width="100%"><!--/code--><tr><td><hr width="100%" noshade size=1 color="#A1A576"></td></tr></table>',
'Text Block',
'1'
],
'/font' => [
'</font>',
'Font Attribute'
],
'/green' => [
'</font>',
'Font Color'
],
'/i' => [
'</i>',
'Font Attribute'
],
'/indent' => [
'</blockquote>',
'Page Format'
],
'/left' => [
'</p>',
'Page Format'
],
'/li' => [
'</li>',
'Page Format'
],
'/ol' => [
'</ol>',
'Page Format'
],
'/orange' => [
'</font>',
'Font Color'
],
'/pre' => [
'</big></pre></div><table border=0 cellpadding=0 cellspacing=0 width="100%"><!--/pre--><tr><td><hr width="100%" noshade size=1 color="#A1A576"></td></tr></table>',
'Text Block',
'1'
],
'/purple' => [
'</font>',
'Font Color'
],
'/quote' => [
'</div><table border=0 cellpadding=0 cellspacing=0 width="100%"><!--/quote--><tr><td><hr width="100%" noshade size=1 color="#A1A576"></td></tr></table>',
'Text Block',
'1'
],
'/red' => [
'</font>',
'Font Color'
],
'/reply' => [
'</div><table border=0 cellpadding=0 cellspacing=0 width="100%"><!--/reply--><tr><td><hr width="100%" noshade size=1 color="#A1A576"></td></tr></table>',
'Text Block',
'1'
],
'/right' => [
'</p>',
'Page Format'
],
'/s' => [
'</strike>',
'Font Attribute'
],
'/silver' => [
'</font>',
'Font Color'
],
'/size' => [
'</font>',
'Font Attribute'
],
'/strike' => [
'</strike>',
'Font Attribute'
],
'/u' => [
'</u>',
'Font Attribute'
],
'/ul' => [
'</ul>',
'Page Format'
],
'/url' => [
'</a>',
'Miscellaneous'
],
'/white' => [
'</font>',
'Font Color'
],
'/yellow' => [
'</font>',
'Font Color'
],
':(' => [
'<img src="<%image_url%>/frown.gif" alt="Frown" border="0">',
'Emotion Icon'
],
':)' => [
'<img src="<%image_url%>/smile.gif" alt="Smile" border="0">',
'Emotion Icon'
],
':/' => [
'<img src="<%image_url%>/unsure.gif" alt="Unsure" border="0">',
'Emotion Icon'
],
':\\' => [
'<img src="<%image_url%>/unsure.gif" alt="Unsure" border="0">',
'Emotion Icon'
],
':p' => [
'<img src="<%image_url%>/tongue.gif" alt="Tongue" border="0">',
'Emotion Icon'
],
':|' => [
'<img src="<%image_url%>/unimpressed.gif" alt="Unimpressed" border="0">',
'Emotion Icon'
],
';)' => [
'<img src="<%image_url%>/wink.gif" alt="Wink" border="0">',
'Emotion Icon'
],
'angelic' => [
'<img src="<%image_url%>/angelic.gif" alt="Angelic" border="0">',
'Emotion Icon'
],
'b' => [
'<b>',
'Font Attribute'
],
'black' => [
'<font color="black">',
'Font Color'
],
'blue' => [
'<font color=blue>',
'Font Color'
],
'blush' => [
'<img src="<%image_url%>/blush.gif" alt="Blush" border="0">',
'Emotion Icon'
],
'center' => [
'<p align="center">',
'Page Format'
],
'code' => [
'<table border=0 cellpadding=0 cellspacing=0 width="100%"><!--code--><tr><td width="2%"><hr width="100%" noshade size="1" color="#A1A576"></td><td width="5%" align=center><font size=1 face="Verdana,Arial,Helvetica">Code</font></td><td width="93%"><hr width="100%" noshade color="#A1A576" size=1></td></tr></table><div style="margin-left: 30px"><pre><big>',
'Text Block',
'1'
],
'cool' => [
'<img src="<%image_url%>/cool.gif" alt="Cool" border="0">',
'Emotion Icon'
],
'crazy' => [
'<img src="<%image_url%>/crazy.gif" alt="Crazy" border="0">',
'Emotion Icon'
],
'font()' => [
'<font face="%1%">',
'Font Attribute'
],
'frown' => [
'<img src="<%image_url%>/frown.gif" alt="Frown" border="0">',
'Emotion Icon'
],
'green' => [
'<font color=green>',
'Font Color'
],
'hr' => [
'<hr noshade size="1">',
'Page Format'
],
'i' => [
'<i>',
'Font Attribute'
],
'indent' => [
'<blockquote>',
'Page Format'
],
'laugh' => [
'<img src="<%image_url%>/laugh.gif" alt="Laugh" border="0">',
'Emotion Icon'
],
'left' => [
'<p align="left">',
'Page Format'
],
'li' => [
'<li>',
'Page Format'
],
'mad' => [
'<img src="<%image_url%>/mad.gif" alt="Mad" border="0">',
'Emotion Icon'
],
'ol' => [
'<ol>',
'Page Format'
],
'orange' => [
'<font color="orange">',
'Font Color'
],
'pirate' => [
'<img src="<%image_url%>/pirate.gif" alt="Pirate" border="0">',
'Emotion Icon'
],
'pre' => [
'<table border=0 cellpadding=0 cellspacing=0 width="100%"><!--pre--><tr><td width="2%"><hr width="100%" noshade size="1" color="#A1A576"></td><td width="5%" align=center><font size=1 face="Verdana,Arial,Helvetica">Code</font></td><td width="93%"><hr width="100%" noshade color="#A1A576" size=1></td></tr></table><div style="margin-left: 30px"><pre><big>',
'Text Block',
'1'
],
'purple' => [
'<font color=purple>',
'Font Color'
],
'quote' => [
'<table border=0 cellpadding=0 cellspacing=0 width="100%"><!--quote--><tr><td width="2%"><hr width="100%" noshade size="1" color="#A1A576"></td><td width="6%" align=center><font size=1 face="Verdana,Arial,Helvetica">Quote</font></td><td width="92%"><hr width="100%" noshade color="#A1A576" size=1></td></tr></table><div style="margin-left: 30px">',
'Text Block',
'1'
],
'red' => [
'<font color=red>',
'Font Color'
],
'reply' => [
'<table border=0 cellpadding=0 cellspacing=0 width="100%"><!--reply--><tr><td width="2%"><hr width="100%" noshade size="1" color="#A1A576"></td><td width="10%" align=center><font size=1 face="Verdana,Arial,Helvetica">In&nbsp;Reply&nbsp;To</font></td><td width="87%"><hr width="100%" noshade color="#A1A576" size=1></td></tr></table><div style="margin-left: 30px">',
'Text Block',
'1'
],
'right' => [
'<p align="right">',
'Page Format'
],
's' => [
'<strike>',
'Font Attribute'
],
'shocked' => [
'<img src="<%image_url%>/shocked.gif" alt="Shocked" border="0">',
'Emotion Icon'
],
'silver' => [
'<font color=silver>',
'Font Color'
],
'size()' => [
'<font size="%1%">',
'Font Attribute'
],
'sly' => [
'<img src="<%image_url%>/sly.gif" alt="Sly" border="0">',
'Emotion Icon'
],
'smile' => [
'<img src="<%image_url%>/smile.gif" alt="Smile" border="0">',
'Emotion Icon'
],
'strike' => [
'<strike>',
'Font Attribute'
],
'tongue' => [
'<img src="<%image_url%>/tongue.gif" alt="Tongue" border="0">',
'Emotion Icon'
],
'u' => [
'<u>',
'Font Attribute'
],
'ul' => [
'<ul>',
'Page Format'
],
'unimpressed' => [
'<img src="<%image_url%>/unimpressed.gif" alt="Unimpressed" border="0">',
'Emotion Icon'
],
'unsure' => [
'<img src="<%image_url%>/unsure.gif" alt="Unsure" border="0">',
'Emotion Icon'
],
'url()' => [
'<a href="<%cgi_root_url%>/gforum.cgi?url=%c1%" target="_blank">',
Webmaster
http://www.e-bannerx.com
Quote Reply
Re: [fulcan] error with gforum In reply to
Yes, it certainly has to have a closing square bracket.

It should look like:
Code:
.....

'url()' => [
'<a href="<%cgi_root_url%>/gforum.cgi?url=%c1%" target="_blank">',
'Miscellaneous'
],
'white' => [
'<font color="white">',
'Font Color'
],

.....
etc etc.

Ivan
-----
Iyengar Yoga Resources / GT Plugins

Last edited by:

yogi: May 12, 2002, 1:10 PM
Quote Reply
Re: [yogi] error with gforum In reply to
Hi Ivan,

Thanks for your help. The script I loaded above was actually the end of the script. I went and fond a backup as suggested by webmaster33 and copied that across and it fixed it. It looks like I was missing a large section of the script at the end. What would cause this problem?

Thanks
Webmaster
http://www.e-bannerx.com
Quote Reply
Re: [fulcan] error with gforum In reply to
Quote:
You must check Data.pm, it seems it was not written out properly (it is generated automatically).
If you have a backup of Data.pm somewhere, it may help you to restore the last know good state of the file.
The reason for this error is, that the file file writing process was interrupted while the writing was under way. This may be caused by several reasons, e.g.:
- you clicked very quickly 2 or more times on the Modify or Update button, when you updated the config or global settings.
- there is a bug in GFORUM, that there was not file lock on Data.pm file, while the writing process was not finished.

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...