I'd like to try to write a patch to Joomla core so it doesn't die with
fatal error when it can't include a plugin file (in other words:
plugin exists in DB but filesystem entry is deleted).
Do you have any thoughts on how to notify administrator about the
problem, when such condition happens? The most strightforward solution
- sending an email every time - may kill his mailbox on a high traffic
website, and I'm open to better suggestions. I'm asking here because I
intend to submit the patch to bug tracker, if I succeed to make it.
--
Andrzej Godziuk
http://CloudAccess.net/
--
You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
To post to this group, send an email to joomla-...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-cm...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-cms?hl=en-GB.
Our support people deal with this problem all the time.
>
> If the plugin file doesn't exist, perhaps you could send a system email and
> then disable the plugin in the database. This would prevent multiple
> emails.
This looks like a good solution, thanks!
--
You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
To post to this group, send an email to joomla-...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-cm...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-cms?hl=en-GB.
On Jan 26, 4:53 pm, Louis Landry <louis.lan...@joomla.org> wrote:
> Yep... that sounds like a good idea Ian.
>
> Let us know when you have something to submit Andrew.
>
> - Louis
>
> On Tue, Jan 26, 2010 at 9:09 AM, Andrew Godziuk <and...@cloudaccess.net>wrote:
>
>
>
> > On Tue, Jan 26, 2010 at 3:46 PM, Ian MacLennan <ian.maclen...@joomla.org>
> > wrote:
> > > Interesting idea.
>
> > Our support people deal with this problem all the time.
>
> > > If the plugin file doesn't exist, perhaps you could send a system email
> > and
> > > then disable the plugin in the database. This would prevent multiple
> > > emails.
>
> > This looks like a good solution, thanks!
>
> > --
> > Andrzej Godziuk
> >http://CloudAccess.net/
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Joomla! CMS Development" group.
> > To post to this group, send an email to joomla-...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > joomla-dev-cm...@googlegroups.com<joomla-dev-cms%2Bunsu...@googlegroups.com>
Hannes
With 1.5 when you turn on debug, it will stop and show you the email,
it would be nice to fire an email off when ever an error happens with
what ever information you can get.
It handles fatal errors using JError::raise(), but this method fails
for parse errors.
Fatal error (missing function):
http://img.nopaste.pl/upload/jplugin-fatal-error_4b61dfc5b28cf.png
Parse error:
http://img.nopaste.pl/upload/jplugin-parse-error_4b61dff3bc4a9.png
Two questions to the community:
- Should I leave it as is, or disable plugin and silently reload the
page? Of course, I would still send the email.
- How do I unregister a plugin nicely? Usually I would do a SQL query,
but maybe it's a good moment to learn something? I couldn't find
anything like JPlugin::disable() but maybe there is other nice way to
do it?
I'm attaching a patch, it may not meet all Joomla code standards, I
didn't check it for this yet. One thing that certainly does not meet
standards is comments.
Please let know what do you think about it.