We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
Tags:
create new tag
, view all tags

Bug: Uploading or saving a pages hanging forever and tons of error in Apache error log

After upgrading a Cairo to the TWikiBetaRelease2004x10x24 people started reporting trouble with uploading files and saving topics.

Inspection of the log showed a pretty good hint of the problem. I had in two days got 300 MB of the same error message.

view: Use of uninitialized value in hash element at /usr/local/apache2/twiki/lib/TWiki/Prefs.pm line 413

Prefs.pm is one of the files updated with the beta. Reverting to the Cairo version removed the problem

I first shouted for help at the #twiki channel on Freenode IRC and an amazing 4-6 people jumped on it and fixed the problem in 30 minutes. You try reporting a bug like this with a Microsoft product and see how fast you get a fix smile

I have put the fix below. The code should already be on the DEVELOP branch on SVN. I report it here so that people that download the beta can do the fix manually. And to make sure it goes from the DEVELOP branch to the main branch.

Test case

Normal use of TWIki with uploading and saving both with IE and Firefox.

Environment

TWiki version: TWikiBetaRelease2004x10x24
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Fedora Core2, kernel 2.6.8.1 stock
Web server: Apache2.0.52
Perl version: 5.8.3
Client OS: Any
Web Browser: Any

-- KennethLavrsen - 28 Oct 2004

Follow up

Fix record

In ...lib/TWiki/Prefs.pm line 412 change the current line from

foreach my $key( %{$otherPrefsObject->{prefs}} ) {

to

foreach my $key( keys(%{$otherPrefsObject->{prefs}})) {

Thanks to the gang on IRC for help. #twiki on IRC is a great place to hang around.

-- KennethLavrsen - 28 Oct 2004

Thanks Kenneth for posting.

The fix is now in SVN MAIN, ready for the next TWikiBetaRelease2004x10x30

(To save time I will use MAIN until the pending issues of LocationLocationLocation are resolved)

-- PeterThoeny - 30 Oct 2004

WebForm
TopicClassification BugResolved
TopicSummary After upgrading a Cairo to the TWikiBetaRelease2004x10x24 people started reporting trouble with uploading files and saving topics.
InterestedParties

AssignedTo

AssignedToCore

ScheduledFor

RelatedTopics

SpecProgress

ImplProgress

DocProgress

Topic revision: r2 - 30 Oct 2004 - 08:58:59 - PeterThoeny
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback