View Issue Details

IDProjectCategoryView StatusLast Update
0000428WackoWikieditingpublic2014-03-18 11:09
Reporterjaba Assigned To 
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionduplicate 
PlatformNginxOSLinuxOS VersionCentos 6
Product Version5.1.0 
Summary0000428: Lost content on editing
DescriptionHello!

When I create a page and example paste like 100+ and more lines from notepad++, I can edit,save it fine. When I view page, it have all text fine. Except, when I try reopen page again for editing, then it shows editor blank. (Can`t edit previously saved page) It happens only with bulk of text copied and saved on editor.
Steps To Reproduce1) Create page
2) Copy a bulk of text on editor like 130+ lines
3) Save page
4) Reopen it again for editing
Additional InformationInstalled on:
mysql-5.5.27
php-5.4.7 (php-fpm)
nginx-1.3.6
TagsNo tags attached.

Relationships

related to 0000181 resolvedadministrator Formatter fails under some circumstances and produces a blank page 
related to 0000286 acknowledged "laquo" => 1 and "quotes" => 1, causes in some cases the Formatter to fail 
related to 0000422 resolvedadministrator patch for htmlspecialchars(), htmlentities(), html_entity_decode() 

Activities

jaba

2012-09-27 07:33

reporter   ~0000863

I changed to:
'laquo' => 0, // angle quotes
'quotes' => 0, // English quotes

Tried also with values "1"
No results anyway

administrator

2012-10-08 03:48

administrator   ~0000865

Last edited: 2012-10-08 03:52

Some Formatter fails. There are a couple of possible sources.
Charset
PHP 5.4 plus htmlspecialchars
UTF-8 encoding
Database: body, body_r
... (?)


save_page function ...

    // preformatter (macros and such)
    $body = $this->format($body, 'pre_wacko');

    // making page body components
    $body_r = $this->format($body, 'wacko');

    if ($this->config['paragrafica'] && !$comment_on_id)
    {
        $body_r = $this->format($body_r, 'paragrafica');
        $body_toc = $this->body_toc;
    }

show handler ...

    // recompile if necessary
    if (($this->page['body_r'] == '') ||
    (($this->page['body_toc'] == '') && $this->config['paragrafica']))
    {
        // build html body
        $this->page['body_r'] = $this->format($this->page['body'], 'wacko');

        // build toc
        if ($this->config['paragrafica'])
        {
            $this->page['body_r'] = $this->format($this->page['body_r'], 'paragrafica');
            $this->page['body_toc'] = $this->body_toc;
        }
...
    // display page body
    $data = $this->format($this->page['body_r'], 'post_wacko', array('bad' => 'good'));
    $data = $this->numerate_toc( $data ); // numerate toc if needed
    echo $data;


Then we must go through all formatters like wacko, paragrafica, post_wacko.
SOLUTION?

jaba

2012-10-08 19:54

reporter   ~0000867

Can we implement http://www.tinymce.com/ ? I think ready good, solution would be better and wacko wiki would still be good.

varaha

2012-10-19 07:46

reporter   ~0000868

Last edited: 2012-10-19 08:04

php-5.4.7 - that is key

See please my ticker 0000422

> Except, when I try reopen page again for editing, then it shows editor blank.
This is just reason of my work with my patch. But

administrator

2014-03-18 11:09

administrator   ~0000915

please see 0000422

Issue History

Date Modified Username Field Change
2012-09-26 20:57 jaba New Issue
2012-09-27 04:56 administrator Relationship added related to 0000181
2012-09-27 05:01 administrator Relationship added related to 0000286
2012-09-27 07:33 jaba Note Added: 0000863
2012-10-08 03:48 administrator Note Added: 0000865
2012-10-08 03:49 administrator Status new => acknowledged
2012-10-08 03:52 administrator Note Edited: 0000865
2012-10-08 19:54 jaba Note Added: 0000867
2012-10-19 07:46 varaha Note Added: 0000868
2012-10-19 08:04 administrator Relationship added related to 0000422
2012-10-19 08:04 administrator Note Edited: 0000868
2014-03-18 11:09 administrator Note Added: 0000915
2014-03-18 11:09 administrator Status acknowledged => closed
2014-03-18 11:09 administrator Resolution open => duplicate