checkWriteableDirectory error

Created on 31 January 2023, over 1 year ago

Problem/Motivation

Imposible configurate ics field. I'm getting error:
Cannot create folder for ics files ...
But Drupal create the folder.

Steps to reproduce

Install module ics_field
Create date field in a content type
Create ics field in the sambe content type
Associate ics field with date field then get error

Proposed resolution

The problem is in the checkWriteableDirectory function:

if ($this->filesystem->prepareDirectory($uploadLocation, FileSystemInterface::CREATE_DIRECTORY)) {
      $formState->setError($element,
                           $this->t('Cannot create folder for ics files [@upload_location]',
                                    ['@upload_location' => $uploadLocation]));

Has to be:
if (!$this

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain manuga

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024