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

Image inserter, doesn't update its preview pane with just uploaded file thumnails???


Reply


4 Posts   1065 Views

Avatar
TF-35Lightning

Community Member, 137 Posts

15 March 2010 at 6:07pm

Hi all,
I upload my images via Files & Images, they successfully upload.

Then when I'm in Site Content section and are editing a a page and go to insert image, the insert image component shows in the right side of the screen but it only ever has 1 image in there, that being the Silver Stripe blue symbol.

Now if I type my just uploaded file name in at the search box the thumbnail of my uploaded image now appears and I can insert.

Obviously I don't want to have to be search every time I upload an image just wondering if anyone out there can tell me how to fix this issue and get those thumbnail to immediately show up

I am on a clean install of WAMP, (have the rewrite_module ticked)

and have also tried this suggestion:

http://www.silverstripe.org/archive/show/145873?start=16#post172052.

They mentioned that you need to edit Folder.php (found in sapphire/filesystem) and add the line in next to >>>

if(file_exists($tmpFile['tmp_name']) && copy($tmpFile['tmp_name'], "$base/$file")) {
// Update with the new image

>>> chmod("$base/$file", 0755);

return $this->constructChild(basename($file));

I've done that and still the same issue. Have also tried clearning my cache, and restarting the WAMP server.

Any help would be great

Avatar
TF-35Lightning

Community Member, 137 Posts

15 March 2010 at 7:29pm

also notice other users has the same issue here, but again no one has helped.

There are not image display when i insert image ! Link to this post
http://silverstripe.org/general-questions/show/258360#post258360

I can't insert image ! Help me Link to this post
http://silverstripe.org/customising-the-cms/show/274852#post274852

Avatar
Willr

Forum Moderator, 5513 Posts

16 March 2010 at 11:48am

Are you uploading the image into a subfolder? or the base assets/ folder.

Are you on 2.3/ or 2.4. If you are on 2.3 then try quickly 2.4 and see if the error is still occurring. Recently some changes have gone into that side bar in 2.4 so that could either be the cause or the solution!.

Then the other usual things to double check - make sure assets/ is read/writable by the webserver so that the thumbs can be generated.

If you can still reproduce the issue on 2.4 then it might be wise to make a ticket on http://open.silverstripe.org

Avatar
TF-35Lightning

Community Member, 137 Posts

16 March 2010 at 3:24pm

Thanks Will your a bloody legend, 2.4 appears to have fixed the image refresh issue.

This is the first time I will be using Silver Stripe in a project, I have a pre-existing basic webpage that was built in dreamweaver which utilizes some JavaScript for some roll over actions in the nav. I'm only just realizing that if I want to use Silver Stripe as a CMS that I guess I need to copy and paste in the websites content into the Silver Stripe CMS and customise a template etc is that right???. I initally thought that SS might be able to edit my pre-existing html pages. I'm now seeing that that is incorrect is that right?

How will I go about working with the javascript in the nav etc?

Thanks for the help