marcus Posted March 12, 2017 Author Share Posted March 12, 2017 Hi DonPachi, can you supply information about your environment (3.0 master or dev, PHP version)? I just managed to get it installed and running on both current master and dev, but pushed an update regarding PHP namespaces either way: https://github.com/marcus-herrmann/ProcessWire-FlagPages Link to comment Share on other sites More sharing options...
Outward Posted March 12, 2017 Share Posted March 12, 2017 Hi Marcus, Thanks for the response, I really appreciate it. I've installed the latest version but having the same issue, my PW install is 3.0.42 Master, PHP version 7.0. If I remove the FlagPages user permissions in the module settings, on the frontend I do get the 'You need to grant flagging permissions first!' output. When I apply the permission for superuser, $flags->renderList(); outputs blank. Link to comment Share on other sites More sharing options...
marcus Posted March 12, 2017 Author Share Posted March 12, 2017 Ah, I see. renderList() won't output anything when no page is flagged in the first place. You can see renderList as a result listing. Once you use renderLink, flag at least one page renderLink should output this very page Link to comment Share on other sites More sharing options...
Outward Posted March 12, 2017 Share Posted March 12, 2017 Apologies for the typo Marcus, I actually meant renderLink() will not ouput the link to add the page as a flag. Link to comment Share on other sites More sharing options...
marcus Posted March 12, 2017 Author Share Posted March 12, 2017 Hm, when you turn ProcessWire debug mode on (in site/config.php), do you get any warnings? Could you paste the call to renderLink() here? Does it contain an "echo"? Link to comment Share on other sites More sharing options...
Outward Posted March 12, 2017 Share Posted March 12, 2017 edit: The reason I was getting no ouput was that I didn't have SessionHandlerDB installed. Probably a rookie mistake, but I'd started implementing this module for testing as admin before I added front end login/registration functionality. Thanks for your help with this great module, I can see many uses for it. Do you have a BTC address so I can make a donation for your work? Link to comment Share on other sites More sharing options...
marcus Posted March 13, 2017 Author Share Posted March 13, 2017 This is really strange. What other Modules do you have installed (asking this question feels a little "WordPress" )? 2 Link to comment Share on other sites More sharing options...
Outward Posted March 16, 2017 Share Posted March 16, 2017 Hi Marcus, I had no other non-core modules installed at the time, it was the lack of SessionHandlerDB being activated on the basic profile that caused me issues. It's working beautifully now! However, my next step is implementing this as an option within each item of a selector list! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now