Loading...
 
Skip to main content

Features / Usability


Upgrade to v7 blocked execution of custom plugins to guest users

I've written a number of custom plugins which worked fine under v6. I've upgraded the site to v7 and rechecked the plugin syntax BUT the plugins now will not work for users who are not logged in ('guests', perhaps).

Interestingly, the standard plugins (BOX, etc) work ok, just not mine, so something is missing. Permissions are set so that non-logged-in users can execute plugins, but they still will not run. I cannot find any parameter on the documentation that can help.

What might be the problem?

Example page: http://www.sceaptunegames.co.uk/tiki/LeagueSelectQuestion

Thanks

Rick Sapir / Tiki for Smarties wrote:
  1. Did you clear the Tiki caches after the upgrade?
  2. Can you confirm that your custom plugin PHP files are in the ../lib/wiki-plugins/*.php directory?
  3. Can you turn on Tiki's error reporting and see if there are any problems?

Thanks for responding. 😀
1) Yes. And again. 😑
2) Yes. AND they also run for a logged-in user, so had to be there anyway. They only fail to run for un-logged-in users. Which is the nub of the problem as other plugins do run!
3) No. I'm struggling to find in the online documentation where this can be switched on and where the logs appear. As it only occurs for not-logged-in users it hs to be a pssive feature but I can't see or find what it might be, so assumed there wasn't anything. There is nothing in the php logs, btw, and nothing in the normal wiki log.

A hint on (3) might be useful. It's something that's changed betwen v6 and v7. And may even be a bugfix or a missing plugin config parm - but I can't find that either. Very frustrating.

Cheers

Hmm... if your custom plugin works for some groups but not others, than I'm 99% it is a permissions issue.

Note that there were many changes between Tiki6 and Tiki7, including a upgrades to the plugin parser. Please review the release notesQuestion for details. Did you upgrade your plugin for Tiki 7? Please see the docs for detailsQuestion.

To enable the error reporting, use the Logging and Reporting options. See the docs for detailsQuestion.

HTH,

- RickQuestion | My Tiki Blog | My Tiki UserPage

Tiki for Dummies SmartiesQuestion, the best (and only) Tiki beginner's guide! Learn more...Question

Tiki EssentialsQuestion, the best-selling book for Tiki! Learn more...Question

Rick Sapir / Tiki for Smarties wrote:

Hmm... if your custom plugin works for some groups but not others, than I'm 99% it is a permissions issue.

To enable the error reporting, use the Logging and Reporting options. See the docs for detailsQuestion.

Thanks for that. As far as v7 works, I checked the plugin syntax and ensured the prefs file was updated as soon as I found the problem, but that made no difference (I guess not if it works for valid users, anyway). Plugin execution doesn't need approving and I keep on checking anyway to see if any permissions are outstanding (sorry to keep saying I've done everything you suggested already, but I guess that's why I'm stuck!).

As far as permisisons go, I've set what I think needs to be done as far as execution goes without creating and giving permissions to every single plugin. Global prefs are set to allow plugin excecution, for example (obviously).

Just a thought: in the 'prefs'=> can you give a group name as well as an individual name? I've tried, but now have no idea as to how to create a permission to that name so the Permissions page can be used to assign permissions to it.

Sorry if this sounds a bit pathetic, but I've trawled the documentation to solve this and couldn't see/find anything.