Problems with the THN mainpage

Dragon

Well-Known Member
Hey guys, I have the following problem:

when I open our main URL (www.thehavennet.co.uk) there's that "Last 5 Posts" list (referred to as P-list) and that "Last 5 Treads" list (referred to as T-list) on the lower left side. Strangely when I use a link of the T-list, it works perfectly, but when I use a link to the same topic situated in the P-list i get the following error message:

"No Thread specified. If you followed a valid link, please notify the administrator"
Can you help me? ;)
 

DocBot

Administrator
Staff member
The syntax in those links seems to be a bit under the weather. Gotta be fixed by one of the devs. So, we wait and smile :)

(also, it's .org.uk)
 

Ronin Storm

Administrator
Staff member
Hmm, looks like a missing ampersand between "newpost" and "t=###". I can't fix that 'til later in the week though.
 

Dragon

Well-Known Member
I'm sorry to bother you, but I still have that problem. Have you fixed it now and it is just a browser problem or haven't you found the time yet?
 

Traxata

Junior Administrator
I'm sorry to bother you, but I still have that problem. Have you fixed it now and it is just a browser problem or haven't you found the time yet?
Yup, it's there, I can't remember if Ronin fixed that last time?
 

Ronin Storm

Administrator
Staff member
Nope. Not fixed. Got busy and forgot. Just spent the last hour and some looking over this and it's not getting fixed quickly either. The problem isn't in my code, which is relatively simple, but somewhere in either Magpie RSS (which is what we use to power the lists of posts) or all the way back in how that calls the PHP XML parser.

Possible solutions include swapping Magpie RSS out for something that's actually maintained.

I notice this is hitting the EVE site too.

The RSS feeds are valid. The code used to work. Smells like a PHP issue to me.

Some days I hate scripting and it's total lack of decent debugging. Where's my step over / step into feature, hmm?! Oh, wait, that's for compiled code... :p
 

Ronin Storm

Administrator
Staff member
Having said all that, I've used an exceptionally dirty hack to work around the problem. No ampersand? No problem!

PHP:
$link = str_replace("t=", "&t=", ($useGuid ? $item['guid'] : $item['link']));

Should be working now.
 

Ronin Storm

Administrator
Staff member
Now fixed for the EVE site too, with a modification to the above hack.

I'll call this one resolved. Likelihood of a more serious fix any time soon is pretty low.
 
Top