After upgrading Drupal core to 7.91 in certain cases I got four warnings

Open ckeditor, then using the toolbar try to insert an image. Choose "Search on the server" and in the navigation panel choose "Root". Then upload an image

I got the following warnings in the following order

  • </code>Warning: filesize(): stat failed for public://private in imce_scan_directory() (linea 999 di /web/htdocs/www.carloforte.info/home/sites/all/modules/imce/inc/imce.page.inc).
  • </code>Warning: filemtime(): stat failed for public://private in imce_scan_directory() (linea 1000 di /web/htdocs/www.carloforte.info/home/sites/all/modules/imce/inc/imce.page.inc).
  • </code>Warning: date_timezone_set() expects parameter 1 to be DateTime, bool given in format_date() (linea 2089 di /web/htdocs/www.carloforte.info/home/includes/common.inc).
  • Warning: date_format() expects parameter 1 to be DateTimeInterface, bool given in format_date() (linea 2099 di /web/htdocs/www.carloforte.info/home/includes/common.inc).

If I choose a folder (not root) there are no warnings.

Comments

pietrocap created an issue. See original summary.

fortran77’s picture

A private directory inside the public directory is no longer supported:

https://www.drupal.org/project/drupal/releases/7.91
https://www.drupal.org/node/3298661

  • ufku committed df9c927 on 7.x-1.x
    Issue #3302806: Fixed warnings caused by SA-CORE-2022-012
    
ufku’s picture

Version: 7.x-1.11 » 7.x-1.x-dev
Priority: Critical » Normal
Status: Active » Fixed

Fixed the warnings but you still need to enable
$settings['sa_core_2022_012_override'] = TRUE;
in order to make private files directory available under public scheme

  • ufku committed 0ab125f on 8.x-2.x
    * Issue #3302806: Fixed warnings caused by SA-CORE-2022-012
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.