WPIntell

Source evidence

[Plugin: WP Tuner] wp tuner, die()

WP Tuner · support · 2010-09-09T16:57:00+00:00

complaintsentiment
highseverity
1.0relevance
22replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 31 rows with source links

12.9% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

27 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
jensg unresolved
If I enable wp tuner, it simply dies, i can’t even go into my admin panel anymore. I had to rename/delete the directory wptuner to regain access to my blog. I may have a similar problem. I activate the plugin and I get a blank white screen. I fixed the issue by removing wp tuner entries from wp-config.php and disabling the plugin. Sad… I had high hopes for this plugin. Same think. Completely incompatible with WP 3.0. Too bad. I seem to have found a workaround for WP Tuner 0.9.6 on WordPress 3.0.x. Create wp-content/db.php file with this code: <?php global $wpTunerStart, $wpTunerStartCPU; $wpTunerStart = microtime(); // get start time as early as we can if ( function_exists( 'getrusage' ) ) { $wpTunerStartCPU = getrusage(); } if ( file_exists(dirname(__FILE__).'/plugins/wptuner/wptunertop.php') ) @include_once(dirname(__FILE__).'/plugins/wptuner/wptunertop.php'); // fire up WPTuner else @include_once(ABSPATH . WPINC . '/wp-db.php'); ?> Note the global variables and slightly different path if copying the code from wp-config.php . Remove the plugin’s code from wp-config.php . Open wptunertop.php and set WPTUNER_NOTCONFIG to false in line 27: define('WPTUNER_NOTCONFIG', false); The purpose of wptunertop.php is to load the plugin as early as possible, before the inclusion of wp-db.php , which is then included by the plugin itself. This approach is not compatible with WordPress 3.0, because wpdb constructor calls is_multisite() , which is not defined yet due to the wrong calling sequence. Being called from wp-content/db.php , the file is still loaded before database initialization, so the plugin works as intended. I will try your work-around later (when I’m not doing homework). It seemed to work, but then WPTuner Broker WordPress again. Too bad. Looked like a powerful app when I saw it for a few minutes!. 🙂 I’ve been using this trick for a couple of months and it still works so far 🙂 The only issue I can think of is when you deactivate and reactivate the plugin, it changes wp-config.php again. In this case you need to repeat step 2. If you describe the exact problem, perhaps a solution can be found. I gave this a try and still have the white screen of death on the admin screen. I also noticed when opening this plugin to preform this edit that the plugin author is in violation of the GPL. The plugin shouldn’t have been accepted by WordPress.org: Copyright 2008 ICTA / Mr Pete (email : WP-Tuner at ICTA dot net) I have not yet chosen a license for this software. For now, if you have received specific written permission from me to use this software, then you are free to use it personally according to the terms I gave you. You may not redistribute it to others. Guys, RENAME FOLDER WPTUNER TO WPTUNER1 !!!!! And plugin wll work!!! Renaming the plugin folder just allows you to access the admin area again if it has been broken. The only way I know so far to make the plugin actually work is to perform the steps described above. The tip above works great. The problem is that every time the plugin does anything, it tries to re-write wp-config.php, which will give you white screen of death again and again. Simple fix: open wptuner/wptunersetup.php comment out the TWO calls to to the wpconfig injector, e.g. // wptuner_wpconfig_inject(); (don’t comment out the function declaration itself or you’ll have issues) then you should go good to go! dwertheimer , thanks for pointing this out. On my install the plugin was updating wp-config.php on activation. For some reason I didn’t think of a solution for this. I got it to work, also. Thanks! Glad that worked for you guys too. For everyone else, MAKE SURE YOU IMPLEMENT THOSE CHANGES to the plugin code BEFORE YOU ACTIVATE IT. If you see the white screen of death, it just means the injector got to your site config before you made the changes. If that’s the case, it’s no big deal, just open your wp-config.php file in the filesystem scroll to the bottom, and remove the code that was injected by the plugin: //WP Tuner Plugin by MrPete------------ ... //-END WP Tuner Plugin------------------ Why does the plugin claim to be 3.1 compatible if it’s not??? I’ll wait for a version that’s been fixed… Why does the plugin claim to be 3.1 compatible It doesn’t: Compatible up to: 2.8.4 Yes – my mistake – I got confused between the plugin description, which says 2.8.4, and the layout in the plugin directory page http://wordpress.org/extend/plugins/wptuner/ , where the dropdown menu after ‘compatibility’ makes it look (to me) like it is saying the plugin is 3.1 compatible. Apologies. My deepest apologies to everyone! I have not been paying attention to developments as I ought (due to Real Life challenges). I will squeeze out some time to bring this fully up to date ASAP. Create wp-content/db.php file with this code: It doesn’t function for me. I have Wp 3.1.2. I have created the file db.php in wp-content with the code, but then my wordpress shows the page of the initial installation of WordPress!! What’s wrong? That only worked in WP 3.0.x. I haven’t yet found a worthy solution for 3.1.x. @mrpete : we need you here 🙂 I think I have found a solution: In wptunertop.php find the below line and comment it out. $wpdb = new wpdb_wptunerversion(DB_USER, DB_PASSWORD, DB_NAME, DB_HOST); Seems to work. @wpsites : your change is in addition to others suggested here or works on its own? That on it’s own worked on a recent version of WP

