πŸ‡ͺπŸ‡ΈSpain @Sistemas SUMADOS

Account created on 21 February 2019, over 5 years ago
#

Recent comments

πŸ‡ͺπŸ‡ΈSpain Sistemas SUMADOS

Add more description to fields: "If you leave them empty no password is applied."

πŸ‡ͺπŸ‡ΈSpain Sistemas SUMADOS

#2 and # 3 works for me.

Drupal: 9.5.7
PHP: 8.1
MySQL: 5.7
entity_print: 8.x-2.11
webform: 6.1.4

πŸ‡ͺπŸ‡ΈSpain Sistemas SUMADOS

Similar problem with OVH hosting. It is required the user-agent. All the files exists and are accesible vΓ­a browser but DomPDF can't access them.

Drupal LOG:

Error generating document: 
Failed to generate PDF: 

file_get_contents(https://<DOMAIN>/sites/default/files/css/css_Swr_hRAtW0jSHWbyenAiqMecy20dpgniBv9v4K6Y6zY.css): Failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden , Unable to load css file https://<DOMAIN>/sites/default/files/css/css_Swr_hRAtW0jSHWbyenAiqMecy20dpgniBv9v4K6Y6zY.css,

file_get_contents(https://<DOMAIN>/sites/default/files/pdf_imagenes/Cabecera_PDF_SC_SUMADOS.png): Failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden , Image not found /sites/default/files/pdf_imagenes/Cabecera_PDF_SC_SUMADOS.png,

file_get_contents(https://<DOMAIN>/system/files/webform/<IMAGE_PATH>): Failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden , Image not found https://<DOMAIN>/system/files/webform/<IMAGE_PATH>

Hosting LOG:

CSS:

[Wed Mar 08 16:23:37 2023] [error] [client <IP_ADDRES>] ModSecurity: Access denied with code 403 (phase 2). Operator EQ matched 0 at REQUEST_HEADERS. [file "/usr/local/apache2/conf/modsecurity/base_rules/modsecurity_crs_21_protocol_anomalies.conf"] [line "65"] [id "960009"] [rev "2.1.1"] [msg "Request Missing a User Agent Header"] [severity "NOTICE"] [tag "PROTOCOL_VIOLATION/MISSING_HEADER_UA"] [tag "WASCTC/WASC-21"] [tag "OWASP_TOP_10/A7"] [tag "PCI/6.5.10"] [hostname "<DOMAIN>"] [uri "/sites/default/files/css/css_Swr_hRAtW0jSHWbyenAiqMecy20dpgniBv9v4K6Y6zY.css"] [unique_id "ZAioeYUtHj9div7cW2O1CgAAAEo"]

IMAGE:

[Wed Mar 08 16:23:37 2023] [error] [client <IP_ADDRES>] ModSecurity: Access denied with code 403 (phase 2). Operator EQ matched 0 at REQUEST_HEADERS. [file "/usr/local/apache2/conf/modsecurity/base_rules/modsecurity_crs_21_protocol_anomalies.conf"] [line "65"] [id "960009"] [rev "2.1.1"] [msg "Request Missing a User Agent Header"] [severity "NOTICE"] [tag "PROTOCOL_VIOLATION/MISSING_HEADER_UA"] [tag "WASCTC/WASC-21"] [tag "OWASP_TOP_10/A7"] [tag "PCI/6.5.10"] [hostname "<DOMAIN>"] [uri "/sites/default/files/pdf_imagenes/Cabecera_PDF_SC_SUMADOS.png"] [unique_id "ZAioeYUtHj9div7cW2O1CwAAAFQ"]

Production build 0.69.0 2024