Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Error after renaming a CSS file in the file manager #8624

Closed
lionel-m opened this issue Jan 17, 2017 · 4 comments
Closed

Error after renaming a CSS file in the file manager #8624

lionel-m opened this issue Jan 17, 2017 · 4 comments
Assignees
Labels
Milestone

Comments

@lionel-m
Copy link

lionel-m commented Jan 17, 2017

After renaming a CSS file in the file manager (Edit file or folder), the error below was displayed. Nevertheless the change was executed correctly.

Contao v3.5.23
Local -> MAMP

Warning: file_get_contents(/Applications/MAMP/htdocs/***/files/***/css/base2.css): failed to open stream: No such file or directory in system/modules/core/library/Contao/File.php on line 632

#0 [internal function]: __error(2, 'file_get_conten...', '/Applications/M...', 632, Array)
#1 system/modules/core/library/Contao/File.php(632): file_get_contents('/Applications/M...')
#2 system/modules/core/classes/Versions.php(176): Contao\File->getContent()
#3 system/modules/core/drivers/DC_Folder.php(1301): Contao\Versions->create()
#4 system/modules/core/classes/Backend.php(650): Contao\DC_Folder->edit()
#5 system/modules/core/controllers/BackendMain.php(131): Contao\Backend->getBackendModule('files')
#6 contao/main.php(20): Contao\BackendMain->run()
#7 {main}


Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/***/system/helper/functions.php:65) in system/modules/core/library/Contao/System.php on line 574

#0 [internal function]: __error(2, 'Cannot modify h...', '/Applications/M...', 574, Array)
#1 system/modules/core/library/Contao/System.php(574): setcookie('BE_PAGE_OFFSET', '0', 0, '/***', '', false, false)
#2 system/modules/core/drivers/DC_Folder.php(1334): Contao\System::setCookie('BE_PAGE_OFFSET', 0, 0)
#3 system/modules/core/classes/Backend.php(650): Contao\DC_Folder->edit()
#4 system/modules/core/controllers/BackendMain.php(131): Contao\Backend->getBackendModule('files')
#5 contao/main.php(20): Contao\BackendMain->run()
#6 {main}

@leofeyer leofeyer added this to the 3.5.23 milestone Jan 17, 2017
@leofeyer
Copy link
Member

Interestingly this only happens upon the first renaming attempt. After that, I can rename the file without any problems. Can you confirm this?

@leofeyer leofeyer modified the milestones: 3.5.24, 3.5.23 Jan 17, 2017
@lionel-m
Copy link
Author

After that, I can rename the file without any problems.

Yes this is also the case for me

@leofeyer
Copy link
Member

And now I cannot reproduce the issue anymore. 🤔

@leofeyer
Copy link
Member

leofeyer commented Jan 18, 2017

Fixed in 62ad16f.

jsonn pushed a commit to jsonn/pkgsrc that referenced this issue Jan 20, 2017
 * Correctly handle nested public folders when symlinking a folder.
 * Correctly handle SVGZ files in the file manager (see contao/core#8624).
 * Prevent an endless redirect loop if the page alias is "/" (see contao/core#8560).
 * Correctly parse German dates with two digit years in MooTools (see contao/core#8593).
 * Correctly add new resources to the user/group permissions (see contao/core#8583).
 * Trigger the auto-submit function in the date picker (see contao/core#8603).
 * Call the load callback when loading page/file picker nodes (see contao/core#7702).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants