khanman225
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Clean Up] Optimize not working in WP 3.9.xThe way WordPress runs some mysql queries has changed in 3.9 and mysql_query is deprecated in favor of mysqli.
Replace these two spots in wp_clean_up_admin.php:
line 108
function wp_clean_up_optimize(){ global $wpdb; $wcu_sql = 'SHOW TABLE STATUS FROM '.DB_NAME; $result = $wpdb->get_results($wcu_sql); foreach($result as $row) { $wcu_sql = 'OPTIMIZE TABLE '.$row->Name; $wpdb->query($wcu_sql); } }line 363
global $wpdb; $total_size = 0; $alternate = " class='alternate'"; $wcu_sql = 'SHOW TABLE STATUS FROM <code>'.DB_NAME.'</code>'; $result = $wpdb->get_results($wcu_sql); foreach($result as $row) { $table_size = $row->Data_length + $row->Index_length; $table_size = $table_size / 1024; $table_size = sprintf("%0.3f",$table_size); $every_size = $row->Data_length + $row->Index_length; $every_size = $every_size / 1024; $total_size += $every_size; echo "<tr". $alternate ."> <td class='column-name'>". $row->Name ."</td> <td class='column-name'>". $table_size ." KB"."</td> </tr>\n"; $alternate = (empty($alternate)) ? " class='alternate'" : ""; }ATTENTION CUDAZI MONO USERS
In the file /wp-content/themes/mono/libraries/theme-options.php there is this code on lines 10-12:
if ( ! is_plugin_active( 'option-tree/index.php' ) ) { echo "<div class='update-nag'>" . __( 'Wait! You need to install and activate the OptionTree plugin! (See Help Files)', 'cudazi' ) . "</div>"; }In the newest version of Option Tree, there is no index.php in the main directory. If you want to just get rid of the nag, comment out the line that starts with “echo” (Add “//” at the beginning).
If you want to keep the nag relevant, change “option-tree/index.php” to “option-tree/ot-loader.php”.
Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] Call to function error@mmcginnis – I still get the same error when using the different hooks.
@scribu – If I comment out the clothing-to-actors call then the error is gone on the edit actor page and the edit clothing page (but still on the edit tv shows page). Not sure if that helps.
Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] Call to function errorSame problem on upgrade.
Here are my registration function calls:
p2p_register_connection_type( array( 'name' => 'actors_to_tv-shows', 'from' => 'actors', 'to' => 'tv-shows', 'reciprocal' => true, 'fields' => array( 'character' => array('title' => 'Character', 'type' => 'text') ) ) ); p2p_register_connection_type( array( 'name' => 'clothing_to_actors', 'from' => 'clothing', 'to' => 'actors', 'reciprocal' => true ) ); p2p_register_connection_type( array( 'name' => 'clothing_to_tv-shows', 'from' => 'clothing', 'to' => 'tv-shows', 'reciprocal' => true ) ); p2p_register_connection_type( array( 'name' => 'clothing_to_clothing', 'from' => 'clothing', 'to' => 'clothing', 'reciprocal' => true ) );