Simple Plugin - User tab not displayed when class_MyPlugin.inc is not propertly indented
Hi,
I'm adding a new user tab, so I've followed this documentation : https://documentation.fusiondirectory.org/en/documentation_dev/writing_simple_plugins?do=export_timeline and ran into a strange issue.
I've copied & pasted provided code in a new file at the right place, and refresh cache, log out and back in, but the new tab wasn't showing up. I tried everything, activated log, etc : Even when adding random text in the class file, there was no error displayed on the screen.
Thanks to Clement Oudot, it finally worked after we indented the whole class file. We've processed as follow :
- Open in vi editor
- Enter V
- Enter G
- Press twice =
- Save file, update cache, log out/log in.
I'm not a PHP developper, but it looks like the parsing of plugins folders does not support bad indentation in class file while bad indentations are presents in the documentation.
Since it took me more time to figure this out than I'd like to admit, I hope this can help someone with same issue.
(from redmine: issue id 5492, created on 2017-04-25, closed on 2017-04-25)
- Custom Fields:
- Bug in version: 1.0.20
- Support contract: None