Closed Bug 489839 Opened 15 years ago Closed 15 years ago

editor does not offer categories

Categories

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

task
Not set
blocker

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: cilias, Assigned: ecooper)

References

Details

(Whiteboard: sumo_only)

Attachments

(3 files)

Attached image screenshot
1. Log in as a contributor.
2. Go to any KB article (e.g. https://support-stage.mozilla.org/en-US/kb/How+to+clear+Search+bar+history ), and click on "Translate this page".
3. Enter the title of the translation, and click [Create translation].

The editor does not contain any categories. See screenshot.
Blocks: 487362
Same thing when creating an article via <https://support-stage.mozilla.org/en-US/kb/Creating+articles>. Even for admins.
No longer blocks: 487362
Summary: Translating an article does not offer categories → Creating an article does not offer categories
Blocks: 487362
* Even if you want to edit any existing article, there are no categories.
* If you save the edit, the staging copy is still in the staging area (that's good).
* If you edit an article that is already waiting for review, there is no preview of the current staging copy. (I assume that is the same bug)
Severity: major → blocker
Summary: Creating an article does not offer categories → editor does not offer categories
Target Milestone: --- → 1.0.2
I can confirm this is happening on staging. Locally, however, I can't reproduce this at r24762.

I don't think this is a smarty error. Since I don't actually have access to staging, I can't confirm, but it could be. If it's not a smarty compile error, category information isn't being pulled from the db for whatever reason. I'll keep looking.
Attached image Empty admin page
I just ran into this just to make sure categories were turned on (they are, but I was just checking since I'm running out of ideas), and ran into this. It happened while visiting Admin->Features. I'm not filing a new bug for this just yet since it may be related.

The above screenshot is most likely caused by a smarty error. Could we get the smarty cache cleared? It can be done from <https://support-stage.mozilla.org/tiki-admin_system.php?locale=en-US>, which doesn't seem to be failing. It probably won't solve the problem, but it's worth a shot.
I think I cleared the templates... but the pages showed up blank before I could go on to anything else. Kinda unexpected...
Categories are failing to be fetched in the editor for all pages, it seems.

webroot/categorize_list.php is in charge of doing this. According to SVN, it hasn't been touched in two months. 

/webroot/templates/styles/mozkb/categorize.tpl is the template used to display the categories in tiki-editpage.php. This too hasn't been touched in two months.

This doesn't seem like a code regression.
Is this still happening now stage is less flaky?
Assignee: nobody → smirkingsisyphus
Yes.

I'm currently still trying to reproduce it. 

The other error concerning errors in smarty templates seems to be okay now.
So, uh, easy fix.

Tiki caches a variety of things in webroot/temp/cache on its own accord. Somehow, the cache was corrupted/formed so that it in one way or another resembled an array containing a single empty array.

I have no idea how. I'm under the impression this was a hiccup we'll probably never see again.

The code responsible for querying (and the subsequent caching of) the list of categories can be found in webroot/lib/categories/categlib.php and webroot/lib/cache/cachelib.php.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Logged in as a Contributor,
* went to <https://support-stage.mozilla.org/en-US/kb/How+to+clear+Search+bar+history>, and tried to create a translation VERIFIED FIXED
* went to <https://support-stage.mozilla.org/en-US/kb/How+to+clear+Search+bar+history>, and tried to edit the article. VERIFIED FIXED
* went to article in waiting for review category <https://support-stage.mozilla.org/en-US/kb/%2ABookmarks>, and tried to edit it. VERIFIED FIXED
* went to <https://support-stage.mozilla.org/en-US/kb/Creating+articles> and tried to create new article. VERIFIED FIXED
Status: RESOLVED → VERIFIED
Whiteboard: sumo_only
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: