Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The function _assets_get_icons() in asset.module uses scandir() to get all elements from ASSET_MODULE_PATH . '/ckeditor/buttons/' and then just checks for '.' and '..'. Having this in SVN control causes a weired "Read Error! ..." NOTICE, caused by using getimagesize() on the '.svn' directory.
Fix is simpel, exchange the
if (!in_array($file_name, array('.', '..'))) {
for
if (!is_dir($file_name)) {
Patch attached.
Comment | File | Size | Author |
---|---|---|---|
#3 | svn-folder-read-error-2193675-2.patch | 582 bytes | IRuslan |
#1 | icon_scan_directory_check-2193675-1.patch | 424 bytes | ChristianAdamski |
Comments
Comment #1
ChristianAdamski CreditAttribution: ChristianAdamski commentedComment #2
IRuslan CreditAttribution: IRuslan commentedSorry, but your patch not working, because is_dir() should have directory path, but not only folder name.
We solved this problem in another way. Thank you for your help.
Committed to dev branch.
Comment #3
IRuslan CreditAttribution: IRuslan commented