Magento images not showing anywhere - magento-1.9

I just installed a fresh copy of Magento 1.9.2.3. Now my issue is when I try to upload any images, be it product, category, transactional email, ect. it gives me the little broken image placeholder. Now the steps I have tried so far:
Changed \media folder to 777
Flushed all Cache (Magento and images)
Read endless questions on similar issues but to no avail.
This is happening in the frontend and Admin
I have checked the link it creates to the image and when I put that in the address bar it gives me a "404 not found" error.
I have checked that the image is indeed uploaded to the folder that the site is pointing to.
Note: I have had Magento running on this server previously, but it is one to two versions older.
URL is http://southernperformanceparts.com - In case you want to take a look
Screenshot
Can anyone give me some direction here.
Thank you in advance.

Seems to be a right problem.
Are the images set to 644?
You could change your Uploader.php (lib/Varien/File)
search for "chmod($destinationFile, 0640);" and change it to 0644
and search for
"if (!(#is_dir($destinationFolder) || #mkdir($destinationFolder, 0750, true)))" and change it to 0755
In the future the images should get the correct rights after uploading.

Related

Web development with PuTTY and SSH: Why is the webpage I'm trying to change the code for linking to a deleted directory and not updating?

This is my first time trying web development and creating an actual website (not just a page on Repl or independent html/css page). I have a domain name, and the website connected to it that I'm trying to edit previously had some code on it.
I'm trying to use PuTTY and SSH to transfer the html and css files I want to the remote location.
However, this is what the user point-of-view looks like right now
I'm really confused because gittwo is a directory (with the html + css files I want) that I already deleted. I'm also confused why the main website shows a link to that directory instead of just displaying the image of the website I want. Before gittwo was deleted, it was directly under the main directory where code for the website should be.
Furthermore, now that gittwo is deleted, I'm wondering why the webpage still displays a link to that directory instead of showing the new directory I created, public_html. This is how the main directory looks like on Putty Do you know why this is happening?
I'm really new to all this and I know I'm confused about more things than one here and my question probably reflects that, so please let me know what parts I could maybe clarify!

Bizarre permission denied problem accessing images on a web server

I am unable to figure this out. I was creating a new page to display entries to a photo contest and it's not working for some reason I can't figure out. The new page is almost a clone of an existing page from an earlier photo contest that is working. After spending hours trying to figure it out, I'm stumped.
I'm running an Apache/2.4.38 (Debian) Server at home for testing web sites. In this case the file structure is like:
site/images/contestname/
where I have multiple contest names, each with its own directory. The directory permissions are the same in each case - the default for any directory created below "images", which is the default for any directory created in the "site".
The photos in all the directories all have the same ownership and permissions too - owner me, group www-data, with a+r (owner and group can also write).
The simplest manifestation of the problem is if I use a web browser to view the directory (http://mylocalsite/images/contestname/). This shows the list of files in the directory but when I try to view one, I get:
Forbidden
You don't have permission to access this resource.
It's only happening in this one directory. In all the others, I can click on a file name and see the image. I've tried recreating the directory and moving the images to the new one but that didn't change anything. It's also not browser related as it's happening with both Firefox and Chromium.
Does anyone have any idea on what the problem may be?

Some images won't show when moved Wordpress site to another domain on same server

I've developed a new wordpress website on a testing domain name on our server.
I had set the site up ready to go live... but I had to move the wordpress website onto another domain name that we are also hosting on our server.
So what I did was copy all root folder content from the testing domain name and pasted the content into the new domain name's root folder.
I then logged into wordpress, changed all the necessary settings like WORDPRESS URL and SITE ADDRESS URL as well as image absolute urls in each and every individual pages to make sure that I've got the right URL for everything.
When I click on MEDIA, I can see all the images like normal.
Great ... then I go and check the website live and I see that there are a lot of images that are missing! They are all in the MEDIA panel - but do not show up on the website!
I then double check that all images are pathed correctly ... and they all are.
Now why do SOME images show up and others don't?
I've even tried to add a new photo and use that photo in place of another photo that isn't showing up and that new photo doesn't even show up.
Where does my problem lie?
For example, 1 slideshow on my website which isn't showing images, give me an "image not found" error for a image:
Image not found: http://www.domain.com/wp-content/themes/natural
/lib/timthumb.php?src=http://www.domain.com/wp-content/uploads/2012/08/breakfast-gallery-011.jpg&w=610&h=0&zc=1
Ok I am going to answer my question with some advice.
It's clear that some of my images were 'hard coded' as devin mentioned as I could not find a logical reason for some not showing (even when I looked at the tabular data in MySQL) and because I'm not a database engineer / developer - I wasn't prepared to dive too deep into that with the possibility of causing further issues... so I decided to take down the entire wordpress site, create a new database, re-install wordpress and I imported an exported xml file that I created and saved (luckily) before 'migrating sites'.
Advice:
1) Whether you migrate a wordpress site or not, always backup your website regularly by creating an export of your wordpress structure. It may save you a lot of work in future.
2) If you're an amateur or beginner at development and MYSQL like myself, I'd suggest you create your wordpress site on the actual domain name you want it on. This will save you from 'migration' headaches as I've just experienced ... and a lot of time. Learn from my mistakes. Although there is probably a solution to my question above, it's out of my expertise / knowledge and could be out of yours too... so make it easy for yourself :)
The issue is not that the image URls are hardcoded only. The last portion of the URL is harcoded, but you will most likely have "/wp-content/" embedded in the URL which indicates that the image's URL string is dynamically created. I looked in my wp_postmeta table and there were all of the partial image URls ( like this - 2013/03/expanse2.jpg ). Now where is the beginning part of this URL and the domain name? The domain name is the part that is actually missing from the all of the image urls in my case. I dug into the database a little deeper using phpmyadmin ( but i recommend Webmin if you can get it up and running ). I ran into the "home" field in the "wp_options" table. Asked Google what a proper "home url" would be for wordpress, which brought me to this page ( http://codex.wordpress.org/Function_Reference/home_url ) , and this line was in there ( home_url() is located in wp-includes/link-template.php. ). Went to that file and found that it controls how URLs are built, but not uploaded image urls specifically. In the end i went into a page that had an image, looked at the advanced settings and found the image URL was just missing the domain. I used the wonderful search and replace script to repair it. Done

