pods-frontier icon indicating copy to clipboard operation
pods-frontier copied to clipboard

Frontier in Multisite

Open carlosrovira opened this issue 11 years ago • 13 comments

I just found an issue with my testing of Frontier in Multisite.

I you "Network Activate" Frontier, the main site shows blank page. But other sub sites works ok.

To workaround this issue, I network deactivate, and activate in the sub site I need it, since newer sub sites will be created as a copy of the before mentioned sub site with Frontier activated.

For more info, I'm using a Gavick Theme (Gavern Framework) for my theme, but I tried switching to default WP theme and it show the same blank page issue.

Best

Carlos

carlosrovira avatar Jun 30 '14 09:06 carlosrovira

I can confirm this with Pods and Pods-Frontier network activated main site gives this error:

Fatal error: Call to undefined function frontier_get_regex() in ~/plugins/pods-frontier/pods-frontier.php on line 745

Since frontier_get_regex() is in the Pods Template component so this must have to do with order of including files.

Shelob9 avatar Jun 30 '14 16:06 Shelob9

I can confirm it to. I'll take a look at the includes.

-----Original Message----- From: "Josh Pollock" [email protected] Sent: ‎2014-‎06-‎30 06:42 PM To: "pods-framework/pods-frontier" [email protected] Cc: "David Cramer" [email protected] Subject: Re: [pods-frontier] Frontier in Multisite (#34)

I can confirm this with Pods and Pods-Frontier network activated main site gives this error: Fatal error: Call to undefined function frontier_get_regex() in ~/plugins/pods-frontier/pods-frontier.php on line 745 Since frontier_get_regex() is in the Pods Template component so this must have to do with order of including files. — Reply to this email directly or view it on GitHub.

DavidCramer avatar Jun 30 '14 16:06 DavidCramer

I was about to submit what looked like a bug and came across this. I came across the same issue as mentioned here (I also got the fatal error Josh mentions above), I'm on Multisite too.

It might be worth checking if Templates are activated in Components - I stopped getting the error once I sorted this.

Perhaps the error could be caught and a message reminding the user to activate templates could appear instead?

Pezzab avatar Jul 07 '14 14:07 Pezzab

@Pezzab Have you tested what happens if you manually activate the Templates component before activating Frontier? Templates gets turned on with pods_require_component() which doesn't run until 'setup_theme', which is probably too late on network. I can't test right now, but I bet that's it.

If need be we can do something like this: https://github.com/pods-framework/pods-code-library/blob/master/example/misc/examples/activate-pods-componets.php

Shelob9 avatar Jul 07 '14 20:07 Shelob9

As far as I can tell if Templates is activated first then there isn't an issue.

Pezzab avatar Jul 07 '14 20:07 Pezzab

Perry, that's excellent news. Thanks for testing this. I know how to fix this then and will later tonight.

Shelob9 avatar Jul 07 '14 20:07 Shelob9

@Pezzab and @carlosrovira I think this latest commit will fix this. Can either of you confirm?

Shelob9 avatar Jul 22 '14 03:07 Shelob9

Hi Josh,

I've tried different combinations of deactivating/reactivating (via network and on a sub site) Pods Frontier and Pods Frontier Templates and it hasn't fallen over.

Do you reckon it needs trying out on a clean WP install just to be sure - I deleted all the podsrel tables and reinstalled Pods but some settings were carried over from before (components were still installed)?

Pezzab avatar Jul 22 '14 08:07 Pezzab

@Pezzab No, this should force the Template component to be activated when components are loaded. It works when not in multisite. Still trying to figure out why it doesn't when not in multisite.

Thanks for your testing.

Shelob9 avatar Jul 22 '14 14:07 Shelob9

Hi Just tested with no luck. Sorry the problem persist :(

carlosrovira avatar Jul 22 '14 17:07 carlosrovira

@Pezzab and @carlosrovira thanks for your help on this. My latest commit works on my end, but I'd appreciate if you could test as well.

Shelob9 avatar Jul 22 '14 19:07 Shelob9

I got the same error but I solved it by updating PHP to higher version.

alexedev avatar Nov 09 '14 21:11 alexedev

Might be time to make Frontier 5.3+ only. This plus the Template editor issue...

Shelob9 avatar Nov 09 '14 22:11 Shelob9