Jump to content

"This request was aborted because it appears to be forged." when saving plain html


root
 Share

Recommended Posts

If I try to save a html snippet into a field of type TextArea I get "This request was aborted because it appears to be forged.".

If I save the first or second half it works.

The snippet is:

<span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">):</span>
<span class="gp">... </span>        <span class="n">xxx</span><span class="o">.</span><span class="n">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">)</span>
<span class="gp">...</span>
<span class="gp">... </span>        <span class="bp">self</span><span class="o">.</span><span class="n">type</span> <span class="o">=</span> <span class="n">xxx</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span>
<span class="gp">... </span>        <span class="bp">self</span><span class="o">.</span><span class="n">serial_number</span> <span class="o">=</span> <span class="n">xxx</span><span class="p">(</span><span class="n">pattern</span><span class="o">=</span><span class="s">"[A-Z]{4}-[0-9]{4}"</span><span class="p">,</span> <span class="n">length</span><span class="o">=</span><span class="mi">9</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="s">"AAAA-0000"</span><span class="p">)</span>
<span class="gp">... </span>        <span class="bp">self</span><span class="o">.</span><span class="n">hardware_type</span> <span class="o">=</span> <span class="n">xxx</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span>

If I disable csrf protection ($config->protectCSRF = false;) the error is not thrown but the data is not saved silently - that's not better.

What's wrong here?

Regards,

Fred

Edited by LostKobrakai
Please do use the code blocks
Link to comment
Share on other sites

Does your server have mod_security turned on?

I only ask because sometimes with mod_sec on a certain number of instances of words like "init" and "*" as well as regular expressions can trip mod_sec rules I believe and that usually results in no visible error but no data saving.

If you do have mod_security enabled on your server, you could try turning it off temporarily and saving the data again.

I've run into this myself in the past but usually with words like "select" and "drop" so mod_security incorrectly things I'm trying to post SQL queries into an editor and hack the database. It can be a bit dumb like that at times :)

Link to comment
Share on other sites

Here come some new facts:

After a pause and a new login saving the snippet above suddenly works (WTF!?).

If I paste it three times the forgery error is raised again. 

If I paste it four times it is silently not saved.

It seems that really strange things happen here..

Any ideas?

Link to comment
Share on other sites

I know how to google.

If I do

$config->protectCSRF = false;
$config->sessionChallenge = false;
$config->sessionFingerprint = false;

in config.php the forgery error is not raised anymore.

If I paste the snippet five times, it is not saved.

Apache runs mpm-itk (this let's the server run with the owner's rights and everything is writable by the owner).

The save request (taken from chrome) is:

Request URL:http://localhost/processwire/page/edit/?id=1103
Request Method:POST
Status Code:200 OK
Request Headersview source
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3
Accept-Encoding:gzip,deflate,sdch
Accept-Language:de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4
Cache-Control:max-age=0
Connection:keep-alive
Content-Length:9968
Content-Type:multipart/form-data; boundary=----WebKitFormBoundarySvtVucL084tIokWm
Cookie:WireTabs=ProcessPageEditContent; wire_challenge=%2FUFLeKYB3Yg2V5pmQtBuumSlAex9y6R3; wire=2la0nemcm9lpgmtjcns18gnut1
Host:localhost
Origin:http://localhost
Referer:http://localhost/processwire/page/edit/?id=1103
User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.162 Safari/535.19
Query String Parametersview URL encoded
id:1103
Request Payload
------WebKitFormBoundarySvtVucL084tIokWm
Content-Disposition: form-data; name="title"

EEPROM-Inhalt
------WebKitFormBoundarySvtVucL084tIokWm
Content-Disposition: form-data; name="title__1019"

------WebKitFormBoundarySvtVucL084tIokWm
Content-Disposition: form-data; name="html"

