Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #656399

    oliver b
    Participant

    hello,

    i have installed a spreatshirt plugin, which does not work on the startpage. i have contacted the plugin author an he has not idea why it is not working. on other themes it is working.

    strangly on a subpage it is working. have you maybe an idea? my last hope…

    not working:
    1. visit startpage http://posay.eu
    2. click on a t-shirt
    3. error nothing to show http://posay.eu/?splproduct=104268713

    working (same shop settings)
    1. visit subpage http://posay.eu/test/
    2. click on a t-shirt
    3. detail page ok http://posay.eu/test/?splproduct=104268713

    = same variable working on a subpage and not on the startpage
    integration of the plugin via shortcode [spreadplugin]

    (wp 4.3.1 | x theme 4.1.1. as child theme | cornerstone 1.0.6)

    thanks
    oli

    #656400

    oliver b
    Participant
    This reply has been marked as private.
    #656666

    Rad
    Moderator

    Hi Oliver,

    Thanks for writing in.

    It’s not working here http://posay.eu/test/ and http://posay.eu/test/?splproduct=104268713, it simply says “Object not found”. It could be issue related to your permalinks. Please re-save your permalink at Admin > Settings > Permalinks, if still not working, then please check if your .htaccess is updated with correct permission.

    Object not found!
    
    The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
    
    If you think this is a server error, please contact the webmaster.
    
    Error 404
    
    posay.eu
    Sun Nov 8 07:22:34 2015
    Apache

    Basically, http://posay.eu and http://posay.eu/?splproduct=104268713 is just same home page. The only difference is this ?splproduct=104268713, shouldn’t it be loading to another product page? like /splproduct/104268713

    That’s a weird implementation of index and single page.

    Let us know when you fixed object not found issue. Though, I can’t promise a solution since this is not our plugin, their implementation is non-standard which is probably not perfectly fit to X theme. X theme simply follows wordpress standard for implementing index and single pages.

    Thanks!

    #656688

    oliver b
    Participant

    hello,

    sorry, i had changed the permalink for testing. that’s the reason http://posay.eu/test/ and http://posay.eu/test/
    did not work. now these two links are working.

    on the startpage the detailpage it is still not working. it is working on startpage with another theme. http://lovetee.de

    any idea?

    oli

    #657239

    Rad
    Moderator

    Hi Oli,

    I’m trying to understand how the plugin works, but no luck. All I can see is that this site http://lovetee.de/ uses the customized index.php of a theme, in which both home page and blog page as fused together in single template (but posts are of course removed), it’s not wordpress’s standard. In wordpress standard, you have to create two different page for homepage and for blog page, and X theme simply follows that.

    It’s probably working here http://lovetee.de/ because the home page is a blog page as well, but modified one. Thus, making pre_get_posts and query_var more useful in products query. In X theme, home page is simply a static content/page so pre_get_posts and query_var may not work on products query.

    Again, this is compatibility issue and probably standard issue with your plugin. You can contact your plugin’s author and tell a try different way of intercepting url variables. Like capturing data splproduct=104268713 no matter what url it is. A theme can’t simply do that, it can’t tell what url and to whom it belongs because there are many different implementations and formats. It’s the plugin that should adjust to its environment (tell if current page is static then do normal $_GET). In fact, this url format http://lovetee.de/?product=104113043 is non-standard to wordpress, I’m not even familiar with it until now. All I know are link formats provided by wordpress and other known plugin.

    I agree that working with permalinks is really hard, I tried applying my custom permalinks too before and that’s really hard specially.

    Thanks for understanding.

    #657761

    oliver b
    Participant

    super! thank you very much. i will give this information to the plugin developer. have a nice week start! oli

    #657767

    Paul R
    Moderator

    You’re welcome! 🙂