Hi there,
We have plugin called "Guestbook", which some company created a while back. Now, a couple of years later, we needed to add extra functionality to that plugin. In this specific scenario, we are getting the Guestbook entries for a specific user. It used to be only for a link. Being the haphazard coder I am, I modified the plugin's .pm file.
Now, the additional function is working, but with every 3-5 refreshes of the page/template the function is called, it complains that GT can't find that function inside the module :
Error: Unable to load module 'Plugins::Guestbook':
Error: No subroutine 'Plugins::Guestbook::load_guestbook_user' in 'Plugins/Guestbook.pm'
Seeing as I obviously did something wrong, could someone please explain to me the proper way of doing it? For now I moved the function to a global, but it is simply just to much code to stay there.
Regards,
Pieter
Sacrifice is not about what you lose,
it is about what you gain in the process.
We have plugin called "Guestbook", which some company created a while back. Now, a couple of years later, we needed to add extra functionality to that plugin. In this specific scenario, we are getting the Guestbook entries for a specific user. It used to be only for a link. Being the haphazard coder I am, I modified the plugin's .pm file.
Now, the additional function is working, but with every 3-5 refreshes of the page/template the function is called, it complains that GT can't find that function inside the module :
Code:
Error: Unable to load module 'Plugins::Guestbook':
Error: No subroutine 'Plugins::Guestbook::load_guestbook_user' in 'Plugins/Guestbook.pm'
Seeing as I obviously did something wrong, could someone please explain to me the proper way of doing it? For now I moved the function to a global, but it is simply just to much code to stay there.
Regards,
Pieter
Sacrifice is not about what you lose,
it is about what you gain in the process.