Problem with post type on subsites in multisite network

Home Forums Calendar Products Events Calendar PRO Problem with post type on subsites in multisite network

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #1500467
    gavlekommun
    Participant

    Hi!

    We have a problem with events on our subsites. It seems that the post type is incorrect before the content loads on single events. If we echo the post type after the header is says “page”, this results in the wrong template being loaded and the page breaking down. The problem is not accuring on our “main” site. Any clues?

    We have tried disabling all other plugins and switch themes – same result.

    Regards Joakim Silfverberg

    #1503002
    juanfra
    Keymaster

    Hey Joakim,

    Thank you for reaching out to us! I hope you’re doing well.

    To get started, could you please share your system info with us so we can access your calendar and further investigate your case?

    Are you trying to do any type of customization in particular? Where exactly is that you want to access the post type?

    Best,

    Juan.

    #1504194
    gavlekommun
    Participant

    Hi!

    Now i’ve shared the system info. No customization at all, it’s the default single event that doesn’t work properly on subsites. When i load a single event on a subsite it loads the “page” template because the post type is incorrect when the page loads. This doens’t happen on our main site.

    Regards Joakim Silfverberg

    #1504225
    juanfra
    Keymaster

    Hi Joakim,

    Thank you for the follow-up.

    Ok, so you’re only having problems with the event pages on your subsites. It totally sounds like it could be related to the permalinks configuration.

    Does your multisite uses subdomains or subfolders?

    Best,

    Juan.

    #1505131
    gavlekommun
    Participant

    Okey, it uses subfolders.

    #1505386
    juanfra
    Keymaster

    Thank you for the follow-up, Joakim.

    Let me ask you one question: have you configured the .htaccess file the way WordPress recommended when creating the multisite network?

    Is this something you have changed recently?

    You may want to check the WordPress official documentation for this.

    Best,

    Juan.

    #1507887
    gavlekommun
    Participant

    Yes, our .htaccess is configured as descriped in the codex. The single event has never worked on our subsite as far as i know, it doesn’t work with twenty twelve without any other plugins either.

    #1508069
    juanfra
    Keymaster

    Hi,

    Thank you for the follow-up.

    Would you please share with me the exact configuration of the .htaccess file?

    What is your slug configuration for the single events template and the main events page? (Events > Settings > Single event URL slug and Events > Settings > Events URL slug). Do you have any page on the main site of the network that can be causing a conflict with these slugs?

    Thanks,

    Juan.

    #1509874
    gavlekommun
    Participant

    This is my htaccess config. Slugs in image.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    </IfModule>
    # END WordPress

    #1510652
    juanfra
    Keymaster

    Hi Joakim,

    Thank you for the follow-up.

    The .htaccess configuration seems to be alright. Please would you also check that you have the required constants in your wp-config.php file?

    With regards to the screenshot you’ve shared, I can see that you’re using a virtual host, is that from your local install?

    Would you please share a couple URLs where I can see the problem? Unfortunately, I don’t understand Swedish and I’m finding it difficult to trace the sub-sites and event pages.

    Also, I’ve seen you have business and multi-site licenses for events pro. Please be sure that you’re using the multi-site license on this install.

    Thank you,

    Juan.

    #1510893
    gavlekommun
    Participant

    Yeah all constants should be there, any in particular you’re thinking about? We dont have this problem with any other plugin or page.

    Yeah this is my localhost, thats because we dont use HTACCESS on the server. But still its the same problem locally.

    URL MAIN – https://www.gavle.se/event/demo-aterkommande-event/2018-04-04/
    URL SUB – https://www.gavle.se/demo/event/test-av-evenemang/

    The double toolbar on the subsite is caused by the wrong page template being loaded, caused by the post type being page initially.

    I have validated all the licenses.

    Thank you!

    #1511532
    juanfra
    Keymaster

    Hi Joakim,

    Thank you for sharing this information with me.

    I see, I was unable to reproduce your issue on my local install. The events are always rendered in their single template by default. Would you please run a Conflicts Test? You can start the test by temporarily changing your theme to another one like Twenty Seventeen and deactivating plugins. That will let us know if the problem is related to the plugin or if there’s another product (theme and/or plugin) that is causing some type of conflict.

    Perhaps there’s a hook that is causing a compatibility issue with the template router.

    Please, don’t forget to backup your database before changing anything.

    Best,

    Juan

    #1524101
    gavlekommun
    Participant

    Hi again!

    We have already done this, we even tried on a clean install with same result. Are you doing it on a subfolder multisite install?

    Regards Joakim Silfverberg

    #1525571
    Barry
    Member

    Hi Joakim,

    In my own testing, as was the case for Juan, there is no problem when rendering single events within a subdirectory-style multisite network.

    I do see the “double sidebar” you are referring to, though: could this be specific to your theme? You mentioned testing in a clean install – did that include using a default, unmodified theme such as Twenty Seventeen and did you see any unusual artifacts then?

    Last but not least … does changing the default template (visit Events ‣ Settings ‣ Display to find this setting) to “Default Event Template” or a different value help at all?

    #1542015
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘Problem with post type on subsites in multisite network’ is closed to new replies.