WP Shopp Images not Showing
The Shopp Plugin is one of the best ecommerce Plugins for WordPress. If you’re wanting to setup an Online shop with shopping cart within WordPress then Shopp is sure to be a great choice.
I’ve blogged about Shopp in the past and have setup numerous WordPress sites with Shopp however today I encountered a problem I haven’t come across before. The product images were loading and displaying fine into the Product editor window however the images just weren’t showing in any Product, Catalog or Shop Page.
Here is a copy of the support ticket I raised with Shopp support:
Hi,
Images aren’t showing on the catalog or products Pages.
I’m able to upload the images and save them to the Product Editor fine.
‘Image Storage’ is set to ‘File System’ and the path is valid (I get the message ‘The file system path to your storage directory.”).
I can see the images themselves on the host under the ‘uploads/products’ folder (i.e. the same folder as set in the ‘Image Storage’ option) but when viewing in the Catalog or Products Pages the image can’t be found and the link to the image is to an invalid path e.g. http://example.com/shop/images/57/300×300.png?96,96,3180854176.
Please assist in resolving this.
Environment
Web Browser: Any
Server OS: Linux
Web Server: Apache
PHP version: 5.3.9
WordPress Version: 3.3.1
Shopp Version: 1.1.9.1
As it turns out, the fix is incredibly simple (very quick and accurate support was provided by Lorenzo at Shopp Support). Basically all that needed doing was removing the following from the .htaccess file
RewriteRule ^.*shop/images/(\d+)/?\??(.*)$ /wp-content/plugins/shopp/core/image.php?siid=$1&$2 [QSA,L]
And now images are showing fine in all Product, Shop and Catalog Pages ….




Feb 15, 2012 @ 07:48:55
Gracias
resolvió mi problema…
Feb 22, 2012 @ 07:51:44
Hi Guys,
Im having the same problem with Shopp 1.2. I cannot find the htaccess file? Where should I look?
All help welcomed!
Cheers
Chris
)
Feb 22, 2012 @ 11:14:54
Hi Chris,
You’ll only have a .htaccess file if you host on Linux and possibly only if you use WordPress permalinks. Contact your Webhost if you’re unsure.
Feb 24, 2012 @ 05:52:35
Hi Gary,
I believe I use both. Im using 123reg.com and got the linux hosting.
Would there be another way? Some of the images show and other dont even after they display upon uploading?
Cheers
Chris
Feb 24, 2012 @ 05:58:14
Sorry to be a pain, just found that file and that code was not in the htaccess file….
If it helps, the file reads as:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^hdcymru.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.hdcymru.com$ [NC]
RewriteCond %{REQUEST_URI} !^/admin/
RewriteRule ^(.*)$ /admin/ [L]
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
Feb 24, 2012 @ 15:21:44
Hi Chris,
What are the first four lines of your .htaccess doing (the four lines after ‘RewriteEngine On’?
If you aren’t sure then delete the content of your .htaccess and save the following in the .htaccess file (make a copy of your original .htaccess file in case you need to restore it):
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteRule ^shop/images/(\d+)/?\??(.*)$ /wp-content/plugins/shopp/core/image.php?siid=$1&$2 [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
See if that works.
If not then remove the line ‘RewriteRule ^shop/images/(\d+)/?\??(.*)$ /wp-content/plugins/shopp/core/image.php?siid=$1&$2 [QSA,L]‘, save and see if that works.
If that doesn’t work then restore what was originally in your .htaccess and contact Shopp Plugin support