<span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">):</span>
<span class="gp">... </span>        <span class="n">xxx</span><span class="o">.</span><span class="n">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">)</span>
<span class="gp">...</span>
<span class="gp">... </span>        <span class="bp">self</span><span class="o">.</span><span class="n">type</span> <span class="o">=</span> <span class="n">xxx</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span>
<span class="gp">... </span>        <span class="bp">self</span><span class="o">.</span><span class="n">serial_number</span> <span class="o">=</span> <span class="n">xxx</span><span class="p">(</span><span class="n">pattern</span><span class="o">=</span><span class="s">"[A-Z]{4}-[0-9]{4}"</span><span class="p">,</span> <span class="n">length</span><span class="o">=</span><span class="mi">9</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="s">"AAAA-0000"</span><span class="p">)</span>
<span class="gp">... </span>        <span class="bp">self</span><span class="o">.</span><span class="n">hardware_type</span> <span class="o">=</span> <span class="n">xxx</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span><span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">):</span>
<span class="gp">... </span>        <span class="n">xxx</span><span class="o">.</span><span class="n">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">)</span>
<span class="gp">...</span>
<span class="gp">... </span>        <span class="bp">self</span><span class="o">.</span><span class="n">type</span> <span class="o">=</span> <span class="n">xxx</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span>
<span class="gp">... </span>        <span class="bp">self</span><span class="o">.</span><span class="n">serial_number</span> <span class="o">=</span> <span class="n">xxx</span><span class="p">(</span><span class="n">pattern</span><span class="o">=</span><span class="s">"[A-Z]{4}-[0-9]{4}"</span><span class="p">,</span> <span class="n">length</span><span class="o">=</span><span class="mi">9</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="s">"AAAA-0000"</span><span class="p">)</span>
<span class="gp">... </span>        <span class="bp">self</span><span class="o">.</span><span class="n">hardware_type</span> <span class="o">=</span> <span class="n">xxx</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span><span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">):</span>
<span class="gp">... </span>        <span class="n">xxx</span><span class="o">.</span><span class="n">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">)</span>
<span class="gp">...</span>
<span class="gp">... </span>        <span class="bp">self</span><span class="o">.</span><span class="n">type</span> <span class="o">=</span> <span class="n">xxx</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span>
<span class="gp">... </span>        <span class="bp">self</span><span class="o">.</span><span class="n">serial_number</span> <span class="o">=</span> <span class="n">xxx</span><span class="p">(</span><span class="n">pattern</span><span class="o">=</span><span class="s">"[A-Z]{4}-[0-9]{4}"</span><span class="p">,</span> <span class="n">length</span><span class="o">=</span><span class="mi">9</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="s">"AAAA-0000"</span><span class="p">)</span>
<span class="gp">... </span>        <span class="bp">self</span><span class="o">.</span><span class="n">hardware_type</span> <span class="o">=</span> <span class="n">xxx</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span><span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">):</span>
<span class="gp">... </span>        <span class="n">xxx</span><span class="o">.</span><span class="n">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">)</span>
<span class="gp">...</span>
<span class="gp">... </span>        <span class="bp">self</span><span class="o">.</span><span class="n">type</span> <span class="o">=</span> <span class="n">xxx</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span>
<span class="gp">... </span>        <span class="bp">self</span><span class="o">.</span><span class="n">serial_number</span> <span class="o">=</span> <span class="n">xxx</span><span class="p">(</span><span class="n">pattern</span><span class="o">=</span><span class="s">"[A-Z]{4}-[0-9]{4}"</span><span class="p">,</span> <span class="n">length</span><span class="o">=</span><span class="mi">9</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="s">"AAAA-0000"</span><span class="p">)</span>
<span class="gp">... </span>        <span class="bp">self</span><span class="o">.</span><span class="n">hardware_type</span> <span class="o">=</span> <span class="n">xxx</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span><span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">):</span>
<span class="gp">... </span>        <span class="n">xxx</span><span class="o">.</span><span class="n">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">)</span>
<span class="gp">...</span>
<span class="gp">... </span>        <span class="bp">self</span><span class="o">.</span><span class="n">type</span> <span class="o">=</span> <span class="n">xxx</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span>
<span class="gp">... </span>        <span class="bp">self</span><span class="o">.</span><span class="n">serial_number</span> <span class="o">=</span> <span class="n">xxx</span><span class="p">(</span><span class="n">pattern</span><span class="o">=</span><span class="s">"[A-Z]{4}-[0-9]{4}"</span><span class="p">,</span> <span class="n">length</span><span class="o">=</span><span class="mi">9</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="s">"AAAA-0000"</span><span class="p">)</span>
<span class="gp">... </span>        <span class="bp">self</span><span class="o">.</span><span class="n">hardware_type</span> <span class="o">=</span> <span class="n">xxx</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span>
------WebKitFormBoundarySvtVucL084tIokWm
Content-Disposition: form-data; name="html__1019"

------WebKitFormBoundarySvtVucL084tIokWm
Content-Disposition: form-data; name="sortfield"

------WebKitFormBoundarySvtVucL084tIokWm
Content-Disposition: form-data; name="_pw_page_name"

e1
------WebKitFormBoundarySvtVucL084tIokWm
Content-Disposition: form-data; name="_pw_page_name1019"

e1
------WebKitFormBoundarySvtVucL084tIokWm
Content-Disposition: form-data; name="status1019"

