MarcC Posted November 21, 2011 Share Posted November 21, 2011 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! Link to comment Share on other sites More sharing options...
ryan Posted November 21, 2011 Share Posted November 21, 2011 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? Link to comment Share on other sites More sharing options...
MarcC Posted November 21, 2011 Author Share Posted November 21, 2011 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. Link to comment Share on other sites More sharing options...
ryan Posted November 21, 2011 Share Posted November 21, 2011 Great, glad you got it figured out. I was stumped for the moment Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now