Jump to content

Uploaded images not appearing in PW admin or public site


Recommended Posts

Posted

I'm working on a Dreamhost-hosted PW 2.1 install and I am encountering this issue:

I can upload an image OK.

I can open the image for editing in e.g. Photoshop from the /site/assets/files/#### folder via SFTP and confirm that it exists. This is true for all resized versions, too.

The link shown in the HTML source is correct; i.e., it points to the right file.

PW's admin image field shows a "?" indicating that it can't display the image.

The public front end also shows a broken image indicator.

Here is the owner/permission information:

Owner: My user

Perms: 777

Checking another thread here at the forum, and following instructions: It seems that Dreamhost has safe_mode turned off (Edit:just confirmed that) but I will confirm this. I also added this line to .htaccess:

php_value upload_tmp_dir /home/baggageclaim/marccarson.com/clients/cortechamber/site/assets/cache/

Thanks for any ideas or other assistance!

Posted

Can you confirm that the URL is correct, like when it shows the ? on the front end?

Are you able to view files/images from any pages? Or does this universally affect all file-based assets on your site?

Posted

Thanks--I just noticed that the URL was being rewritten when I loaded it directly. It turns out an .htaccess file a few folders back had this line:

ReDirectMatch 301 /site(.*) http://www.example.com$1

Which was pretty obsolete anyway so I took it out. Problem solved! ;D I have no idea what I should do if I wanted to keep that line, because I'm assuming it was conflicting with PW's "site" folder.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...