Closed
Bug 489839
Opened 15 years ago
Closed 15 years ago
editor does not offer categories
Categories
(support.mozilla.org :: Knowledge Base Software, task)
support.mozilla.org
Knowledge Base Software
Tracking
(Not tracked)
VERIFIED
FIXED
1.0.2
People
(Reporter: cilias, Assigned: ecooper)
References
Details
(Whiteboard: sumo_only)
Attachments
(3 files)
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.
Reporter | ||
Comment 1•15 years ago
|
||
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
Reporter | ||
Comment 2•15 years ago
|
||
* 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
Reporter | ||
Updated•15 years ago
|
Target Milestone: --- → 1.0.2
Assignee | ||
Comment 3•15 years ago
|
||
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.
Assignee | ||
Comment 4•15 years ago
|
||
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.
Comment 5•15 years ago
|
||
I think I cleared the templates... but the pages showed up blank before I could go on to anything else. Kinda unexpected...
Assignee | ||
Comment 6•15 years ago
|
||
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.
Comment 7•15 years ago
|
||
Is this still happening now stage is less flaky?
Assignee: nobody → smirkingsisyphus
Assignee | ||
Comment 8•15 years ago
|
||
Yes. I'm currently still trying to reproduce it. The other error concerning errors in smarty templates seems to be okay now.
Assignee | ||
Comment 9•15 years ago
|
||
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
Reporter | ||
Comment 10•15 years ago
|
||
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
Updated•15 years ago
|
Whiteboard: sumo_only
You need to log in
before you can comment on or make changes to this bug.
Description
•