Problem with File Manager
Permalink
Hi. I need help with a problem I have with the File Manager in the latest version of Concrete5 (7.5.9) and that I never encountered in Concrete 5.6.
Every time I try to add an image or a file to a page with the Image Block, the Content Block or the File Block for example, I am taken to the File Manager. I then click "Upload Files" and pick the file I want to upload. I can see the progress bar. The file is uploaded. Only that it doesn't show up in the File Manager although it's uploaded.
I have to go back to the page i'm editing and add the block again. And when I am taken to the File Manager the second time, the file is there and I can choose it.
Does anyone have an idea on how to fix this?
Every time I try to add an image or a file to a page with the Image Block, the Content Block or the File Block for example, I am taken to the File Manager. I then click "Upload Files" and pick the file I want to upload. I can see the progress bar. The file is uploaded. Only that it doesn't show up in the File Manager although it's uploaded.
I have to go back to the page i'm editing and add the block again. And when I am taken to the File Manager the second time, the file is there and I can choose it.
Does anyone have an idea on how to fix this?
Thank's for your reply, but it's doesn't work. I mean there is no search query.
I also don't get the "Upload Complete" modal. Just the upload bar. When the Upload bar disappears, I am stuck in the File Manager, without being able to find the uploaded image or file.
If I click the "Search" button, I get a full page of stuff like this
{"items":[{"fID":53,"columns":[{"key":"fv.fvType","value":"JPEG"},{"key":"fv.fvTitle","value":"01.jpg"},{"key":"f.fDateAdded","value":"11\/19\/16, 8:23 AM"},{"key":"fv.fvDateAdded","value":"11\/19\/16, 8:23 AM"},{"key":"fv.fvSize","value":"38.22 KB"}],"canCopyFile":1,"canEditFileProperties":1,"canEditFilePermissions":1,"canDeleteFile":1,"canReplaceFile":1,"canEditFileContents":1,"canRead":1,"canViewFile":true,"canEditFile":true
I also don't get the "Upload Complete" modal. Just the upload bar. When the Upload bar disappears, I am stuck in the File Manager, without being able to find the uploaded image or file.
If I click the "Search" button, I get a full page of stuff like this
{"items":[{"fID":53,"columns":[{"key":"fv.fvType","value":"JPEG"},{"key":"fv.fvTitle","value":"01.jpg"},{"key":"f.fDateAdded","value":"11\/19\/16, 8:23 AM"},{"key":"fv.fvDateAdded","value":"11\/19\/16, 8:23 AM"},{"key":"fv.fvSize","value":"38.22 KB"}],"canCopyFile":1,"canEditFileProperties":1,"canEditFilePermissions":1,"canDeleteFile":1,"canReplaceFile":1,"canEditFileContents":1,"canRead":1,"canViewFile":true,"canEditFile":true
Do you have cache enabled and do it work if you toggle all cache off or vice versa if you have it off already.
Also if it's an option upgrade to a later version.
I've switched jobs since I had this issue and cant access the sites I've fixed a very similar issue, but will look if I've got it documented somewhere when I got home.
But if I remember correctly that got fixed in later versions.
Also if it's an option upgrade to a later version.
I've switched jobs since I had this issue and cant access the sites I've fixed a very similar issue, but will look if I've got it documented somewhere when I got home.
But if I remember correctly that got fixed in later versions.
No luck with reenabeling the cache. Still doesn't work.
As far as I know Concrete 5.7.5.9 is the latest stable update.
I have just tried the release candidate of version 8 on a local server environment and have the same issue.
I have also tried with Elemental, the preinstalled theme and there the file manager works fine. But as soon as I install my theme, it stops working. So the issue seems related to my theme but i have no idea why…
As far as I know Concrete 5.7.5.9 is the latest stable update.
I have just tried the release candidate of version 8 on a local server environment and have the same issue.
I have also tried with Elemental, the preinstalled theme and there the file manager works fine. But as soon as I install my theme, it stops working. So the issue seems related to my theme but i have no idea why…
That seems familiar, does the theme you're using provide its own jquery/bootstrap?
Could you post a snippet from your page_theme.php for the method "registerAssets(){...}" ?
Could you post a snippet from your page_theme.php for the method "registerAssets(){...}" ?
Yes, I provide jquery, bootstrap.js and bootstrap.css
<?php namespace Application\Theme\Steelrun; class PageTheme extends \Concrete\Core\Page\Theme\Theme { public function registerAssets() { $this->requireAsset('css', 'font-awesome'); $this->providesAsset('javascript', 'jquery'); $this->providesAsset('javascript', 'bootstrap/*'); $this->providesAsset('css', 'bootstrap/*'); } }
If you change the jQuery from provide to require:
$this->requireAsset('javascript', 'jquery');
And remove the include from your theme, does the filemanager work?
If it does, do you need your own jQuery version or does the one included in C5 work for you?
You can still get it to work with your own version but there're some files from C5 you need to include to make the file-manager work.
I'll have a look at which ones if you need another jQuery version than the one provided in C5.
$this->requireAsset('javascript', 'jquery');
And remove the include from your theme, does the filemanager work?
If it does, do you need your own jQuery version or does the one included in C5 work for you?
You can still get it to work with your own version but there're some files from C5 you need to include to make the file-manager work.
I'll have a look at which ones if you need another jQuery version than the one provided in C5.
Well… Thank's so much :)
The File Manager works like it should now and no, I don't need custom jquery.
At least not for this theme…
The File Manager works like it should now and no, I don't need custom jquery.
At least not for this theme…
Awesome, glad I could help.
If you need to do it in the future have a look athttp://documentation.concrete5.org/developers/designing-for-concret...
Good luck with the rest of your theme!
/T
If you need to do it in the future have a look athttp://documentation.concrete5.org/developers/designing-for-concret...
Good luck with the rest of your theme!
/T
Also a workaround when you get the "Upload Complete" modal, in the green status message there's a button "Choose file", that will select the file you've just uploaded.
If nothing of above works, if you just hit the "Search"-button, does that trigger an update so you can select your image?