Downgrading a WP3.3.1 Network Install

Good Morning– Today I need to downgrade a site from a WP network install to a normal WP install. I thought this would be simple — just removing these lines from wp-config.php: define( ‘MULTISITE’, true ); define( ‘SUBDOMAIN_INSTALL’, false ); $base=”/xxx/blog/”; define( ‘DOMAIN_CURRENT_SITE’, ‘’ ); define( ‘PATH_CURRENT_SITE’, ‘/xxx/blog/’ ); define( ‘SITE_ID_CURRENT_SITE’, 1 ); define( ‘BLOG_ID_CURRENT_SITE’, … Read more

Completely uninstall PostgreSQL 9.0.4 from Mac OSX Lion?

This question may look like a duplicate of: How to uninstall postgresql on my Mac (running Snow Leopard) however, there are two major differences. I’m running Lion and I’m trying to uninstall PostgreSQL 9.0.4. I’ve looked at the last question and the link that it referenced, but I did not find a file called “uninstall-postgresql” … Read more

Plugin Uninstall and Deactivate via Options Menu

I’m creating my first plugin (modifying an existing one for what I need) and although it’s working fine i am trying to create a simple options menu to allow either deactivation of the plugin, or deactivation and removal of tables that the plugin creates. In the options panel I have the following form to allow … Read more

Plugin uninstall: why run dbDelta after $wpdb->query($drop_sql)

i am reading professional wordpress. their code for uninstalling a plugin is //build our query to delete our custom table $sql = “DROP TABLE ” . $table_name . “;”; //execute the query deleting the table $wpdb->query($sql); require_once(ABSPATH .’wp-admin/includes/upgrade.php’); dbDelta($sql); my question is why run dbDelta after $wpdb->query($sql); 1 Answer 1 This is indeed bizarre. I … Read more

Example of uninstaller routine to remove all custom theme options from wp_options

All of my theme’s custom options are preceeded with “mytheme_” + option. For example, mytheme_color1, mytheme_color2, mytheme_body_font_color, etc… I’d like to create a plugin that uninstalls all of the items in wp_options where the option is preceeded with “mytheme_” If you have a reference or example, please share it. Thanks in advance 🙂 2 Answers … Read more

How to thoroughly purge and reinstall postgresql on ubuntu? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 4 years ago. Improve this question Somehow I’ve managed to completely bugger the install of postgresql on Ubuntu karmic. I want to start over from … Read more

Plugin could not be deleted due to an error: Could not fully remove the plugin(s) my-plugin/my-plugin.php

Why uninstalling the following (empty) plugin results in error? Here is my-plugin/my-plugin.php: <?php /* Plugin Name: My Plugin */ and my-plugin/uninstall.php: <?php When I click ‘Delete’ and then confirm, I get the following error: Plugin could not be deleted due to an error: Could not fully remove the plugin(s) my-plugin/my-plugin.php. What’s wrong here? ~/Sites/wordpress/wp-content/plugins/my-plugin $ … Read more

How does uninstalling WordPress plugins work?

I’m trying to drop a database table when the user uninstalls the plugin. But what does uninstalling a WordPress plugin really mean? There’s the deactivation hook and there’s also the uninstall hook. And then there’s the uninstall.php file. On the constructor of the plugin class I have the uninstall hook: register_uninstall_hook(__FILE__, array($this, ‘uninstall_housekeeping’)); Then the … Read more