NO BUG: Impossible to SIGN and SAVE a long SVG (1mb)

Browser: Chrome 110
OS: macOS

If I try to paste a svg (size ~1mb) I got the following response and the page never saves either the code is never signed

Object

abort: function(e)

always: function()

catch: function(e)

complete: function()

done: function()

error: function()

fail: function()

getAllResponseHeaders: function()

getResponseHeader: function(e)

overrideMimeType: function(e)

pipe: function()

progress: function()

promise: function(e)

readyState: 4

responseText: "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">↵<html><head>↵<title>413 Request Entity Too Large</title>↵</head><body>↵<h1>Reques…"

setRequestHeader: function(e,t)

state: function()

status: 413

statusCode: function(e)

statusText: "error"

success: function()

then: function(t,n,r)

action: "bricks_generate_code_signature"

bricks-is-builder: 1

element: "{\"id\":\"pxmxux\",\"name\":\"code\",\"parent\":\"drizon\",\"children\":[],\"settings\":{\"code\":\"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" width=\\\"1617\\…"

nonce: "0f92cec0c9"

postId: "8"

I’ve tried to maximise the php settings (time,size…) with no luck.

I’m using bricksforge panel animation too (is the only plugin installed)

I need to have inserted the SVG to animate it and create a very large animation (so I need the timeline from bricksforge)

Any ideas ?

Edit. disabling all plugins also don’t help

Hi Alvaro,
Thanks so much for your report!

Unfortunately, I cannot reproduce the problem without the SVG. I’m curious to see what the SVG contains. 1MB is pretty big for a vector-based format that should only contain a few lines of code.

Best regards,
timmse

Thanks for your answer, it’s a really big illustration with many layers and I cant share it.
Maybe I should make a support request?

Hey,
Of course, you can email us and attach the SVG (and a link to this thread) if you can’t or don’t want to share it publicly.

However, since this is the official support forum, you have literally already started a support request :smiley:

Cool! I’ve sent to you through private message, I hope that works.
Thanks!

Thanks for the file! However, I can’t find any problem, no matter how I add the SVG (as a file or as code).

Please send temporary login credentials and a link to this thread to help@bricksbuilder.io using the email address you used during the purchase.

Done,
Maybe it’s a server problem. I had maximised the php vars. Here is a report of the server:

`
### wp-core ###

version: 6.5.2
site_language: en_US
user_language: en_US
timezone: +00:00
permalink: undefined
https_status: true
multisite: false
user_registration: 0
blog_public: 0
default_comment_status: open
environment_type: production
user_count: 2
dotorg_communication: true

### wp-paths-sizes ###

wordpress_path: /var/www/vhosts/**/httpdocs
wordpress_size: 54.67 MB (57328054 bytes)
uploads_path: /var/www/vhosts/**/httpdocs/wp-content/uploads
uploads_size: 960.06 KB (983103 bytes)
themes_path: /var/www/vhosts/**/httpdocs/wp-content/themes
themes_size: 47.16 MB (49452847 bytes)
plugins_path: /var/www/vhosts/**/httpdocs/wp-content/plugins
plugins_size: 18.83 MB (19741167 bytes)
database_size: 2.19 MB (2293760 bytes)
total_size: 123.79 MB (129798931 bytes)

### wp-active-theme ###

name: Bricks Child Theme (bricks-child)
version: 1.1
author: Bricks
author_website: https://bricksbuilder.io/
parent_theme: Bricks (bricks)
theme_features: core-block-patterns, widgets-block-editor, automatic-feed-links, title-tag, html5, menus, post-thumbnails, align-wide, widgets
theme_path: /var/www/vhosts/**/httpdocs/wp-content/themes/bricks-child
auto_update: Disabled

### wp-parent-theme ###

name: Bricks (bricks)
version: 1.9.7.1
author: Bricks
author_website: https://bricksbuilder.io/
theme_path: /var/www/vhosts/**/httpdocs/wp-content/themes/bricks
auto_update: Disabled

### wp-themes-inactive (1) ###

Twenty Twenty-Four: version: 1.1, author: the WordPress team, Auto-updates disabled

### wp-plugins-inactive (1) ###

Bricksforge: version: 2.1.9, author: Bricksforge, Auto-updates disabled

### wp-media ###

image_editor: WP_Image_Editor_Imagick
imagick_module_version: 1692
imagemagick_version: ImageMagick 6.9.12-54 Q16 x86_64 17322 https://legacy.imagemagick.org
imagick_version: 3.7.0
file_uploads: 1
post_max_size: 8M
upload_max_filesize: 10M
max_effective_size: 8 MB
max_file_uploads: 20
imagick_limits: 
	imagick::RESOURCETYPE_AREA: 23 GB
	imagick::RESOURCETYPE_DISK: 9.2233720368548E+18
	imagick::RESOURCETYPE_FILE: 6144
	imagick::RESOURCETYPE_MAP: 23 GB
	imagick::RESOURCETYPE_MEMORY: 11 GB
	imagick::RESOURCETYPE_THREAD: 1
	imagick::RESOURCETYPE_TIME: 9.2233720368548E+18
imagemagick_file_formats: 3FR, 3G2, 3GP, A, AAI, AI, APNG, ART, ARW, AVI, AVS, B, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, C, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DNG, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX, FILE, FITS, FRACTAL, FTP, FTS, G, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, H, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JBG, JBIG, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, K, K25, KDC, LABEL, M, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, O, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PS, PS2, PS3, PSB, PSD, PTIF, PWP, R, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCREENSHOT, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIDEO, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, Y, YCbCr, YCbCrA, YUV
gd_version: bundled (2.1.0 compatible)
gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
ghostscript_version: not available

### wp-server ###

server_architecture: Linux 4.18.0-425.10.1.el8_7.x86_64 x86_64
httpd_software: Apache
php_version: 8.3.6 64bit
php_sapi: fpm-fcgi
max_input_variables: 1000
time_limit: 500
memory_limit: 250M
admin_memory_limit: 256M
max_input_time: 500
upload_max_filesize: 10M
php_post_max_size: 8M
curl_version: 7.61.1 OpenSSL/1.1.1k
suhosin: false
imagick_availability: true
pretty_permalinks: true
current: 2024-05-07T09:33:03+00:00
utc-time: Tuesday, 07-May-24 09:33:03 UTC
server-time: 2024-05-07T09:33:01+00:00

### wp-database ###

extension: mysqli
server_version: 10.6.15-MariaDB
client_version: mysqlnd 8.3.6
max_allowed_packet: 16777216
max_connections: 151

### wp-constants ###

WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /var/www/vhosts/**/httpdocs/wp-content
WP_PLUGIN_DIR: /var/www/vhosts/**/httpdocs/wp-content/plugins
WP_MEMORY_LIMIT: 40M
WP_MAX_MEMORY_LIMIT: 256M
WP_DEBUG: false
WP_DEBUG_DISPLAY: true
WP_DEBUG_LOG: false
SCRIPT_DEBUG: false
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_ENVIRONMENT_TYPE: Undefined
WP_DEVELOPMENT_MODE: undefined
DB_CHARSET: utf8
DB_COLLATE: undefined

### wp-filesystem ###

wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writable

`

pdt: access sent

Solved
Problem was with the configuration of the server. Somehow I can’t make it work with Apache after some tuning so I’ve to switch to nginx and now it’s working fine and fast.
Thanks and apologies

1 Like