Web Presence Builder Export Design not working: Invalid CSRF token has been provided

Created:

2016-11-16 12:52:38 UTC

Modified:

2017-04-24 11:31:54 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Web Presence Builder Export Design not working: Invalid CSRF token has been provided

Applicable to:

  • Web Presence Builder 12.0 for Linux
  • Web Presence Builder 12.0 for Windows
  • Web Presence Builder for Linux
  • Plesk 12.0 for Windows
  • Plesk 12.0 for Linux

Symptoms

When editing a site in Presence Builder and clicking the " Export Design " button, it does not export the design to a file. The following error is recorded to the ' %plesk_dir%\\admin\\logs\\plesklog_sitebuilder.log ' Presence Builder log:

SB_Exception: Invalid CSRF token has been provided. file: C:\\Program Files (x86)\\Parallels\\Plesk\\sb\\include\\SB\\Controller\\Plugins\\Sb\\CsrfProtect.php

OR on Linux in the ' /var/log/plesk/sitebuilder.log ' file:

SB_Exception: Invalid CSRF token has been provided.
file: /usr/local/sb/include/SB/Controller/Plugins/Sb/CsrfProtect.php

Cause

This behavior has been confirmed as a software issue with internal id #PPB-4407 . The fix will be included in future product updates.

Workaround

  1. Back up the following files:

    On Windows

    %plesk_dir%\\sb\\htdocs\\js\\minimized\\Editor.js
    %plesk_dir%\\sb\\htdocs\\js\\Sb\\editor\\StylePanel.js

    On Linux

    ls -l /usr/local/sb/htdocs/js/minimized/Editor.js 
    ls -l /usr/local/sb/htdocs/js/Sb/editor/StylePanel.js

    -rw-r--r-- 1 root root 744137 Dec 10 2014 /usr/local/sb/htdocs/js/minimized/Editor.js
    -rw-r--r-- 1 root root 18063 Dec 10 2014 /usr/local/sb/htdocs/js/Sb/editor/StylePanel.js
  2. Download this patch and unpack it to the %plesk_dir%\\sb\\ directory (on Linux /usr/local/sb/ ).

Have more questions? Submit a request
Please sign in to leave a comment.