Broken Ecommerce product image links after hosting move

Permalink
5.6.2.1 :I moved my domain to bluehost and all the images in my Ecommerce product pages are broken. Folks have recommended I use a plugin called bluevelvet to fix the links or reset my permalinks however I think these guys are referring to WP tools not Concrete5. All my images are there, they just don't follow the /solarnomics/ path. Is there somewhere in the Ecommerce or Concrete5 configs I can remove this hardcoded path?

Please see the attached, if there' any other info needed I'll gladly provide all you need.

You can view the product page at:

http://www.solarnomics.net/products/pole-mounts/single-pole/12-pane...

Thanks for your assistance!

-Dave

1 Attachment

 
mhawke replied on at Permalink Reply
mhawke
Something to try real quick.

First, clear your concrete5 cache at Dashboard->System and Settings->Cache and Speed Settings->Clear Cache

If that doesn't work then toggle Pretty URLs off and back on again at Dashboard->System and Settings->Pretty URLs

I've had this happen if I copy the old .htaccess file from my old site so you can try renaming your existing .htaccess file and then create a new blank .htaccess file and then toggle Pretty URLs off and back on again.
Solarnomics replied on at Permalink Reply

Thanks for the reply! I've done what you asked and the problem is still
there. I've tried this before your posting as well, although I completely
appreciate your suggestion. Any other ideas? I suspect there was a symbolic
link from my previous hosting CO. that got hardcoded into my paths. Maybe a
.htaccess directive would help?

I really appreciate your thought and attention to this problem.

Thanks,
-Dave

-----Original Message-----
From: concrete5 Community [mailto:discussions@concretecms.com]
Sent: Sunday, December 22, 2013 9:08 PM
To: david@ballsmachine.com
Subject: Broken Ecommerce product image links after hosting move : Building
with concrete5
mhawke replied on at Permalink Reply
mhawke
If you look in the FileVersions table, what is the fvPrefix? The prefix is

Also, can you post your Environment so we can check for overrides that might be causing problems.
Solarnomics replied on at Permalink Reply 2 Attachments
Please find the attached fvPrefix screen shot and my Environment info. At the bottom of the fvPrefix screenshot I have one of the images that doesn't appear since the move highlighted.

Thanks,
-Dave
mhawke replied on at Permalink Reply
mhawke
You have a number of possible 'overrides' that could be changing the default behavior. I believe the problematic images are being created in a Content block so my first guess would be to have a look in the [root]/blocks/content/ folder and inspect the 'view.php' or the 'controller.php' for a hard-coded 'solarnomics'.
mhawke replied on at Permalink Reply
mhawke
Let me guess... you used to be with GoDaddy before moving to Bluehost perhaps in a sub-folder named 'solarnomics'?
Solarnomics replied on at Permalink Reply
It wasn't Godaddy it was Rackspace and yes I believe there was folder called
solarnomics but it was symbolically linked to a /public_html directory.

I just grep'd and 'find' the entire recursive directory space under my new
/public_html looking for 'solarnomics' within *.php and I only found my
site.php which is OK in this case.

Any other ideas?

-----Original Message-----
From: concrete5 Community [mailto:discussions@concretecms.com]
Sent: Tuesday, December 24, 2013 1:17 AM
To: david@ballsmachine.com
Subject: Broken Ecommerce product image links after hosting move : Building
with concrete5
mhawke replied on at Permalink Reply
mhawke
The reason I suspected GoDaddy is because I recently tried to install a site on GoDaddy and their server was reporting an incorrect value for $_SERVER('SCRIPT_NAME') resulting in an incorrect DIR_REL value being placed ahead of the /index.php very similar to what's happening to you.

Is it possible just to re-edit the pages and add the images back in. Does it correctly render new images?
Solarnomics replied on at Permalink Reply
Sounds like what happened here; I can go and manually edit those pages but
the scary part of having hardcoded paths and not being able to fix it looms
large. Where is the hardcoded path? buried in the DB somewhere?

-----Original Message-----
From: concrete5 Community [mailto:discussions@concretecms.com]
Sent: Tuesday, December 24, 2013 1:43 AM
To: david@ballsmachine.com
Subject: Broken Ecommerce product image links after hosting move : Building
with concrete5
mhawke replied on at Permalink Best Answer Reply
mhawke
But what happens when you re-edit the image and swap the 'missing' photo for one in the File Manager? Do these 'new' images render? If they do then just go through your site and replace the images. The old paths will only show up if you revert the page to an earlier version.
Solarnomics replied on at Permalink Reply
That works fine. I just searched the DB and found these paths in the
ecommerceproduct pages and in the systemnotifications. There were only 8
occurrences in the ecommerceproduct table. I'm not too concerned about the
systemnotifications. These paths do look like they were written when the
environment had some wacky paths and symbolic links. Would you know how to
accommodate the hardcoded path with some .htaccess or symbolic link (ln -s)
kungfu?


-----Original Message-----
From: concrete5 Community [mailto:discussions@concretecms.com]
Sent: Tuesday, December 24, 2013 2:33 AM
To: david@ballsmachine.com
Subject: Broken Ecommerce product image links after hosting move : Building
with concrete5
Solarnomics replied on at Permalink Reply
Thanks for your help mhawke, I manually edited all the paths, it was easier than I expected. I didn't need to go out and grab the images I just needed to remove the hardcoded /solarnomics/ before the /index.php/ present in all the image links and java popup links. I appreciate your help and support.

Thanks,
-Dave
OKDnet replied on at Permalink Reply
OKDnet
This is over a year later and I just experienced the same exact thing (although I only moved the site from a subdomain location used for development to the final location, all on the same hosting & server!)

Going into Product -> Edit Properties-> Description
and viewing the html, I see it's pointing to the old path

<img src="/old/pathto/index.php/download_file/view_inline/104/" alt="MyFileName.jpg" width="500" height="241" /></p>.

I tested the correct url http : //mycorrectlocation.com/index.php/download_file/view_inline/104/MyFileName.jpg
and the file displays.

To me it's clearly an issue with Core Commerce.
So now I'm looking for how to correct this without having to edit every product description!