• Resolved motomixon

    (@motomixon)


    I just tried to activate the base plugin 2.0.1, and receive the following error:

    Plugin could not be activated because it triggered a fatal error.
    
    Fatal error: Cannot redeclare image() (previously declared in /home/...deleteing my info.../public_html/mvazmtn/wp-content/themes/overall/framework/options/option_shortcodes.php:152) in
    /home/...deleting my info.../public_html/mvazmtn/wp-content/plugins/oik/bobbfunc.inc on line 123

    The Overall theme is essential to the website, so I cannot change that. Any idea what is going on?

    As far as I can tell, this is the code in the Overall theme file

    function image( $atts, $content = null ) {
    		extract( shortcode_atts( array(
    		'small' => '',
    		'big' => '',
    		'align' => '',
    		'width' => '',
    		'height' => '',
    		'type' => '',
    		'skin' => '',
    		'link' => '',
    		'target' => '',
    		), $atts ) );
    
    		$content =  '<div class="image_frame_'.esc_attr($align).'">';
    
    		if(esc_attr($skin) != "off"){
    		$content .= '<div class="image_skin">';
    		$content .= '<div class="image_inside_border">';
    		$content .= '<div class="image_skin_anime" style="width:'.esc_attr($width).'px; height:'.esc_attr($height).'px;">';
    		$content .= '<div class="image_holder" id="zoom_'.esc_attr($type).'">';
    		}
    
    		if(esc_attr($big) != ""){
    		$content .= '<a href="'.esc_attr($big).'" rel="prettyPhoto[canyon_gallery]">';
    		}
    
    		if(esc_attr($link) != ""){
    		$content .= '<a href="'.esc_attr($link).'" target="'.esc_attr($target).'">';
    		}
    
    		$content .= '<img src="'.esc_attr($small).'" style="width:'.esc_attr($width).'px; height:'.esc_attr($height).'px;" alt=""/>';
    
    		if(esc_attr($big) != "" or esc_attr($link) != ""){
    		$content .= '</a>';
    		}
    
    		if(esc_attr($skin) != "off"){
    		$content .= '</div></div></div></div>';
    		}
    
    		$content .='</div>';
    
    	return $content;
    
    	}
    	add_shortcode('image', 'image');

    http://wordpress.org/plugins/oik/

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Fatal error: Cannot redeclare image()’ is closed to new replies.