Tags:
create new tag
view all tags

Question

When I click edit then save any page (with or without making changes) the content of that page is truncated to about 500-1300 characters. Everything looks fine in testenv, but this one problem is really frustrating.

I'm using mod_perl. I have several other sites on the server running mod_perl and accepting form data without this problem.

Environment

TWiki version: TWikiRelease01Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Redhat 9
Web server: Apache/2.0.40
Perl version: 5.8.0
Client OS: OS X
Web Browser: Firefox / Safari (does not seem to be browser specific)
Categories: Installation

-- MarcusVorwaller - 30 Oct 2004

Answer

I had the same problem before I discovered I needed CGI.pm version 2.93 for mod_perl. Could you check your version?

-- ArthurClemens - 31 Oct 2004

I have version 3.04.

Required Perl modules: CGI (3.04) CGI::Carp (1.27) File::Copy (2.05) File::Spec (0.86) FileHandle (2.01)

Any other suggestions would be much appreciated. I've been working on this for three nights straight and haven't found the solution. I did find ModPerlOnRedHat90 but have not been able to fix it yet.

-- MarcusVorwaller - 31 Oct 2004

You don't say if there are any errors in the apache log, or the twiki warning files.

If I was you, I'd add a debug statement to dump the query in the top of the 'save' script (use CPAN:Data::Dumper). That way you should be able to eliminate either the apache server (if all the text is there) or TWiki (if it isn't).

-- CrawfordCurrie - 31 Oct 2004

There are no errors on the Apache error logo or the Twiki warning files.

I installed Data::Dumper, but as far as what the debug statement should be, I don't know where to begin. I have installed lots of perl software (WebGUI, Interchange, MT) but I don't know perl smile

I did, however, try my hand at it and added this: use Data::Dumper; print Dumper($query);

right before the first line line: use strict;

(using it afterwards caused an internal server error)

It did not "dump" anything, just saved the entry as normal (truncated that is).

Further help much appreciated.

-- MarcusVorwaller - 01 Nov 2004

try changing to use Data::Dumper; print STDERR Dumper( $query ); and move those to line 40 (assuming CairoRelease), right after where it says my $query = new CGI;. apache's error.log will contain the value of $query.

-- WillNorris - 01 Nov 2004

After adding those lines and scratching my head for about 2 hours wondering why it wasn't saving anything to the error log I remembered that little line I uncommented in setlib.cfg that told twiki to send errors to /dev/null...

The text of the entry right up to the truncated point it printed in the error_log. Nothing afterwards is printed there. Does this mean it's a Twiki problem, and if so, what can I do to fix it?

-- MarcusVorwaller - 02 Nov 2004

Answered! I don't know how to change the status yet, but I was able to successfully upgrade mod_perl to 1.99 and it works now! I found the correct RPM's here: http://www.apache.org/~gozer/mp2/ Thank you all for your help!

-- MarcusVorwaller - 02 Nov 2004

Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r9 - 2004-11-02 - WillNorris
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.