How to solve domain & subdomain issue in Joomla 1.5?

I have a Joomla 1.5 site published on http://domain.com/subdomain. Now I have added a subdomain using the host provider (Yahoo Small Business) that points to the subdomain folder:
subdomain.domain.com points to domain.com/subdomain
domain.com/subdomain works fine, but when I go to subdomain.domain.com, only the menu shows (but not formatted) on a black background. When I click an item it goes to http://subdomain.domain.com/subdomain/index.php/clicked-item and gives me a 404 error. ([Edit 1] Shouldn't it be something like http://subdomain.domain.com/index.php/clicked-item? When I manually enter http://subdomain.domain.com/index.php/clicked-item again I'm welcomed with a 404.)
Any help will be highly appreciated.
[Edit 2]
I've deactivated Search Engine Friendly URLs and this is the behavior now:
still when I go to subdomain.domain.com, only the menu shows (but not formatted) on a black background;
still when I click an item it goes to http://subdomain.domain.com/subdomain/index.php/clicked-item-and-stuff and gives me a 404 error;
but when I manually enter http://subdomain.domain.com/index.php/clicked-item-and-stuff it shows me the requested page, but without any formatting.
[Edit 3]
Please have in mind that I'm using Yahoo Small Business which doesn't allow .htaccess.
Until I find a proper solution, I'm just using a hack: subdomain.domain.com points to domain.com/another-subdomain which redirects to domain.com/subdomain where Joomla is installed.
Check your configuration.php file in your root to ensure the live_site parameter is set to your correct base url e.g. subdomain.domain.com

Why won't this link open a file anymore?

I have a Web application that is hosted locally on Websphere. In the application there is a link to a .doc file located on a windows server.
CIT
The link was been working for years, but suddenly stopped working on all computers on the network. When I click the link, nothing happens. I checked the files path and name, and nothing has changed. The interface is viewed using IE8.
Does anyone have any clues onto why this isnt working or where I can look to resolve this?
edit: i have just noticed that the file (CIT_.doc) has been saved in the same directory, could this have an effect on it?
I'd imagine one of the following has occured:
The file has been moved or renamed
The K: drive has been re-mapped or other wise modified to a different location
A popup blocker is tampering with the link (because target="_blank")
In other words you need to manually check that file location within explorer, you also need to try a different browser.
Also you need to change the link to:
CIT
See here for the reason, you may also need to URLEncode it.
It probably has something to do with security settings that your network administrator has recently setup, seeing as the m.edmondson's answer does not work. Try it in another browser besides IE.