The Pods Framework is a Content Development Framework for WordPress - It lets you create and extend content types that can be used for any project. Add fields of various types we've built in, or add your own with custom inputs, you have total control.
I have a set of pods_ui forms that I've created on our website's front end that are restricted to a certain set of users, but the users aren't set up with a certain role so I do the permissions check in the page. Works great on page 1 of the 'manage' page but if I navigate to page 2 it throws a 500 and says it can't find the function I use to check permissions ( this function is loaded on 'init' hook), any suggestions?
Expected Behavior
I would expect when navigating thru the pages, the first page to work like the second.
Current Behavior
The function in the page that calls the list of users allowed to use the page ( 'is_ambassador()' ) is loaded on 'init' & it looks like from the 500 error I get, the pods page code runs before init so the function hasn't loaded yet
500: [Mon Aug 13 17:50:20.730036 2018] [:error] [pid 31980] PHP Fatal error: Call to undefined function is_ambassador() in /nas/content/live/hikeitnew/wp-content/plugins/pods/components/Pages.php(1024) : eval()'d code on line 5, referer: https://trails.hikeitbaby.com/my-tn-links/
Issue Overview
I have a set of pods_ui forms that I've created on our website's front end that are restricted to a certain set of users, but the users aren't set up with a certain role so I do the permissions check in the page. Works great on page 1 of the 'manage' page but if I navigate to page 2 it throws a 500 and says it can't find the function I use to check permissions ( this function is loaded on 'init' hook), any suggestions?
Expected Behavior
I would expect when navigating thru the pages, the first page to work like the second.
Current Behavior
The function in the page that calls the list of users allowed to use the page ( 'is_ambassador()' ) is loaded on 'init' & it looks like from the 500 error I get, the pods page code runs before init so the function hasn't loaded yet
500: [Mon Aug 13 17:50:20.730036 2018] [:error] [pid 31980] PHP Fatal error: Call to undefined function is_ambassador() in /nas/content/live/hikeitnew/wp-content/plugins/pods/components/Pages.php(1024) : eval()'d code on line 5, referer: https://trails.hikeitbaby.com/my-tn-links/
Steps to Reproduce (for bugs)
Go to https://trails.hikeitbaby.com/my-tn-links/ (login in upper right/ user: hibtester pass: testingP@55word
Navigate to second page of listed trails
Notice the debug values on the very top of page change
Possible Solution
WordPress Environment
Pods Package Export (helpful!)
Workaround or Alternate Solution Until Bug is Addressed
Related Issues and/or PRs