[wp-trac] Re: [WordPress Trac] #9915: Cannot activate plugin which
override function from pluggable.php
WordPress Trac
wp-trac at lists.automattic.com
Sat May 23 10:48:02 GMT 2009
#9915: Cannot activate plugin which override function from pluggable.php
--------------------------+-------------------------------------------------
Reporter: sirzooro | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 2.9
Component: General | Version: 2.7.1
Severity: normal | Resolution:
Keywords: |
--------------------------+-------------------------------------------------
Changes (by sirzooro):
* status: closed => reopened
* resolution: duplicate =>
Comment:
Thanks for reply. I checked few more things and was able to reproduce it
on my dev box too - I had disabled function overriding option in my
plugin. When I enabled it, problem appeared too.
As I mentioned earlier, this problem occurs when plugin is activated. I
added few lines to it and found that during plugin activation
pluggable.php file is already loaded, so it must cause problems.
Code:
{{{
if ( function_exists( 'wp_password_change_notification' ) ) {
$included_files = get_included_files();
foreach ($included_files as $filename) {
echo "$filename<br>\n";
}
die;
}
}}}
Output:
{{{
C:\wordpress.local\wp-admin\plugins.php
C:\wordpress.local\wp-admin\admin.php
C:\wordpress.local\wp-load.php
C:\wordpress.local\wp-config.php
C:\wordpress.local\wp-settings.php
C:\wordpress.local\wp-includes\compat.php
C:\wordpress.local\wp-includes\functions.php
C:\wordpress.local\wp-includes\classes.php
C:\wordpress.local\wp-includes\wp-db.php
C:\wordpress.local\wp-includes\cache.php
C:\wordpress.local\wp-includes\plugin.php
C:\wordpress.local\wp-includes\default-filters.php
C:\wordpress.local\wp-includes\streams.php
C:\wordpress.local\wp-includes\gettext.php
C:\wordpress.local\wp-includes\l10n.php
C:\wordpress.local\wp-includes\formatting.php
C:\wordpress.local\wp-includes\capabilities.php
C:\wordpress.local\wp-includes\query.php
C:\wordpress.local\wp-includes\theme.php
C:\wordpress.local\wp-includes\user.php
C:\wordpress.local\wp-includes\general-template.php
C:\wordpress.local\wp-includes\link-template.php
C:\wordpress.local\wp-includes\author-template.php
C:\wordpress.local\wp-includes\post.php
C:\wordpress.local\wp-includes\post-template.php
C:\wordpress.local\wp-includes\category.php
C:\wordpress.local\wp-includes\category-template.php
C:\wordpress.local\wp-includes\comment.php
C:\wordpress.local\wp-includes\comment-template.php
C:\wordpress.local\wp-includes\rewrite.php
C:\wordpress.local\wp-includes\feed.php
C:\wordpress.local\wp-includes\bookmark.php
C:\wordpress.local\wp-includes\bookmark-template.php
C:\wordpress.local\wp-includes\kses.php
C:\wordpress.local\wp-includes\cron.php
C:\wordpress.local\wp-includes\version.php
C:\wordpress.local\wp-includes\deprecated.php
C:\wordpress.local\wp-includes\script-loader.php
C:\wordpress.local\wp-includes\class.wp-dependencies.php
C:\wordpress.local\wp-includes\class.wp-scripts.php
C:\wordpress.local\wp-includes\functions.wp-scripts.php
C:\wordpress.local\wp-includes\class.wp-styles.php
C:\wordpress.local\wp-includes\functions.wp-styles.php
C:\wordpress.local\wp-includes\taxonomy.php
C:\wordpress.local\wp-includes\update.php
C:\wordpress.local\wp-includes\canonical.php
C:\wordpress.local\wp-includes\shortcodes.php
C:\wordpress.local\wp-includes\media.php
C:\wordpress.local\wp-includes\http.php
C:\wordpress.local\wp-includes\vars.php
C:\wordpress.local\wp-content\plugins\akismet\akismet.php
C:\wordpress.local\wp-includes\pluggable.php
C:\wordpress.local\wp-includes\widgets.php
C:\wordpress.local\wp-includes\locale.php
C:\wordpress.local\wp-content\themes\transient\functions.php
C:\wordpress.local\wp-admin\includes\admin.php
C:\wordpress.local\wp-admin\includes\bookmark.php
C:\wordpress.local\wp-admin\includes\comment.php
C:\wordpress.local\wp-admin\includes\file.php
C:\wordpress.local\wp-admin\includes\image.php
C:\wordpress.local\wp-admin\includes\media.php
C:\wordpress.local\wp-admin\includes\import.php
C:\wordpress.local\wp-admin\includes\misc.php
C:\wordpress.local\wp-admin\includes\plugin.php
C:\wordpress.local\wp-admin\includes\post.php
C:\wordpress.local\wp-admin\includes\taxonomy.php
C:\wordpress.local\wp-admin\includes\template.php
C:\wordpress.local\wp-admin\includes\theme.php
C:\wordpress.local\wp-admin\includes\user.php
C:\wordpress.local\wp-admin\includes\update.php
C:\wordpress.local\wp-includes\registration.php
C:\wordpress.local\wp-admin\menu.php
C:\wordpress.local\wp-content\plugins\test\test.php
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9915#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list