Home › Forums › Calendar Products › Events Calendar PRO › Problem with post type on subsites in multisite network
- This topic has 13 replies, 3 voices, and was last updated 7 years, 11 months ago by
gavlekommun.
-
AuthorPosts
-
April 9, 2018 at 6:44 am #1500467
gavlekommun
ParticipantHi!
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
April 10, 2018 at 8:23 am #1503002juanfra
KeymasterHey 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.
April 11, 2018 at 6:13 am #1504194gavlekommun
ParticipantHi!
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
April 11, 2018 at 6:54 am #1504225juanfra
KeymasterHi 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.
April 12, 2018 at 12:04 am #1505131gavlekommun
ParticipantOkey, it uses subfolders.
-
This reply was modified 8 years ago by
gavlekommun.
April 12, 2018 at 6:16 am #1505386juanfra
KeymasterThank 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.
April 16, 2018 at 2:16 am #1507887gavlekommun
ParticipantYes, 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.
April 16, 2018 at 6:25 am #1508069juanfra
KeymasterHi,
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.
April 18, 2018 at 12:19 am #1509874gavlekommun
ParticipantThis 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 WordPressApril 18, 2018 at 2:10 pm #1510652juanfra
KeymasterHi 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.
April 19, 2018 at 12:41 am #1510893gavlekommun
ParticipantYeah 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!
April 19, 2018 at 12:06 pm #1511532juanfra
KeymasterHi 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
May 7, 2018 at 3:59 am #1524101gavlekommun
ParticipantHi 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
May 8, 2018 at 11:29 am #1525571Barry
MemberHi 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?
May 30, 2018 at 9:35 am #1542015Support Droid
KeymasterHey 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 -
This reply was modified 8 years ago by
-
AuthorPosts
- The topic ‘Problem with post type on subsites in multisite network’ is closed to new replies.
