I am creating a WordPress plugin for get a quote .
When I try to activate the plugin a error
The plugin generated 123 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin..
I searched internet and found that it is caused by spaces or new lines before the opening <?php
tag or after the closing ?>
tag. I checked my files and remove all that type of spaces and try to reinstall my plugin.But still the error exists and also it create some errors in my other plugin functions.
Below is my plugin script
<?php
/*
Plugin Name: get_a_quote
Plugin URI: http://galtech.org/beta.com
Version: 0.8.04b
*/
//ob_start();
error_reporting(E_ALL);
global $wpdb;
$get_a_quote_table = $wpdb->prefix . 'quote';
$get_a_quote_table_projectinfo = $wpdb->prefix . 'projectinfo';
$get_a_quote_table_settings = $wpdb->prefix . 'get_a_quote_settings';
define('GET_A_QUOTE_TABLE', $wpdb->prefix . 'quote');
define('GET_A_QUOTE_TABLE_PROJECTINFO', $wpdb->prefix . 'projectinfo');
define('GET_A_QUOTE_TABLE_SETTINGS', $wpdb->prefix . 'get_a_quote_settings');
/*define(NETWORKS_INV_TABLE_PICTURES, $wpdb->prefix . 'pictures');
define(STAFF_PHOTOS_DIRECTORY, WP_CONTENT_DIR . "/uploads/staff-photos/");*/
require_once( dirname (__FILE__).'/install.php' );
require_once( dirname (__FILE__).'/admin/admin.php' );
//require_once( dirname (__FILE__).'/functions.php' );
//trigger_error(ob_get_contents(),E_USER_ERROR);
//echo get_option('plugin_error');
?>