Account created on 3 January 2024, 6 months ago
#

Recent comments

This module is working as intended. I added lorem ipsum text of almost 12,000 characters and the page saves.

I found a new problem - the page has one external and one internal link. Adding an additional link causes the edit tab to reload and not save the change. Hmm?

Sorry for the confusion.

curl -I domain-name.com  If force redirect to https is enabled, prepend with https://  Or use wget -S domain-name.com

Environment: D10.2.3; PHP 8.2.15; MaxLength 3.0.0-beta1. This was a new installation of D10 last August. Added a new page (node) and reached a character limit and upon Save the Edit tab reloads without additional text. I tried increasing PHP memory from 128M to 256M and in Settings - not the problem I'm having but found and added the two lines with 2 changed to 6:
/**
* If you encounter a situation where users post a large amount of text, and
* the result is stripped out upon viewing but can still be edited, Drupal's
* output filter may not have sufficient memory to process it. If you
* experience this issue, you may wish to uncomment the following two lines
* and increase the limits of these variables. For more information, see
* http://php.net/manual/pcre.configuration.php.
*/
# ini_set('pcre.backtrack_limit', 200000);
# ini_set('pcre.recursion_limit', 200000);

ini_set('pcre.backtrack_limit', 600000);
ini_set('pcre.recursion_limit', 600000);

Neither of the above changes worked. I copied the text from edit window into Office doc. Character count is 3,031 and adding another sentence the change is not saved. So I installed MaxLength 3.0.0-beta1 and in /structure/types/manage/page/form-display I added and saved 10000 as the Body character limit. Adding an additional sentence with 6914 characters remaining, same result, Edit tab reloads with the additional sentence missing.

I'm using Drupal 10.2.0 and Webform 6.2.0 and went to export the results of people who registered for an event. Tried downloading CSV and HTML Table and get the Website encountered error. Noticed the box to install Webform xlsx export module, so installed and same result. I then checked the error_log in root directory.
[03-Jan-2024 01:06:46 UTC] Symfony\Component\Mime\Exception\LogicException: Unable to guess the MIME type as no guessers are available (have you enabled the php_fileinfo extension?). in /home/troopcor/public_html/vendor/symfony/mime/MimeTypes.php on line 129 #0 /home/troopcor/public_html/vendor/symfony/http-foundation/File/File.php(77): Symfony\Component\Mime\MimeTypes->guessMimeType()
#1 /home/troopcor/public_html/vendor/symfony/http-foundation/BinaryFileResponse.php(191): Symfony\Component\HttpFoundation\File\File->getMimeType()
#2 /home/troopcor/public_html/core/lib/Drupal/Core/DrupalKernel.php(715): Symfony\Component\HttpFoundation\BinaryFileResponse->prepare()
#3 /home/troopcor/public_html/index.php(19): Drupal\Core\DrupalKernel->handle()
#4 {main}

Downloading to XLSX after installing xlsx export module:
[03-Jan-2024 01:14:50 UTC] Uncaught PHP Exception Error: "Class "PhpOffice\PhpSpreadsheet\Spreadsheet" not found" at /home/troopcor/public_html/modules/webform_xlsx_export/src/Plugin/WebformExporter/XlsxExporter.php line 43

I noticed it said: (have you enabled the php_fileinfo extension?). I logged into cPanel and enabled fileinfo.

Lines 1-9 of XlsxExporter.php
<?php

namespace Drupal\webform_xlsx_export\Plugin\WebformExporter;

use PhpOffice\PhpSpreadsheet\Cell\StringValueBinder;
use PhpOffice\PhpSpreadsheet\IOFactory;
use Drupal\webform\Plugin\WebformExporter\TabularBaseWebformExporter;
use Drupal\webform\WebformSubmissionInterface;
use PhpOffice\PhpSpreadsheet\Spreadsheet;

Lines 39-44
/**
* {@inheritdoc}
*/
public function createExport() {
$this->xls = new Spreadsheet();
}

Production build 0.69.0 2024