1
------WebKitFormBoundarySvtVucL084tIokWm
Content-Disposition: form-data; name="template"

54
------WebKitFormBoundarySvtVucL084tIokWm
Content-Disposition: form-data; name="parent_id"

1047
------WebKitFormBoundarySvtVucL084tIokWm
Content-Disposition: form-data; name="submit_save"

Save
------WebKitFormBoundarySvtVucL084tIokWm
Content-Disposition: form-data; name="id"

1103
------WebKitFormBoundarySvtVucL084tIokWm
Content-Disposition: form-data; name="TOKEN869817969X1435614964"

28H9P23GGIdO9xXpEs8eSlPFCuq3EpeW
------WebKitFormBoundarySvtVucL084tIokWm--
Response Headersview source
Accept-Ranges:bytes
Cache-Control:no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection:Keep-Alive
Content-Type:text/html; charset=utf-8
Date:Mon, 29 Jun 2015 22:01:33 GMT
Expires:Thu, 19 Nov 1981 08:52:00 GMT
Keep-Alive:timeout=5, max=100
Pragma:no-cache
Server:Apache/2.4.10 (Ubuntu)
Transfer-Encoding:chunked
X-Frame-Options:SAMEORIGIN 

This one with less text works:

Request URL:http://hilster-new.localhost/processwire/page/edit/?id=1103
Request Method:POST
Status Code:301 Moved Permanently
Request Headersview source
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3
Accept-Encoding:gzip,deflate,sdch
Accept-Language:de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4
Cache-Control:max-age=0
Connection:keep-alive
Content-Length:3092
Content-Type:multipart/form-data; boundary=----WebKitFormBoundaryljE1A6EtUdKVUIAW
Cookie:WireTabs=ProcessPageEditContent; wire_challenge=%2FUFLeKYB3Yg2V5pmQtBuumSlAex9y6R3; wire=2la0nemcm9lpgmtjcns18gnut1
Host:hilster-new.localhost
Origin:http://hilster-new.localhost
Referer:http://hilster-new.localhost/processwire/page/edit/?id=1103
User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.162 Safari/535.19
Query String Parametersview URL encoded
id:1103
Request Payload
------WebKitFormBoundaryljE1A6EtUdKVUIAW
Content-Disposition: form-data; name="title"

EEPROM-Inhalt
------WebKitFormBoundaryljE1A6EtUdKVUIAW
Content-Disposition: form-data; name="title__1019"

------WebKitFormBoundaryljE1A6EtUdKVUIAW
Content-Disposition: form-data; name="html"

<span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">):</span>
<span class="gp">... </span>        <span class="n">xxx</span><span class="o">.</span><span class="n">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">)</span>
<span class="gp">...</span>
<span class="gp">... </span>        <span class="bp">self</span><span class="o">.</span><span class="n">type</span> <span class="o">=</span> <span class="n">xxx</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span>
<span class="gp">... </span>        <span class="bp">self</span><span class="o">.</span><span class="n">serial_number</span> <span class="o">=</span> <span class="n">xxx</span><span class="p">(</span><span class="n">pattern</span><span class="o">=</span><span class="s">"[A-Z]{4}-[0-9]{4}"</span><span class="p">,</span> <span class="n">length</span><span class="o">=</span><span class="mi">9</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="s">"AAAA-0000"</span><span class="p">)</span>
<span class="gp">... </span>        <span class="bp">self</span><span class="o">.</span><span class="n">hardware_type</span> <span class="o">=</span> <span class="n">xxx</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span>
------WebKitFormBoundaryljE1A6EtUdKVUIAW
Content-Disposition: form-data; name="html__1019"

------WebKitFormBoundaryljE1A6EtUdKVUIAW
Content-Disposition: form-data; name="sortfield"

------WebKitFormBoundaryljE1A6EtUdKVUIAW
Content-Disposition: form-data; name="_pw_page_name"

e1
------WebKitFormBoundaryljE1A6EtUdKVUIAW
Content-Disposition: form-data; name="_pw_page_name1019"

e1
------WebKitFormBoundaryljE1A6EtUdKVUIAW
Content-Disposition: form-data; name="status1019"

1
------WebKitFormBoundaryljE1A6EtUdKVUIAW
Content-Disposition: form-data; name="template"

54
------WebKitFormBoundaryljE1A6EtUdKVUIAW
Content-Disposition: form-data; name="parent_id"

1047
------WebKitFormBoundaryljE1A6EtUdKVUIAW
Content-Disposition: form-data; name="submit_save"

Save
------WebKitFormBoundaryljE1A6EtUdKVUIAW
Content-Disposition: form-data; name="id"

