Tips and Tricks HQ Support Portal › Forums › WP Photo Seller › Photo Seller – Making site live I lose all gallery images
- This topic has 5 replies, 2 voices, and was last updated 8 years, 6 months ago by GracieAllen.
-
AuthorPosts
-
April 27, 2016 at 4:10 pm #13467GracieAllenMember
I’ve rummaged through at least a dozen topics in here and haven’t hit one that told me how to get the thumbnails and images for galleries to display once I make the site live.
I have my site in [www.dperezphoto.com/wordpress]. In there it works perfectly as long as I have people connect to [www.dperezphoto.com/wordpress/]
Last night I went through the process (from WordPress) to make the site live while LEAVING it in the wordpress subfolder. I copied the index.php file, made the change to the line in the file, and in the WordPress General settings, I left the WordPress Address to [http://www.dperezphoto.com/wordpress] and changed the Site Address to [http://www.dperezphoto.com]
It works for the home page. That comes up fine. If you click on an icon (ACFA Cat Shows), it displays the album page with the three thumbnails fine. BUT, if you click on any of the thumbnails, the gallery page has no thumbnail images and no detail images.
I’m not using Jetpack at all, so though I don’t know what photon is, I don’t think it’s a problem.
I asked in the WordPress Support forum, but since I can’t leave the non-functional site up indefinitely and had to turn the old site back on, all I got were people telling me it worked fine.
Since I’m feeling a bit of pressure to get this thing UP, I looked at what the gallery thumbnails are pointing to (?)… On the site, a gallery thumbnail has [http://www.dperezphoto.com/?page_id=4881] as the url. This doesn’t work. If I CHANGE the URL to [http://www.dperezphoto.com/wordpress/?page_id=4881] it works fine. Same thing with the thumbnails IN the gallery. They don’t have “wordpress” in the url any more (if they previously did), but I have no idea how to get everything to point to the right place… Is it the change to the site address or the change to the index.php file, or what that is causing images not to be found?
What else do I have to change to get the images in the plugin to display correctly?
April 28, 2016 at 12:50 am #73165PeterMemberUsing FTP or something similar, can you please go to the “uploads/wp_photo_seller/” directory and temporarily rename the .htaccess file to:
temp.htaccess
Does this make a difference? If so, then you will need to tweak that file to reflect the change you made to the home URL.
Let me know what the contents are of the .htaccess which resides inside “uploads/wp_photo_seller/” and I can tell you what to change.
April 28, 2016 at 1:52 am #73166PeterMemberAlso, can you confirm that you followed these official instructions to change your site URL?
https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
April 28, 2016 at 3:18 am #73167GracieAllenMemberI changed the .htaccess file to temp.htaccess. As near as I can tell, I now have thumbnails and images for the galleries.
I can verify that I followed the instructions in the codex – I copied index.php, changed the line, and changed the Site URL in the general settings.
Here’s what’s in the .htaccess file… I’d guess something is wrong, but since I’m not sure what most of it means, I’ll leave the contents to folks more knowledgeable that me.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} !^facebook [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?/(.*)facebook.com [NC]
RewriteCond %{HTTP_USER_AGENT} !^Pinterest [NC]
RewriteCond %{HTTP_REFERER} !(wp-admin) [NC]
RewriteCond %{HTTP_REFERER} !^http://(.*)?.dperezphoto.com/wordpress [NC]
RewriteCond %{REMOTE_ADDR} !(127.0.0.1|localhost|:1)
RewriteRule .* http://127.0.0.1 [L]
</IfModule>
BTW: I had to get the site working so users can get at images from shows, so those icons on the home page now dump users to Shootproof so they can view and buy products… BUT, if this .htaccess thing works, I can change that back and let people know the site is live…
What do I need to change in the .htaccess file? Or can I just leave it as temp.htaccess and ignore it permanently? And should I do that with any OTHER .htaccess files I encounter?
April 28, 2016 at 4:32 am #73168PeterMemberChange the following line:
RewriteCond %{HTTP_REFERER} !^http://(.*)?.dperezphoto.com/wordpress [NC]
To:
RewriteCond %{HTTP_REFERER} !^http://(.*)?.dperezphoto.com [NC]
April 29, 2016 at 12:32 am #73169GracieAllenMemberDone. Appears to be working.
-
AuthorPosts
- You must be logged in to reply to this topic.