You are here:  » Error Message on activating Plugin


Error Message on activating Plugin

Submitted by vialli on Sun, 2011-11-27 20:22 in

Having uploaded the /pto to my plugins directory I activated the plugin but now get the following error message

Use of undefined constant WP_ALLOW_MULTISITE - assumed 'WP_ALLOW_MULTISITE' in /home/websites/public_html/wp-content/plugins/pto/pto.php on line 82

Although everything seems to work it appears on the site as well as admin.

Any help greatly appreciated.

Submitted by support on Mon, 2011-11-28 09:15

Hi vialli,

Thanks for that - i'll ensure that the fix is incorporated into the distribution shortly, the code should be using defined() to check for the setting in addition to testing the value. To fix in an existing installation; look for the following code at line 82 of pto.php

if (WP_ALLOW_MULTISITE)

...and REPLACE with:

if (defined("WP_ALLOW_MULTISITE") && WP_ALLOW_MULTISITE)

And in pto_settings.php look for the following code at line 154:

    if (WP_ALLOW_MULTISITE)

...and REPLACE with:

    if (defined("WP_ALLOW_MULTISITE") && WP_ALLOW_MULTISITE)

Cheers,
David.

Submitted by vialli on Mon, 2011-11-28 13:05

David,

Sorted, many thanks.

Cheers

Steve