Gossamer Forum
Home : Products : Gossamer Links : Discussions :

blanl page in page.cgi

Quote Reply
blanl page in page.cgi
Hello

when I set foreign char to yes & i call page.cgi?g=1000
in which 1000 a non existing idea, it generates a blank page instead of an error message.

How can i solve this problem?
Quote Reply
Re: [ridesworld] blanl page in page.cgi In reply to
I got the same problem...

Klaus

http://www.ameinfo.com
Quote Reply
Re: [ridesworld] blanl page in page.cgi In reply to
Try add the following code to Page.pm after line# 98: ($id) = $page =~ /(\d+)$/;

Code:


$id = $cat_db->get ($id);
Quote Reply
Re: [Fortune] blanl page in page.cgi In reply to
hello Fortune

when I add your code, the following happen:
it only displays when categories are root categories trying to find root categories.

but when i ask for a subcategory from url like:

page.cgi?g=1%2F492%2F497%2Findex.html&d=1

it generates a blank page, but the ID 497 exists.
Quote Reply
Re: [ridesworld] blanl page in page.cgi In reply to
I think there is a bug in LinksSQL 2.1.2.

At first I didn't know why the above code caused you errors because it worked for me. Then I did some experiments and found the following reason might caused your errors.

If you use MySQLMan to import a category to your database without the field, Category_Template, you will have NULL in that field. That category will generate a blank page.

So, go to MySQLMan->Category->Browse->497->Edit

Try to edit category ID# 497, find if the box in the right side of Category_Template is checked. If it is checked, uncheck it. It works for me.
Quote Reply
Re: [ridesworld] blanl page in page.cgi In reply to
$cat_db->get ($id) caused me troubles a few times. Use the following code is better. Everything seems working fine.

($id) = $cat_db->select( { ID => $id } )->fetchrow_array;
Quote Reply
Re: [Fortune] blanl page in page.cgi In reply to
Hello Fortune

Your last suggestion seems to work properly.

I have no entries in the Category_Template, and it should be referring to the default category template if nothing entered.

Your last suggestion can handle it without generating blank pages.