Closed
Bug 526246
Opened 15 years ago
Closed 15 years ago
Fatal error accessing tiki-admin_modules.php on support-stage
Categories
(support.mozilla.org :: General, defect)
support.mozilla.org
General
Tracking
(Not tracked)
VERIFIED
FIXED
1.5
People
(Reporter: cilias, Assigned: paulc)
References
()
Details
(Whiteboard: tiki_bug, tiki_upstreamed)
Attachments
(1 file, 1 obsolete file)
15.47 KB,
patch
|
jsocol
:
review+
|
Details | Diff | Splinter Review |
Go to <https://support-stage.mozilla.org/tiki-admin_modules.php?um_edit=promotebox>. I get an error message: Fatal error: Maximum execution time of 30 seconds exceeded in /data/www/support-stage.mozilla.com/webroot/lib/smarty_tiki/outputfilter.urlt.php on line 132
Assignee | ||
Comment 1•15 years ago
|
||
A good solution is to remove those selects and replace them by inputs, as Cheng said in our meeting today. This is also a tiki bug, since for a large number of a certain type of content, it should limit the items displayed.
Whiteboard: tiki_bug
Assignee | ||
Comment 2•15 years ago
|
||
This patch removes all the listing for polls and other contents. Reduces the page load time from ~18s to <1s on my local. Of course this is not upstream-able. To help a bit, I suppose we could create a template in mozkb/ instead of hacking the original one. James, what do you think?
Assignee: nobody → paulc
Attachment #410558 -
Flags: review?(james)
Comment 3•15 years ago
|
||
Paul, I'd prefer if you could make the copy, since it's pretty much just a copy/paste/svn add.
Assignee | ||
Comment 4•15 years ago
|
||
This adds a new template and delete code not used in the template. Testing without removing the php code still leads to >5s page load time, so affecting the .php file seems necessary.
Attachment #410558 -
Attachment is obsolete: true
Attachment #410564 -
Flags: review?(james)
Attachment #410558 -
Flags: review?(james)
Comment 5•15 years ago
|
||
Comment on attachment 410564 [details] [diff] [review] v2 WFM. I'm still able to create & edit modules but without all the extra junk. Mine wasn't timing out locally, but it does seem snappier now.
Attachment #410564 -
Flags: review?(james) → review+
Assignee | ||
Comment 6•15 years ago
|
||
r55333 Should be a lot better now.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Updated•15 years ago
|
Target Milestone: --- → 1.5
Comment 7•15 years ago
|
||
Verified FIXED on https://support-stage.mozilla.org/tiki-admin_modules.php?um_edit=promotebox; seems to be fine so far.
Status: RESOLVED → VERIFIED
Comment 8•15 years ago
|
||
Yet an other case of code removal. My understanding is that is is caused by the large amount of polls. An option could be to add filters and pagination as it was done on the category admin. Simply removing the code is not really an option.
Whiteboard: tiki_bug → tiki_bug, tiki_discuss
Assignee | ||
Comment 9•15 years ago
|
||
I think the way to ensure you don't have these types of problems is to not list all content of any type in a single select box, but instead use search -- and break it down into pages as you said. That said, there are several places in the code that list all wiki articles or polls in a single <select> -- see bug 526786 for removing those and replacing them wish something better (search or pagination).
Assignee | ||
Updated•15 years ago
|
Whiteboard: tiki_bug, tiki_discuss → tiki_bug
You need to log in
before you can comment on or make changes to this bug.
Description
•