Gossamer Forum
Quote Reply
plugin debugging
I'm working on a plugin and it tells me "Error running plugin POST hook etc, etc, Reason: Compilation failed in require at GT::Plugins::_load_hook line 261."

Is there any way to get it to tell you on which line of the actual plugin that compilation failed? That would be extremely helpful for debugging.

thanks,
Michael Coyne
seaturtle.org
Quote Reply
Re: [mcoyne] plugin debugging In reply to
If you have shell access, you can go to "admin/Plugins/GForum" and enter

perl -c YourPlugin.pm

(you might need to add a line

use lib '/path/to/gforum/admin';

for this to work).

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] plugin debugging In reply to
Thanks Yogi. That did the trick!
Michael Coyne
seaturtle.org