[wp-hackers] Upgrading a plugin that works on WP 2.9.2 to work with WP 3.0.1+

Dustin Lennon demonicpagan at gmail.com
Thu Sep 9 23:36:29 UTC 2010


I'm still at a loss at how to get my plugin to activate without errors. Is
there anything, anything at all that I can do to my code to help me out? The
WP Codex hasn't been updated in how to write plugins that use a database to
store values. I do know that in the codex that it still mentions using
require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); and that is
deprecated. Having it in my code originally cased it to show a white page
after plugin activation.

Right now, I have a plugin that says it creates a fatal error, what fatal
error I don't know as it don't give any more information and am unsure
whether or not if I do any plugin updates, it updates the MySQL tables.

Plugin source: http://stelth2000inc.com/ffxi.phps

This message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and delete
this e-mail from your system. E-mail transmission cannot be guaranteed to be
secure or error-free as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete, or contain viruses. The sender
therefore does not accept liability for any errors or omissions in the
contents of this message, which arise as a result of e-mail transmission.



-----Original Message-----
From: Dustin Shea [mailto:demonicpagan at gmail.com] 
Sent: Thursday, September 09, 2010 1:00 AM
To: wp-hackers at lists.automattic.com
Subject: Re: [wp-hackers] Upgrading a plugin that works on WP 2.9.2 to work
with WP 3.0.1+

Plugin was deactivated when I went to the plugins page to activate, when I
did, same error w/o any indication as to what it is.

-Dustin

On 9/9/2010 12:49 AM, Andrew Nacin wrote:
> On Thu, Sep 9, 2010 at 1:41 AM, Dustin Shea<demonicpagan at gmail.com>
wrote:
>
>> I've added the if (!function_exists('somefucntion') { ... } before every
>> function which stopped cannot redeclare function errors, now when I try
to
>> activate it, it just says Plugin could not be activated because it
triggered
>> a fatal error. No other information is provided about it.
>
>
> That usually happens when you refresh the page (the URL sticks and
generates
> the message). Try clicking the Plugins menu again. It may already be
> activated, or if not, try to activate it.
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

-- 
This message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and delete
this e-mail from your system. E-mail transmission cannot be guaranteed to be
secure or error-free as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete, or contain viruses. The sender
therefore does not accept liability for any errors or omissions in the
contents of this message, which arise as a result of e-mail transmission.



More information about the wp-hackers mailing list