I think I might have completely screwed up my project. I was following a video on the image cropper and I changed the the media type, where I upload images to a new one called Cropper. Then the homepage fell over, so I thought to go back to where it was working. I changed it back to Media Picker. Now I can't upload a new image and when I look in Media all the images are greyed out and named. They are visible in Web Matrix though and the site (unpublished - phew!) still works. It works as a finished product which isn't exactly what I need - it's a kind of news site.
Any ideas - I do have a back up though it's not completely up to date.... AGH!
Are you using CE SQL or are you running MSSQL? If you're using CE SQL then it's pretty easy to do a copy of the site, which you can then try to fix the problem on.
But the important thing is that you don't publish anything or republish the site until you know what is going on, since the working site is cached in the /App_Data/umbraco.config - And the images do probably also still exist in the /media/ folder.
Once you have done your backup I think you should try to convert back to using the image cropper hit the save button on each image in the "media" section in order to have it work again. And you probably also should try to save and publish the nodes in the "content" section where they're referred from. Just try it out on a few images to see if it's working.
I'm using the CE SQL. I had a copy of the site from earlier, so it was a few days behind. I opened it on my laptop and it started displaying a post I only published this morning. But it couldn't, yet it did! Weird. If I have a look at the Media folder on the desktop I can look in and see all the images there - they do still show on the site. But I can't upload new ones now. I go into Content and hit image and the Media screen pops out from the right hand side - where all the images have the greyed out mountain range. Any new images I upload get the same treatment and then only their name displays on the site. No code has been changed on the site, the original images are all showing. It's weird.
To back it up I assume just copy the project's folder somewhere else?
Can you post a screendump displaying it? Did you create a new media type as well or did you just change the existing image media to use the defined cropper? It would be nice to see some screendumps of those as well.
Yup, just copy the entire Umbraco folder somewhere else and double check that all the stuff is there.
I made a copy a few days ago. So it's not exactly up to date. I then ran the copy (stored on a USB key) on my laptop and it started to see a post I made this morning saved on my desktop! Weird eh!
Arh, sorry I meant what does it look like in the backend when you click on the "charter.jpg" file? Can you see the file name, the properties tab etc. ?
Ehm, yeah that does sound a bit weird - But since I don't know the full details of your setup and how you work with Umbraco it's a bit hard for me to figure out what could be going on. You're sure that the site is not using MSSQL rather than CE SQL then? :) Just checking.
Ok, thanks - So it seems that all images have disappeared, which makes sense since you have changed the underlying property editor.
Have you tried to upload the image on the image node again? Sorry if you have already written about this above...:) If you have not tried this, what happens if you do? I think that it should actually work...and if it does you know what to do even though it's a bit of a daunting task.
Do you mean upload the images again one by one? I did try one. I went to the post removed the image and uploaded the image again, then Save & Publish. The image is still greyed out. Each new image gets greyed out!
When you say that you went to the post and removed and then uploaded again, does that mean you're doing it from the "Content" section? If so...what happens if you try doing it on the image node in the "Media" section?
Also...have you tried keeping an eye on the browsers console log when you're doing it? Does it throw any errors? And what about the /App_Data/logs file?
Yes exactly through the Content section. Strangely enough if I create a new post and use an existing image it displays, but if I use a new one it doesn't. This is my text document
No. I tried to upload an image in Media (they are all grey) and then get it in Content to publish it and the same. It just displays the file name of the image from this code
@foreach(var page in CurrentPage.Children.Reverse().Take(5))
Ok...well after changing to using the cropper you should update the rendering to make use of the different crops. But before we get that far I think we should try to focus on fixing the issue with the images that won't upload in the backoffice.
So in the "Developer -> Data types" section what does your "media" type then look like? Screendump please :)
In the log file you should look for anything marked with "WARNING" or "ERROR".
Ok, I think I might be starting to get what is happening. I just setup a local instance where I did a mini-test. I think it may be a bug.
But if you instead of using the image cropper directly on the document type do this...
1: Change the "Media Picker" to use the "Image Cropper" and then
2: Go to your document type and change it to use the "Media Picker"
Does it then work? The weird thing is that on my machine it does not open up the picker but let's you upload the image directly. Not sure why...could be my install but if this works for you then maybe it could be a work around?
Sorry for not getting back to you sooner I had to vacate in a hurry yesterday and this project is on the office desktop!
I tried changing the Media picker - Media Types, Image and Type to Cropper - a data type I created. Then I went to document type and it was already using Media Picker. So I went to Media and all the original images were there and visible. The images I tried to upload yesterday were all greyed out, so I deleted them and uploaded them again. So now when I publish a new post the image is not visible - I guess that's because I'm using Cropper under Media. So if I go back and change it - we're back to the greyed out images again! I've started on the Cropper, so I guess I'll have to finish to get back working again! So back to Jeavon's video that Dennis told me about!
No worries - I'm sorry I have not been able to figure out what you can do to get things working again. But I also think this is a case where it's a lot easier to sit in front of the machine where the issued solution is running to entirely understand how it is all acting up and where to look to debug etc.
I hope you manage to find a way though but I don't think I have any more suggestions atm :)
Just to update you, I got the image cropper working. At first it ignored when I added in new crops and passed them, but now after lunch it works fine. All is well!
Media Vanished
Hi All
Happy Monday!
I think I might have completely screwed up my project. I was following a video on the image cropper and I changed the the media type, where I upload images to a new one called Cropper. Then the homepage fell over, so I thought to go back to where it was working. I changed it back to Media Picker. Now I can't upload a new image and when I look in Media all the images are greyed out and named. They are visible in Web Matrix though and the site (unpublished - phew!) still works. It works as a finished product which isn't exactly what I need - it's a kind of news site.
Any ideas - I do have a back up though it's not completely up to date.... AGH!
Thanks.
Tony
Hi Tony
Are you using CE SQL or are you running MSSQL? If you're using CE SQL then it's pretty easy to do a copy of the site, which you can then try to fix the problem on.
But the important thing is that you don't publish anything or republish the site until you know what is going on, since the working site is cached in the /App_Data/umbraco.config - And the images do probably also still exist in the /media/ folder.
Once you have done your backup I think you should try to convert back to using the image cropper hit the save button on each image in the "media" section in order to have it work again. And you probably also should try to save and publish the nodes in the "content" section where they're referred from. Just try it out on a few images to see if it's working.
Hope this makes sense.
/Jan
Hi Jan
I'm using the CE SQL. I had a copy of the site from earlier, so it was a few days behind. I opened it on my laptop and it started displaying a post I only published this morning. But it couldn't, yet it did! Weird. If I have a look at the Media folder on the desktop I can look in and see all the images there - they do still show on the site. But I can't upload new ones now. I go into Content and hit image and the Media screen pops out from the right hand side - where all the images have the greyed out mountain range. Any new images I upload get the same treatment and then only their name displays on the site. No code has been changed on the site, the original images are all showing. It's weird.
To back it up I assume just copy the project's folder somewhere else?
Tony
Hi Tony
Can you post a screendump displaying it? Did you create a new media type as well or did you just change the existing image media to use the defined cropper? It would be nice to see some screendumps of those as well.
Yup, just copy the entire Umbraco folder somewhere else and double check that all the stuff is there.
/Jan
Hi Jan
Yes I just changed it from Media Picker to Cropper, the homepage crashed, so I changed it back again and now it's sulking!
I then added a new image called burger and
This is the empty, yet full Media gallery...
Thanks.
Tony
ps That's how I thought you backed up the project, just after this I've lost my bottle a bit!
Hi Tony
What does the "charter.jpg" image look like? Could you show a screendump of that as well?
I'm confused - Did you copy the project to another location before doing further work on the site? If you did then it should be fine.
/Jan
Hi Jan
The charter.jpg image looks like
I made a copy a few days ago. So it's not exactly up to date. I then ran the copy (stored on a USB key) on my laptop and it started to see a post I made this morning saved on my desktop! Weird eh!
Tony
Hi Tony
Arh, sorry I meant what does it look like in the backend when you click on the "charter.jpg" file? Can you see the file name, the properties tab etc. ?
Ehm, yeah that does sound a bit weird - But since I don't know the full details of your setup and how you work with Umbraco it's a bit hard for me to figure out what could be going on. You're sure that the site is not using MSSQL rather than CE SQL then? :) Just checking.
/Jan
Hi Jan
Oops! Ha ha! It looks like this
The properties are
#
It's definitely CE that wasy I can move it around from machine to machine with ease!
Thanks.
Tony
Hi Tony
Ok, thanks - So it seems that all images have disappeared, which makes sense since you have changed the underlying property editor.
Have you tried to upload the image on the image node again? Sorry if you have already written about this above...:) If you have not tried this, what happens if you do? I think that it should actually work...and if it does you know what to do even though it's a bit of a daunting task.
/Jan
Hi Jan
That's a relief that it makes sense!
Do you mean upload the images again one by one? I did try one. I went to the post removed the image and uploaded the image again, then Save & Publish. The image is still greyed out. Each new image gets greyed out!
Thanks.
Tony
Hi Tony
When you say that you went to the post and removed and then uploaded again, does that mean you're doing it from the "Content" section? If so...what happens if you try doing it on the image node in the "Media" section?
Also...have you tried keeping an eye on the browsers console log when you're doing it? Does it throw any errors? And what about the /App_Data/logs file?
/Jan
Hi Jan
Yes exactly through the Content section. Strangely enough if I create a new post and use an existing image it displays, but if I use a new one it doesn't. This is my text document
No. I tried to upload an image in Media (they are all grey) and then get it in Content to publish it and the same. It just displays the file name of the image from this code
@foreach(var page in CurrentPage.Children.Reverse().Take(5))
{
dynamic image=null;
if (page.HasValue("image"))
{
var dynamicMediaItem = Umbraco.Media(page.image);
<div class="content-page-wide-box">
<div class="column w220">
<img src="@dynamicMediaItem.umbracoFile" alt="@dynamicMediaItem.Name" width="220" style="padding:5px 5px 5px 5px"/>
</div>
<div class="column w220">
<center><span style="line-height: 1.4em; padding:5px 5px 5px 5px;font-size: 16px; font-weight: bold;">@page.Name</span></center>
</div>
<div class="column w220">
<span style="float:right; padding:10px 10px 10px 10px;">@page.summary</span>
</div>
<div class="column w470">
<p><a class="buttonGrey block w160" target="_blank" [email protected] rel="nofollow">@page.Name<span class="arrow"></span></a></p>
</div>
</div>
}
}
Thanks.
Tony
Sorry no errors at all! I don't know about the /App_Data/logs file. What should there be in there?
Tony
Hi Tony
Ok...well after changing to using the cropper you should update the rendering to make use of the different crops. But before we get that far I think we should try to focus on fixing the issue with the images that won't upload in the backoffice.
So in the "Developer -> Data types" section what does your "media" type then look like? Screendump please :)
In the log file you should look for anything marked with "WARNING" or "ERROR".
/Jan
Hi Jan
The data/logs file has no errors! Great!
There is only a Media Picker data type:
Thanks.
Tony
Hi Tony
Ok, I think I might be starting to get what is happening. I just setup a local instance where I did a mini-test. I think it may be a bug.
But if you instead of using the image cropper directly on the document type do this...
1: Change the "Media Picker" to use the "Image Cropper" and then 2: Go to your document type and change it to use the "Media Picker"
Does it then work? The weird thing is that on my machine it does not open up the picker but let's you upload the image directly. Not sure why...could be my install but if this works for you then maybe it could be a work around?
/Jan
Hi Jan
Sorry for not getting back to you sooner I had to vacate in a hurry yesterday and this project is on the office desktop!
I tried changing the Media picker - Media Types, Image and Type to Cropper - a data type I created. Then I went to document type and it was already using Media Picker. So I went to Media and all the original images were there and visible. The images I tried to upload yesterday were all greyed out, so I deleted them and uploaded them again. So now when I publish a new post the image is not visible - I guess that's because I'm using Cropper under Media. So if I go back and change it - we're back to the greyed out images again! I've started on the Cropper, so I guess I'll have to finish to get back working again! So back to Jeavon's video that Dennis told me about!
Thanks for your help.
Tony
Hi Tony
No worries - I'm sorry I have not been able to figure out what you can do to get things working again. But I also think this is a case where it's a lot easier to sit in front of the machine where the issued solution is running to entirely understand how it is all acting up and where to look to debug etc.
I hope you manage to find a way though but I don't think I have any more suggestions atm :)
/Jan
Hi Jan
Thanks for your help. I think if I get the Cropper working it should all work again! Watch this space!! Just don't hold your breath!!
Thanks.
Tony
Hi Jan
Just to update you, I got the image cropper working. At first it ignored when I added in new crops and passed them, but now after lunch it works fine. All is well!
Thanks.
Tony
Hi Tony
Thanks for the update - Happy to hear you managed to get things working again :)
Happy umbracoing!
/Jan
is working on a reply...