SID-02363: Problem with svn version on perl 5.26.1
| Status: |
Asked |
TWiki version: |
6.0.2 |
Perl version: |
5.26.1 |
| Category: |
CategoryEditing |
Server OS: |
Ubuntu 18.04 |
Last update: |
7 years ago |
Hi,
I tried to run the latest svn version of TWiki and found a problem when I try to edit a document with inserted images. This is the message in the error log:
[Thu Jun 28 09:10:47.245723 2018] [cgi:error] [pid 6471] [client 127.0.0.1:56488] AH01215: [Thu Jun 28 09:10:47 2018] edit: Use of uninitialized value $value in transliteration (tr///) at /var/www/twiki/lib/TWiki/Prefs/PrefsCache.pm line 257.: /var/www/twiki/bin/edit, referer:
http://localhost/do/login/LoraProject/TheNopLoRAWanStarterKit?t=1530169840;nowysiwyg=0;origurl=/do/edit/LoraProject/TheNopLoRAWanStarterKit%3ft%3d1530169840%3bnowysiwyg%3d0
After this error the wysiwyg editor does not start.
Uli
--
TWiki Guest - 2018-06-28
Discussion and Answer
Not sure why an undefined value is passed on to this function. Could you try to add this on line 257 of
lib/TWiki/Prefs/PrefsCache.pm just before
$value =~ tr/\r//d; :
$value = '' unless ( defined($value) );
--
Peter Thoeny - 2018-06-29
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.