Unable to get permission key for view.
Unable to get permission key for view
I had assumed this is an issue based on permissions and so I have tinkered around with them, ensuring that all the pages of the site are capable of being viewed by both the default groups "Guest and Registered Users".
Unfortunately even after fiddling around and Googling a lot, I haven't found a resolve related to this issue.
Can someone please help? - I have provided a screenshot of the error in more detail.
...but I don't see why it should be listed in the call stack. Can you temporarily remove GA from your site?
Whist the site that I am using has Google Analytics, it's actually using it as an addon as to get a nice UI within the dashboard itself; using this project.https://github.com/c5labs/google-analytics...
As for the issue, I have attempted to remove this addon entirely and ran some tests. But nothing surrounding this proved a resolve.
Thank you again however!
If both exist: I don't know.
If only 'view_page' exists: change your code so it checks the 'view_page' pk instead of the 'page' pk/
If none exist: that'd be weird, because 'view_page' is a default pk. Then I'd add it manually in the database.
I've checked the database and I have found the table "view_page" however the "page" one is non-existent.
I hate to ask, but I am a complete novice to the programming world and wonder what you meant by adding "view_page" to the code? Could you please provide an example if it's not too much to ask.
Thank you in advance.
That should probably be "return $permissions->canViewPage();"
I'll post a bug report now, thank you so much for your help.
However every so often, on random occasion I'm now being presented with another error relating to the Google Analytics addon.
Which you can see in the screenshot below. - I've also reported this on the official repo too.