Topic: search.php parsing error with: ?action=show_subscriptions and others..

Hi,

I've integrated punBB here: http://feralhouse.com/feral_parlour/

I am getting a parsing error under certain circumstances. Basically, if a user hasn't posted, subscibed to a thread, or if there have not been new posts since their last visit,

search.php?action=show_subscriptions,
search.php?action=show_new, and
search.php?action=show_user&user_id=3

do not work as they should.


For example:

If a user has not subscribed to a topic, and then clicks this link:
feralhouse.com/feral_parlour/search.php?action=show_subscriptions

I get the alert: "Unable to read ini file." (This is telling me that a pun include in main.tpl isn't able to read a .ini pref file.)

If I subscibe to a topic though, and then click the same link, it works -- the pun include works as it should, and I get a list of the threads that I have subscibed to.

I am wondering why this may be happening, and if it can be fixed?

If you need any code in question, let me know.

Thanks.

Re: search.php parsing error with: ?action=show_subscriptions and others..

"Unable to read ini file." is not a PunBB error. I googled and found an Ad Rotator that can generate that error. This one: http://www.alistapart.com/d/betterrotator/rotator.txt

"Programming is like sex: one mistake and you have to support it for the rest of your life."

3 (edited by Parker 2005-05-24 23:28)

Re: search.php parsing error with: ?action=show_subscriptions and others..

Hi,

You got it. I am running 'Image Rotator' by Dan Benjamin.

It seems to me though that PunBB outputs/parses slightly different when any ?action= returns a NULL value.


For instance,

If I search for something that returns a value, 'search.php?action=search' returns a correctly parsed page.

But, if 'search.php?action=search' does not find a matching term, the code fails.

Again, I have found that the code fails for every ?action= that returns NULL value. But works when a value is found.


Thanks for your help.
parker

Re: search.php parsing error with: ?action=show_subscriptions and others..

I think I know what the problem is. When PunBB does not locate any posts or when it outputs general messages, it calls the function message(). When that happens, $IMG_CONFIG_FILE is lost because it is not globalized in the message() function. Try adding $IMG_CONFIG_FILE to the global variables in function message() in include/functions.php.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: search.php parsing error with: ?action=show_subscriptions and others..

Hi,

Works like a charm.

Thank you very much!

p

Re: search.php parsing error with: ?action=show_subscriptions and others..

You're welcome smile

"Programming is like sex: one mistake and you have to support it for the rest of your life."