Tips and Tricks HQ Support Portal › Forums › WP Photo Seller › 404 error on gallery pages after upgrading theme
- This topic has 15 replies, 4 voices, and was last updated 7 years, 6 months ago by bwilmer.
-
AuthorPosts
-
May 2, 2017 at 10:35 pm #14217bwilmerMember
upgraded my theme to the pro version and now all links to the gallery are broken. have created a new test gallery and doesn’t work either. here is .htaccess
<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(s)?/stjamesage.com [NC]
RewriteCond %{REMOTE_ADDR} !(127.0.0.1|localhost|:1)
RewriteRule .* http://127.0.0.1 [L]
</IfModule>
stjamesage.com
May 3, 2017 at 12:13 am #75603adminKeymasterThe main gallery page is giving a 404 error or the images of a gallery?
Can you go to your pages menu and see the “Photo Gallery” page being there? Can you access that page at all from the front-end by clicking on the “view” link from the pages list?
Does this theme have some kind of built in gallery functionality?
If you post a link to your photo gallery page, it will be easier for us to see what it is doing.
May 3, 2017 at 12:19 am #75604bwilmerMembernothing found?
[https://stjamesage.com/photogallery/]
have 10 sub galleries under the main and they get the 404 but the main gallery says Not Found
May 3, 2017 at 12:20 am #75605bwilmerMemberit has a built in photo slide AwesomeOne by flythemes.net
May 3, 2017 at 1:29 am #75606PeterMemberBefore you updated the theme did all galleries work?
Have you checked if those pages exist in the wordpress “Pages” menu?
What is your wordpress permalink setting?
May 3, 2017 at 2:16 am #75607bwilmerMemberyes and the pages are there with photos attached but do not display when “view” is clicked
permalink set to post name
May 3, 2017 at 4:21 am #75608PeterMemberLooks like the galleries are now working….perhaps you fixed something on your site?
May 3, 2017 at 2:34 pm #75609bwilmerMemberI reverted back to the free version to make sure it was working correctly. everything worked fine and have since changed back to the Pro theme and it is not working again
May 3, 2017 at 2:39 pm #75610wzpModeratorWhen you are running the “free” and “pro” themes; is the .htaccess file EXACTLY the same, or different?
May 3, 2017 at 2:42 pm #75611bwilmerMemberat this loacation? wp-content/uploads/wp_photo_seller
May 3, 2017 at 2:49 pm #75612wzpModeratorIs there one at the site’s top level? Where did the one, you originally posted, come from?
May 3, 2017 at 2:51 pm #75613bwilmerMemberwp-content/uploads/wp_photo_seller
May 3, 2017 at 2:59 pm #75614bwilmerMemberpro theme
# BEGIN GD-SSL
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_USER_AGENT} ^(.+)$
RewriteCond %{SERVER_NAME} ^stjamesage.com$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
Header add Strict-Transport-Security “max-age=300”
</IfModule>
# END GD-SSL
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
free theme
# BEGIN GD-SSL
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_USER_AGENT} ^(.+)$
RewriteCond %{SERVER_NAME} ^stjamesage.com$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
Header add Strict-Transport-Security “max-age=300”
</IfModule>
# END GD-SSL
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
from /home/siteftpname/html/.htaccess
May 4, 2017 at 1:17 am #75615adminKeymasterI don’t know if this htaccess file content is causing the problem but I do know for sure that you should ONLY have one of the following block in that file:
# BEGIN WordPress
......
# END WordPressSomehow the theme is getting confused and polluting your htaccess file with multiple copies of the same directive. That can have some ramifications. So maybe you should cleanup the htaccess file just to make sure it is not contributing to the issue.
May 4, 2017 at 1:31 am #75616bwilmerMemberI will clean it up and give that a try. could this be a .php issue?
-
AuthorPosts
- You must be logged in to reply to this topic.