Comments

22 shown
rsknowles 2010-09-10T02:43:00+00:00

I may have a similar problem. I activate the plugin and I get a blank white screen. I fixed the issue by removing wp tuner entries from wp-config.php and disabling the plugin. Sad… I had high hopes for this plugin.

Li-An 2010-09-16T07:41:00+00:00

Same think. Completely incompatible with WP 3.0. Too bad.

Sergey Biryukov 2010-10-03T03:55:00+00:00

I seem to have found a workaround for WP Tuner 0.9.6 on WordPress 3.0.x. Create wp-content/db.php file with this code: <?php global $wpTunerStart, $wpTunerStartCPU; $wpTunerStart = microtime(); // get start time as early as we can if ( function_exists( 'getrusage' ) ) { $wpTunerStartCPU = getrusage(); } if ( file_exists(dirname(__FILE__).'/plugins/wptuner/wptunertop.php') ) @include_once(dirname(__FILE__).'/plugins/wptuner/wptunertop.php'); // fire up WPTuner else @include_once(ABSPATH . WPINC . '/wp-db.php'); ?> Note the global variables and slightly different path if copying the code from wp-config.php . Remove the plugin’s code from wp-config.php . Open wptunertop.php and set WPTUNER_NOTCONFIG to false in line 27: define('WPTUNER_NOTCONFIG', false); The purpose of wptunertop.php is to load the plugin as early as possible, before the inclusion of wp-db.php , which is then included by the plugin itself. This approach is not compatible with WordPress 3.0, because wpdb constructor calls is_multisite() , which is not defined yet due to the wrong calling sequence. Being called from wp-content/db.php , the file is still loaded before database initialization, so the plugin works as intended.

James Brewster 2010-10-17T16:41:00+00:00

I will try your work-around later (when I’m not doing homework). It seemed to work, but then WPTuner Broker WordPress again. Too bad. Looked like a powerful app when I saw it for a few minutes!. 🙂

Sergey Biryukov 2010-10-17T19:03:00+00:00

I’ve been using this trick for a couple of months and it still works so far 🙂 The only issue I can think of is when you deactivate and reactivate the plugin, it changes wp-config.php again. In this case you need to repeat step 2. If you describe the exact problem, perhaps a solution can be found.

Change 2010-10-21T18:20:00+00:00

