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)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: cilias, Assigned: paulc)

References

()

Details

(Whiteboard: tiki_bug, tiki_upstreamed)

Attachments

(1 file, 1 obsolete file)

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
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
Attached patch v1 (obsolete) — Splinter Review
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)
Blocks: 526786
Paul, I'd prefer if you could make the copy, since it's pretty much just a copy/paste/svn add.
Blocks: 526638
Attached patch v2Splinter Review
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 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+
r55333
Should be a lot better now.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → 1.5
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
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).
Whiteboard: tiki_bug, tiki_discuss → tiki_bug
pagination applied
Whiteboard: tiki_bug → tiki_bug, tiki_upstreamed
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: