Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

404 error on gallery pages after upgrading theme

by

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 8 years, 1 month ago by bwilmer.
Viewing 15 posts - 1 through 15 (of 16 total)
1 2 →
  • Author
    Posts
  • May 2, 2017 at 10:35 pm #14217
    bwilmer
    Member

    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 #75603
    admin
    Keymaster

    The 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 #75604
    bwilmer
    Member

    nothing 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 #75605
    bwilmer
    Member

    it has a built in photo slide AwesomeOne by flythemes.net

    May 3, 2017 at 1:29 am #75606
    Peter
    Member

    Before 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 #75607
    bwilmer
    Member

    yes 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 #75608
    Peter
    Member

    Looks like the galleries are now working….perhaps you fixed something on your site?

    May 3, 2017 at 2:34 pm #75609
    bwilmer
    Member

    I 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 #75610
    wzp
    Moderator

    When you are running the “free” and “pro” themes; is the .htaccess file EXACTLY the same, or different?

    May 3, 2017 at 2:42 pm #75611
    bwilmer
    Member

    at this loacation? wp-content/uploads/wp_photo_seller

    May 3, 2017 at 2:49 pm #75612
    wzp
    Moderator

    Is there one at the site’s top level? Where did the one, you originally posted, come from?

    May 3, 2017 at 2:51 pm #75613
    bwilmer
    Member

    wp-content/uploads/wp_photo_seller

    May 3, 2017 at 2:59 pm #75614
    bwilmer
    Member

    pro 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 #75615
    admin
    Keymaster

    I 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 WordPress

    Somehow 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 #75616
    bwilmer
    Member

    I will clean it up and give that a try. could this be a .php issue?

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 16 total)
1 2 →
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