I gave this a try and still have the white screen of death on the admin screen. I also noticed when opening this plugin to preform this edit that the plugin author is in violation of the GPL. The plugin shouldn’t have been accepted by WordPress.org: Copyright 2008 ICTA / Mr Pete (email : WP-Tuner at ICTA dot net) I have not yet chosen a license for this software. For now, if you have received specific written permission from me to use this software, then you are free to use it personally according to the terms I gave you. You may not redistribute it to others.

Den999 2010-11-09T08:21:00+00:00

Guys, RENAME FOLDER WPTUNER TO WPTUNER1 !!!!! And plugin wll work!!!

Sergey Biryukov 2010-11-15T02:24:00+00:00

Renaming the plugin folder just allows you to access the admin area again if it has been broken. The only way I know so far to make the plugin actually work is to perform the steps described above.

dwertheimer 2010-11-21T16:33:00+00:00

The tip above works great. The problem is that every time the plugin does anything, it tries to re-write wp-config.php, which will give you white screen of death again and again. Simple fix: open wptuner/wptunersetup.php comment out the TWO calls to to the wpconfig injector, e.g. // wptuner_wpconfig_inject(); (don’t comment out the function declaration itself or you’ll have issues) then you should go good to go!

Sergey Biryukov 2010-11-22T02:41:00+00:00

dwertheimer , thanks for pointing this out. On my install the plugin was updating wp-config.php on activation. For some reason I didn’t think of a solution for this.

James Brewster 2010-11-22T04:21:00+00:00

I got it to work, also. Thanks!

dwertheimer 2010-11-22T09:24:00+00:00

Glad that worked for you guys too. For everyone else, MAKE SURE YOU IMPLEMENT THOSE CHANGES to the plugin code BEFORE YOU ACTIVATE IT. If you see the white screen of death, it just means the injector got to your site config before you made the changes. If that’s the case, it’s no big deal, just open your wp-config.php file in the filesystem scroll to the bottom, and remove the code that was injected by the plugin: //WP Tuner Plugin by MrPete------------ ... //-END WP Tuner Plugin------------------

nstoker 2011-02-27T13:54:00+00:00

Why does the plugin claim to be 3.1 compatible if it’s not??? I’ll wait for a version that’s been fixed…

Sergey Biryukov 2011-02-27T18:54:00+00:00

Why does the plugin claim to be 3.1 compatible It doesn’t: Compatible up to: 2.8.4

nstoker 2011-02-27T20:41:00+00:00

Yes – my mistake – I got confused between the plugin description, which says 2.8.4, and the layout in the plugin directory page http://wordpress.org/extend/plugins/wptuner/ , where the dropdown menu after ‘compatibility’ makes it look (to me) like it is saying the plugin is 3.1 compatible. Apologies.

MrPeteH 2011-05-03T16:47:00+00:00

My deepest apologies to everyone! I have not been paying attention to developments as I ought (due to Real Life challenges). I will squeeze out some time to bring this fully up to date ASAP.

Galerio 2011-05-17T15:02:00+00:00

Create wp-content/db.php file with this code: It doesn’t function for me. I have Wp 3.1.2. I have created the file db.php in wp-content with the code, but then my wordpress shows the page of the initial installation of WordPress!! What’s wrong?

Sergey Biryukov 2011-05-17T15:28:00+00:00

That only worked in WP 3.0.x. I haven’t yet found a worthy solution for 3.1.x.

Ovidiu 2011-05-30T20:01:00+00:00

@mrpete : we need you here 🙂

WPsites 2011-07-07T11:41:00+00:00

I think I have found a solution: In wptunertop.php find the below line and comment it out. $wpdb = new wpdb_wptunerversion(DB_USER, DB_PASSWORD, DB_NAME, DB_HOST); Seems to work.

Ovidiu 2011-07-14T08:50:00+00:00

@wpsites : your change is in addition to others suggested here or works on its own?

WPsites 2011-07-14T09:00:00+00:00

That on it’s own worked on a recent version of WP