Closed Bug 470554 Opened 17 years ago Closed 17 years ago

Support homepage template broken, causing screwy lists.

Categories

(support.mozilla.org :: Knowledge Base Software, task)

task
Not set
major

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: cww, Assigned: ecooper)

References

()

Details

(Whiteboard: sumo_only)

Attachments

(1 file, 1 obsolete file)

http://support.mozilla.com/en-US/kb/ contains the following HTML for the list of Popular support articles: <ul><li> <a title="This article covers why you would not be able to access any web sites after upgrading Firefox. You may instead get quot;Unable to connect quot; or quot;Server not found quot; error pages. </li></ul> <p>For situa" href='tiki-index.php?page=Cannot+connect+after+upgrading+Firefox' class='wiki'>Cannot connect after upgrading Firefox</a> </p> <ul><li> <a title="If bookmarks are missing, see Lost bookmarks. </li></ul> <p>If toolbar buttons are missing, see Back and forward or other toolbar buttons are missing. </p> <p>Windows: <br />If bookmarks and toolbar buttons are working prope" href='tiki-index.php?page=Bookmarks+and+toolbar+buttons+not+working+after+upgrading' class='wiki'>Bookmarks and toolbar buttons not working after upgrading</a> </p> <ul><li> <a title="Private data is used by the browser to enhance your experience on the internet. When the browser remembers a web site you previously visited or the username and password for your favorite web site," href='/en-US/kb/Clearing+Private+Data' class='wiki'>Clearing Private Data</a> </li><li> <a title="Over time, the Search bar history in Firefox can grow quite large. If needed, you can clear items from the Search bar history. </li></ul> <p>To clear all items, right-clickhold down the Ctrl key while you click" href='tiki-index.php?page=How+to+clear+Search+bar+history' class='wiki'>How to clear Search bar history</a> </p> <ul><li> <a title="This article describes how to clear single items or all items from the Location bar history. </li></ul> <p>Table Of ContentsClearing a single item from the Location bar history <br />Clearing all items in the Locati" href='tiki-index.php?page=Clearing+Location+bar+history' class='wiki'>Clearing Location bar history</a> </p> <ul><li> <a title="This article identifies several causes (and solutions) of No Sound in Firefox. </li></ul> <p>Before using the instructions in this article, make sure other applications on your computer can play sounds. If Firef" href='tiki-index.php?page=No+sound+in+Firefox' class='wiki'>No sound in Firefox</a> ... Basically now that we have tooltips that provide titles, there's a " missing or misplaced somewhere. Should be an easy fix.
Severity: normal → major
Keywords: regression
Target Milestone: 0.9 → 0.8.1
Assignee: nobody → smirkingsisyphus
Can someone with access rights on prod attach the wiki text used in the content blocks for the "New to Firefox?" and "Popular Support Articles" blocks? While there is a chance it's probably not the problem, I need the most current version to troubleshoot.
New to Firefox: ------------------------- * ((Installing Firefox)) * ((Using Firefox)) * ((Customizing Firefox with add-ons)) ------------------------- Popular Support articles: ------------------------- * ((Cannot connect after upgrading Firefox)) * ((Bookmarks and toolbar buttons not working after upgrading)) * ((Clearing Private Data)) * ((How to clear Search bar history)) * ((Clearing Location bar history)) * ((No sound in Firefox)) * ((Exporting bookmarks to an HTML file)) * ((Keyboard shortcuts)) * ((How to make Firefox the default browser)) * ((Organizing Bookmarks)) -------------------------
I can't replicate the broken lists on my dev instance (I get the same descriptions with the html inside, however), which is sort of confusing and frustrating. After looking over a bit of parser code, it seems that the link titles are page descriptions being pulled straight from the tiki_pages table. So, if that description contains anything it shouldn't, it might be causing the broken lists. It can be either messing with the rest of the parsing process (as links are transformed into html before lists are generated) or just causing malformed html. Sanitizing the description should fix this.
Actually, it looks like newlines in the description that's used for the link title are messing with the parser (which parses one line at a time).
Yup, I tried rearranging the list items on <http://support.mozilla.com/en-US/kb/Article+Sandbox?bl=n>, and it does seem specific to certain articles. For instance, Anything after ((How to clear Search bar history)) is a sublist. Same goes for ((Clearing Location bar history)).
This seems to do the trick. It isn't the most ideal method, but it's the most backward compatible (although, it seems page_exists_desc is only used where it needed to be changed anyway so that issue might be moot).
Attachment #355230 - Flags: review?(nelson)
Normally line breaks should not appear in TikiWiki descriptions. I think the line breaks in the description was caused by the auto-description-generation of the new search indexing. I suggest instead of adding complexity into tikilib, that we simply fix the indexer to strip line breaks from the auto-generated description, and force a new index from scratch. On development, I deleted lastindexingtime.txt (to force a clean indexing) and then ran the "php manual_index.php" from the command line, and that did the trick. We should be running the index procedure as part of 0.8.1 deployment anyway, since we are fixing bug 470550 in the process as well.
Attachment #355230 - Attachment is obsolete: true
Attachment #355230 - Flags: review?(nelson)
I agree with Nelson that this is the best way to fix this bug. Prior to our talk, I was under the impression that descriptions were used more often and in different ways. They have a pretty singular use, however.
Attachment #355683 - Flags: review?(laura) → review+
in r21499/r21500. Still need reindexing to be run.
(In reply to comment #11) > in r21499/r21500. Still need reindexing to be run. Shouldn't we assign this to, or cc, at least, ops, then?
What we do is add "run reindexing" to the push bug and close this one.
(In reply to comment #13) > What we do is add "run reindexing" to the push bug and close this one. That is done, so closing this one for now.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
(In reply to comment #14) > (In reply to comment #13) > > What we do is add "run reindexing" to the push bug and close this one. > > That is done, so closing this one for now. Why didn't that fix the homepage when we pushed last night? http://support.mozilla.com/en-US/kb/Firefox+Support+Home+Page
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
I brought this up just after the push last night, and was told that there needs to be a reindexing on new search for this to take affect.
Still happens on staging so it's not completely fixed: http://support-stage.mozilla.org/kb/
Target Milestone: 0.8.1 → 0.8.2
We still haven't run indexing, and won't until Nelson can make it work right.
Depends on: 470386
Keywords: regressionpush-needed
Whiteboard: indexing needed
Target Milestone: 0.8.2 → 0.9
Will create another IT bug to get indexing done. Everything is ready - just need to write the instructions.
Will arrange for this to be done by IT on another different night after the 0.8.2 push. (In reply to comment #19) > Will create another IT bug to get indexing done. Everything is ready - just > need to write the instructions.
Target Milestone: 0.9 → 1.0
Re-indexing has finally happened, marking this as fixed.
Status: REOPENED → RESOLVED
Closed: 17 years ago17 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Keywords: push-needed
Whiteboard: indexing needed
Whiteboard: sumo_only
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: