Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jun 2008
Posts: 92
Likes: 1
M
Journeyman
Journeyman
M Offline
Joined: Jun 2008
Posts: 92
Likes: 1
UBB v 7.7.1

Some posts made are missing part of the title in the html HEAD section and only including the forum title. See below for example. This is happening in 1 of every 5 posts I make.

These are posts made in Ubb/HTML mode.

It does not happen every time and I have not yet found the pattern that consistently produces this behavior, but it is definitely occurring since my upgrade from 7.5x to 7.7x. I never saw it happen with 7.5.

Example of what the HTML TITLE tag looks like when this happens. Notice the board title is there but the post title is not:

HTML
<title> - The Orbis Vitae Community</title>

Thanks and I hope this helps.

Last edited by mmem700; 02/18/2019 12:20 PM.

Today they call you "crazy".
Tomorrow they call you "ahead of your time".
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
Are you running stock forum code, or have you modified it in any way?

Can you share/post a link to a page that is producing this result, so that the cause of this can be reviewed.


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Jun 2008
Posts: 92
Likes: 1
M
Journeyman
Journeyman
M Offline
Joined: Jun 2008
Posts: 92
Likes: 1
UBB v 7.7.1

I am finding that the breadcrumbs are only showing "Home" after posts are made.

See attached image.

Thanks.
Attachments
breadcrumbs missing.png


Today they call you "crazy".
Tomorrow they call you "ahead of your time".
Joined: Jun 2008
Posts: 92
Likes: 1
M
Journeyman
Journeyman
M Offline
Joined: Jun 2008
Posts: 92
Likes: 1
Here's a link that's doing it:

http://orbisvitae.com/ubbthreads/ubbthreads.php?ubb=showflat&Number=86012#Post86012

It may be related to quotes in the title, but not sure yet.

The posts I saw it happening in were all posted in UBB/HTML mode.


Today they call you "crazy".
Tomorrow they call you "ahead of your time".
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
I've PMd you the 'bug' @isaac.

libs/html.inc.php, where it removes whitespace from InputTitle / Breadcrumbs.

If board is charset ISO, that sanitation 'breaks' titles/breadcrumbs..

2c

Joined: Jun 2008
Posts: 92
Likes: 1
M
Journeyman
Journeyman
M Offline
Joined: Jun 2008
Posts: 92
Likes: 1
I apologize. I apparently reported 2 different bugs in the same thread. My mistake.

1. About breadcrumbs missing.
2. About missing subject from HTML title tag.

Here is a graphic showing what is happening to the HTML title tag when non-alpha-numeric characters are present in the post title. This was posted in HTML mode, in case that makes a difference.

Thanks.


Attachments
title-tag-description.png

Last edited by mmem700; 02/20/2019 12:39 PM.

Today they call you "crazy".
Tomorrow they call you "ahead of your time".
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Its the non-UTF character in your subject (’); if your forums were in UTF8 the character would process, but you're still using the iso-8859-1 character set which has been depreciated since the ISO "Working Group" disbanded in 2004.

An example of special characters in a subject line (its not an alphanumeric (A-Z0-9) issue (which would mean a problem with standard punctuation characters)) of a UTF forum can be found attached.
Attachments
smilesubject.png


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
short term stopgap is:

PHP Code

		//$inputTitle = preg_replace(array('/^\s\s+/', '/\s\s+$/', '/\s\s+/u'), array('', '', ' '), $inputTitle);
		//$breadcrumb = preg_replace(array('/^\s\s+/', '/\s\s+$/', '/\s\s+/u'), array('', '', ' '), $breadcrumb);
		$inputTitle = trim(preg_replace('/\s+/',' ', $inputTitle));
		$breadcrumb = trim(preg_replace('/\s+/',' ', $breadcrumb)); 

that doesn't break boards with ISO-8859-1 charset.

file: libs/html.inc.php, i left the 2 original lines in and just commented them out for now.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
0 members (), 919 guests, and 149 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)