TinyPortal

Development => Support => Topic started by: sibling chris on May 24, 2009, 10:05:12 PM

Title: Article will not display - am I going mad?!?!
Post by: sibling chris on May 24, 2009, 10:05:12 PM
I have at the moment only 2 articles

one a created a while back and setup it up  as featured to disply on my frontpanel, as a "welcome" screen - its a BBC article

I just created an "About us" type article also as a BBC  page and it refuses to display the message content. I tried another such article with no bbc actually in it and that has the same problem.

All I ever see is the title, author date etc, and then immidiately the digg icons and author info

what could be causing this? Am I going mad?!?!

thanks in advance
sc

Title: Re: Article will not display - am I going mad?!?!
Post by: JPDeni on May 24, 2009, 10:12:35 PM
Please read and follow the Posting Guidelines.html (http://www.tinyportal.net/index.php/topic,581)

We really need that information in order to even start thinking about how to help you.
Title: Re: Article will not display - am I going mad?!?!
Post by: sibling chris on May 24, 2009, 11:50:18 PM
SMF 1.1.9
TP 1.0 beta 3
Smf media gallery 1.5.6
Visual warnings mod
Phobos theme
Spam stopper
Recaptcha

The weird thing is when I look in the database the article that does display is all setup the same as the one that doesn't

Can't give you a link because I'm still testing my site locally right now

What I can see is some Odd  HTML in the page source where there appers to be an unclosed SPAN tag where the article text should be. I tracked this as far as the parse_bbc function in Subs.php and that's as far as I've got so far

Thanks

Title: Re: Article will not display - am I going mad?!?!
Post by: JPDeni on May 25, 2009, 12:42:17 AM
It would be pretty difficult to track it down unless I could see the source code.
Title: Re: Article will not display - am I going mad?!?!
Post by: Zetan on May 25, 2009, 05:56:48 AM
Is the article in a Category? Articles must be assigned to categories.
Title: Re: Article will not display - am I going mad?!?!
Post by: sibling chris on May 25, 2009, 06:04:52 AM
Yep, they're in categories. Different categories admittedly
Title: Re: Article will not display - am I going mad?!?!
Post by: Zetan on May 25, 2009, 06:11:17 AM
I don't think we can help any further then as your site is local and you haven't posted any real details.

Title: Re: Article will not display - am I going mad?!?!
Post by: sibling chris on May 25, 2009, 06:30:38 PM
re. the forum error log I do have some errors, but they are only when viewing at the category  level (articles with intros)

the most recent errors are like this

...index.php?cat=3 
8: Undefined variable: cexist
File: C:\xampplite\htdocs\thejazz\Sources\TPortal.php
Line: 1480


I now have the OK article and the one that is not displayin gint he saem category so at least I can rule out any category settings being the cause

the strange HTML...well what I am getting in the page generateed where the article text should be is this...

<div style="overflow: auto;"><span style="font-size: 10pt; line-height: 1.3em</span></div>


my tracing so far has got me to the parse_bbc function

in terms of bb code - the article is only plain text within one font size tag around the whole thing


I now know there is something in the text that is causing a problem. I have removed all but the first sentence and it displays OK. therefore I'm goign to work through it gradually until I can work out what characters in the text are making it go strange. will post what I discover later

thanks
Title: Re: Article will not display - am I going mad?!?!
Post by: sibling chris on May 25, 2009, 06:55:52 PM
ok I sorted it

I had pasted the article text from another basic HtML page someone else had written for the old site I'm upgrading

instead of the standard apostrophe character (7-bit ASCII code of hex 27) it had in there something from the extended ASCII character set....it seemed to be stored in the DB OK, but parse_bbc had issues with it. the character code used was hex 92

I can only assume that when the page was originally written something like MS Word or similar had been used and it had done its usual "auto correct" function and replaced the standard character with a different one - I've seen MS Word do this in the past with double-quotes also.

I think this would have worked if my forum was set as UTF-8

thanks
sc
Title: Re: Article will not display - am I going mad?!?!
Post by: JPDeni on May 25, 2009, 08:42:13 PM
Or possibly it might have worked if you had pasted into an html article, rather than a BBC article, since you weren't using BBC.

Glad you got it figured out, though.
Title: Re: Article will not display - am I going mad?!?!
Post by: sibling chris on May 25, 2009, 11:36:29 PM
Yeah, I guess a HTML page would have sorted it but I did only post the text from the original page and then added a couple of minor bbc code tags
Title: Re: Article will not display - am I going mad?!?!
Post by: Renegd98 on May 25, 2009, 11:46:41 PM
Marking solved