drupal node‘s image field do not dispaly the image - image

The problem was appeared when I migrate my site from WindowsServer2003 to CentOS.
There is a image field in the Node type.In the old server everything goes well,but in the CentOS the nodes' image field do not show the picture. It just show the image name as a link and click the image name I can see the picture in a new browser tab.
I know that the images have been upload in the sites/default/files. And also the permission for the directory is 777.
I google a lot but get no results.
so what cause the problem? any suggestions are appreciated.

Windows and Unix-based systems use different pathing syntax, so the paths for your images may not work now, under CentOS. Use a text editor's find-and-replace feature to change the paths in the database by exporting the database to a SQL file, running the find-and-replace, and then importing the file. Make sure to keep backups of everything.

Related

images not appearing online but appears offline. I am uploading via Filezilla

I am uploading my website using Filezilla, and some images are not appearing. I have checked that the file names are all lower case and that the file type is set to auto instead of ASCII. I have cleared the cache too and I am still not seeing the same images not appearing.
I have got a 403 and 404 error on these images in the console, please see screenshot image for this.error image
All images work fine when testing locally on my computer but some random images are not appearing. Anyone any ideas why this could be?
Thanks!
image not appearing
Could you maybe provide some code with examples?
It could e.g be that the path on the server is different. If you use absolute paths it may work on your host where the homepage is under /. But if it is under /user/ or something similar (so not in the root), the paths can be broken and images will not appear. So check if you provide the paths differently for the pictures that work as opposed to the ones which fail.

listing existing images in ckeditor

I have a strange issue with CKeditor.
If I upload the images through the inbuild uploader function, the thumbnails are created and everything is working as intended.
However, If i use an existing image directory, CKeditor is not loading those images.. or if I upload manually through FTP, the images are not showing in CKeditor.
Is there a way to fix this issue? I have tried to google various solutions but currently I am unsure what I should search for.
will remote image location solve the issue or should I do any other configurations
By using a remote file location, u can map the shared files with remote location and it will solve the issue

Not able to upload pictures with magmi.

I've recently moved my website to a new server (shared). I made a backup with installtron and put everything in place on the new server.
Every went pretty smooth, but i'm facing some difficulties with uploading my feeds via magmi. I'm getting errors when im using the image attribute processor. The following erros pop up:
download error,URL http://mydomain.com is unreachable.
The stupid thing is that the image link he's pointing to is working and points to the picture, but somehow it is not uploading it. This was working at my previous website. I'm pretty sure it has something to do with write permissions, but i can't figure out which one it is. Permissions are all set to 755 (shared hosting)
Anybody has any idea?
I found the error. It had something to do with the fact that i filled a path "Image search path" within the image attribute plugin. I thought that would not matter if i would point to an absolute path in my csv file, but apparently it did. After i removed the location there it did upload my pictures pointing to an absolute path.
Thanks all!

How to edit FTP URLs to HTTP to make images display?

I need to upload images into a page in my website.
I usually use WinSCP FTP program because it gives me the option "Copy to Clipboard (Include paths)". I copy images' URL through this option and the images are usually uploading and displaying successfully to the website.
I'm trying to do the same now for a new page but that is not working. Using any option in WinSCP is not helping at all. All I get is a small icon instead of the image. But when I use FileZilla for copying the URL, the images are uploading and displaying successfully. BUT the problem is that the page is requesting the username and the password to display the images.
I've been googling about it and I realise that the problem could be that I need to change the FTP URL to HTTP. I tried to do it this way:
ftp://username#domain.org/domain_restore/pics/anton.jpg
to:
http://username.domain.org/anton.jpg
That is probably totally wrong? I tried some other ways but the problem is I'm only a beginner and I don't have the knowledge how to edit it or how to find out what the problem is.
I followed the instructions of someone from the support of my host and they advised me to do a restore to all my directories in the FTP manager. I did that but I feel like I messed it up because now all the folders and the directories are duplicated. Could that also be the problem?

Swapping an image during web development

I'm trying to see what a certain webpage would look like if I replaced a certain image with another. Rather than upload the image, edit the site, etc, each time I tweak it, I'd like to know if there's a way to change the image in the page to my local version while viewing the remote page.
I use Firebug for debugging web development usually, but I'm open to any other tool that might do this.
(It is absolutely impossible to search for this and find anything but questions about dynamic image swapping on a deployed website, so sorry if this is a duplicate.)
Added: I just tried substituting a file:/// URI pointing to the image (copied and pasted from the address bar after manually opening the image), and alas, it did not work — the image fails to change.
It seems to only work with the http[s] protocols (likely for security reasons). You can store your images on service like Dropbox, share the image or folder, then use the public URLs.
Really, you can use any web accessible images, so a local server would work too.
If your image is in a localhost server(not as file mind you) i think you can still put that localhost url in the firebug inspect element and it'll work.
Tried an absolute file path but it doesn't work apparently. So I guess you just have to make do with a localhost server image. That works for me
Quick and Lowtech Answer: Take a screen shot of the page open it in photoshop and drop the local image on a layer above the webpage image.
Hi if you are serving from a webserver, u probably can't point it to a file on ur local drive. Even if its localhost, u can't point to a local file c:/test.jpg for example. Its because the browser sorts of sandbox ur page so that scripts can't access local files.
One way is to upload the new file (new_file.jpg) to the webserver, give the image link an id
<img id="something1" src="test.jpg"/>
Using jQuery in the firebug watch window do
$("#something1").attr("src","new_file.jpg");
You should see the image change. If you are not using jQuery, you can use document.getElementById("something1") and get the element to modify.
Another way is to use http://makiapp.com/
You can overlay an image from you computer onto any website you look at with this. Very cool tool for lining up a comp with your code.
You can:
Drag your test image into Google Drive
Open it in a browser
Go to the actual image path
Use this path as a substitute in Firebug
It's almost as fast as working from a local drive.

Resources