1103
------WebKitFormBoundaryljE1A6EtUdKVUIAW
Content-Disposition: form-data; name="TOKEN869817969X1435614964"

28H9P23GGIdO9xXpEs8eSlPFCuq3EpeW
------WebKitFormBoundaryljE1A6EtUdKVUIAW--
Response Headersview source
Accept-Ranges:bytes
Cache-Control:no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection:Keep-Alive
Content-Length:0
Content-Type:text/html; charset=utf-8
Date:Mon, 29 Jun 2015 22:06:15 GMT
Expires:Thu, 19 Nov 1981 08:52:00 GMT
Keep-Alive:timeout=5, max=100
Location:./?id=1103&s=1
Pragma:no-cache
Server:Apache/2.4.10 (Ubuntu)
X-Frame-Options:SAMEORIGIN

The status code differs.

Any other constructive ideas?

Link to comment
Share on other sites

There seems to be something else interfering with your textarea field. I just tried to duplicate, both with 32768 random bytes in a textarea, and with your exact markup posted. But no problems saving either. There are no length limitations imposed on textarea fields, unless used without a Fieldtype (like in FormBuilder, or in other non-Page Inputfield forms). In what context are you using the textarea field (if not just a regular page field), what input type are you using with it (if not regular textarea), and what settings have you configured with it, on both "details" and "input" tabs? Though you may want to look at the following first:

The "forged" error, as well as silent data loss seems to suggest that the data is getting truncated before PHP gets access to it. Given that you have silent data loss, the forged error is most likely occurring because the CSRF token is not even getting sent (perhaps due to the entire post request getting truncated). I would look at your PHP settings like post_max_size, as well as max_input_vars, to make sure you aren't hitting up against those. From the sounds of it, you are hitting up against a configured maximum in PHP or Apache. 

Link to comment
Share on other sites

Hello Ryan,

thank you for that answer.

root@hal9000:/etc/php5# grep -R post_max_size
apache2filter/php.ini:post_max_size = 8M
root@hal9000:/etc/php5# grep -R max_input_vars
apache2filter/php.ini:; max_input_vars = 1000

The apache settings look good. `max_input_vars` is not set explicitly and I guess it's unlimited.

I made a template called "examples" which consists of two fields: title and html.

The title field is the default one.

html is of Type: TextareaLanguage, Inputfield Type: TextArea, Content-Type: Unknown, No Text Formatter.

The template is used as a page table but the error also occurs if I use it the normal way.

I just changed it to a non-translated field - same problem.

In my other threads I had similar problems that may all be related to this one.

How can I go on?

Regards,

Fred

Link to comment
Share on other sites

I added a debug line to index.php .

print_r($_POST);

try { ...

Working:

Array
(
    [title] => test
    [title__1019] => 
    [html] => xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx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xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    [html__1019] => 
    [sortfield] => 
    [_pw_page_name] => test
    [_pw_page_name1019] => test
    [status1019] => 1
    [template] => 54
    [parent_id] => 1
    [status] => Array
        (
            [0] => 2048
        )

    [submit_save] => Save + Keep Unpublished
    [id] => 1105
    [TOKEN1886310097X1435615925] => 8PCeoEZxVBD2Dmn6x68n3QnKNDGp/m8Y
)

Not working:

Array
(
    [title] => test
    [title__1019] => 
    [html] => xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx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xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
)

The post request is definitely truncated and the token is missing which leads to the forgery error.

But where is it truncated?

Link to comment
Share on other sites

Might be worth explicitly setting max_input_vars to something really high (make it 10000) and not trusting the fact that it's not set according to this: http://stackoverflow.com/questions/10638075/max-input-vars-set-even-if-commented-in-php-ini

And yes, fingers crossed this or something like it fixes all your issues in one go :)

Link to comment
Share on other sites

Here come some good news:

On my webserver everything works like expected. So this seems to be an Ubuntu 15.04 related issue. So Processwire does not seem to be affected.

Anyway. Does anybody has another idea how the $_POST data could be truncated this way?

I also realized that I cannot upload images on my development maschine.

Link to comment
Share on other sites

I found it:

It seems that on Ubuntu 15.04 (and maybe older versions) the newly shipped libapache2-mod-php5filter module somehow truncates the $_POST data.

I removed it and installed libapache2-mod-php5.

Now it works again.

THAT IS NOT COOL, UBUNTU!  >:D

If you have the same problem, run (as root):

apt-get remove libapache2-mod-php5filter

libapache2-mod-php5 will be installed automatically.

Thank you for your help. 

Regards,

Fred

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...