Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Files & Images not matching what is actually in the assets/uploads folder


Reply


8 Posts   1467 Views

Avatar
Marlie511

Community Member, 36 Posts

9 April 2010 at 2:30am

I have a major problem with the files and images that appear in the silverstripe admin not matching what is actually in the folder. When using the "insert link" or "insert image" the drop down list takes up to a day to finally index anything that is newly added. It finally got to the point where is was not adding anything new so I had to clear out the "files" table and let it start new. After rebooting the server, flushing and doing a dev/build it won't show certain folders and files that it was showing before. Is there a limit set where it only shows so many?
I have subsites running, also, and I have many users who depend on this feature.

Any help would MUCH be appreciated!

Thanks!

Avatar
Marlie511

Community Member, 36 Posts

9 April 2010 at 4:05am

Also, since I deleted the Files table,
My file listings pages are jacked up. The files go below my template below the footer and it duplicates my navigation menu.
https://bag.canoncityschools.org/alcohol-anonymous-2/

Avatar
CodeGuerrilla

Community Member, 105 Posts

9 April 2010 at 7:07pm

Edited: 09/04/2010 7:07pm

Click on the 'Files & Images' tab this will index the assets folder I know its kind of quirky but works :)

Avatar
Marlie511

Community Member, 36 Posts

10 April 2010 at 1:40am

That used to work, but it just gives me a blank screen. Do you know if this is problem that will be fixed in the next release?

Avatar
Willr

Forum Moderator, 5513 Posts

11 April 2010 at 1:13pm

If you are using 2.4rc then the automatic filesystem sync has been turned off so you have to manually invoke this by clicking the 'Look for new Files' link next to the create folder button.

Avatar
Marlie511

Community Member, 36 Posts

13 April 2010 at 1:23am

Will,
We are on 2.3.6, and the problem is happening when I am in "Content"/"Main" and I go to insert a link by using the toolbar where I have the option to download a file and choose from the "File" drop menu.
My files and images have not been updated for more than a month. I have restarted the system, deleted the files table and let it rebuild (When it rebuilt, it was missing MORE files and folders than before), I have also tried going to the "Files & Images" because this used to refresh the list. (Now when I go to Files and Images, it gives me a blank screen.)

Any suggestions would be WONDERFUL!

Avatar
Marlie511

Community Member, 36 Posts

16 April 2010 at 4:54am

I was able to fix this problem by increasing apache memory.

Avatar
CodeGuerrilla

Community Member, 105 Posts

16 April 2010 at 11:20am

Glad you sorted it out, it didn't cross my mind there might have been a background error the blank page should have triggered that thought a good thing to do is in your sites _config.php put:

Director::set_environment_type('dev');

This will show you any errors, you can also add:

error_reporting(E_ALL);

If the other doesn't work just remember to take them back out for production servers :)