When running a localhost site, after synchronizing the site with my Dev or Production sites, I cannot see the images loaded into content. The URL is unreachable. Here are some details. I therefore cannot run a fully working local site.
1) Here is the URL of the image which does not work: http://localhost/?q=system/files/images/medium_organizationgroupphoto.jpg
2) Here is the same image on the working Production site: http://flipthedog.com/?q=system/files/images/medium_organizationgrouppho...
3) I verified the exact URL of the image can be loaded if referred to by actual folder name: http://localhost/sites/default/files/images/medium_organizationgroupphot...
Can someone help me understand:
1) What is the ?q=system supposed to accomplish, and why does it not appear to be working on my local installation?
2) Is this problem an IMCE issue? Apache configuration? Or somthing else?
Thanks for your help.
Comments
Comment #1
pauldawg commentedApparently this is an overal drupal or apache issue, not an issue with IMCE, as I cannot even see the site logo, or images uploaded with ImageAssist, when running from localhost. I am recategorizing this as a Drupal bug, though I realize I may be missing something here. However, if someone could recategorize as necessary and let me know that would be great!
Comment #2
pauldawg commentedHa! When I went back to my site just now, I just happened to catch a status update saying "folder images has been created" and "images/temp has been created". Turns out it created these directly off the Drupal root folder. I copied the images into this folder and it worked. So it appears that when running the same site as local, the "?q=system/files" URI gets rewritten as "/" instead of "/sites/default/files". Next step is trying to fix this...
Comment #3
Spiked commentedIs the module creating the links developed for clean url's, and you have them disabled?
Comment #4
pauldawg commentedHmm... it has been a while since I looked at this issue, and these days I am doing most of my development in a hosted environment anyway. If possible I will take a look sometime soon. I did find some related topics talking about this at the time, but didn't note what they were. From what I can recall though, I don't think CleanURLs is the issue at hand here; it is that in 1 and 2 above the URL generated by IMCE is ".../system/files/images..." and for some reason "system" isn't getting resolved properly when running locally. Seems like this may be a Rewrite issue of some sort, but I am not an expert on rewrite rules...
Comment #5
mdupontThe local site is not configured properly for private files (URL in system/*) and files haven't been synced from the PROD site. If files are synchronized and the local site is properly configured it will work. Works as designed.