• Neither versions Version 0.9.6 or Version 0.9.7 Beta 1 work

    This is the error I get:

    Plugin could not be activated because it triggered a fatal error.

    Parse error: syntax error, unexpected ‘}’ in /home/content/t/e/s/testsite/html/wordpress/wp-content/plugins/jh-portfolio/template/widgets/widget.portfolio-extra-taxonomy.php on line 1

    Also posted this issue on the plugins bug tracker:
    http://github.com/joehoyle/JH-Portfolio/issues/issue/77

    It’s too bad this doesn’t work because this really looks like it could be a very nice portfolio plugin.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Can you post the code of wp-content/plugins/jh-portfolio/template/widgets/widget.portfolio-extra-taxonomy.php

    I downloaded it from wordpress, and the code seems fine.

    Thread Starter DivaVocals

    (@divavocals)

    Here you go..

    <?php
    ### Class: JH Portfolio Selector
     class WP_Widget_JH_Portfolio_Extra_Taxonomy extends WP_Widget {
    	// Constructor
    	function WP_Widget_JH_Portfolio_Extra_Taxonomy() {
    		$widget_ops = array( 'description' => __( 'Shows a list of tags for the current entry', 'table_rss_news' ) );
    		$this->WP_Widget( 'jh_portfolio_extra_taxonomy', __( 'JHP Tags' ), $widget_ops );
    	}
    
    	// Display Widget
    	function widget( $args, $instance ) {
    		extract( $args, EXTR_SKIP );
    		extract( $instance );
    
    		echo $before_widget;
    		?>
    		<?php global $post; if( $terms = wp_get_object_terms( $post->ID,  'jh-portfolio-tag' ) ) : ?>
    			<h4><?php echo $tax_title ?></h4>
    			<div id="jh-portfolio-extra-taxonomy">
    				<p>
    					<?php foreach( (array) $terms as $key => $term ) : ?>
    						<?php if( $show_link ) : ?>
    					   		<a href="<?php echo get_term_link( $term, 'jh-portfolio-tag' ) ?>"><?php echo $term->name ?></a><?php echo $key + 1 !== count( $terms ) ? ', ' : '' ?>
    						<?php else : ?>
    					   		<?php echo $term->name ?><?php echo $key + 1 !== count( $terms ) ? ', ' : '' ?>
    						<?php endif; ?>
    					<?php endforeach; ?>
    				</p>
    			</div>
    			<?php
    		endif;
    		echo $after_widget;
    
    	}
    
    	function update( $new_instance, $old_instance ) {
    		$instance = $old_instance;
    		$instance['tax_title'] = (string) strip_tags( $new_instance['tax_title'] );
    		$instance['show_link'] = (string) strip_tags( $new_instance['show_link'] );
    		return $instance;
    	}
    
    	function form( $instance ) {
    
    		$instance = wp_parse_args( (array) $instance, array( 'width' => 200, 'height' => 150 ) );
    
    		$tax_title = esc_attr( $instance['tax_title'] );
    		$show_link = $instance['show_link'];
    		?>
    
    		<p>
    			<label for="<?php echo $this->get_field_id('tax_title'); ?>">
    				<?php _e('Extra Taxonomy Title:'); ?>
    				<input class="widefat" id="<?php echo $this->get_field_id('tax_title'); ?>" name="<?php echo $this->get_field_name('tax_title'); ?>" type="text" value="<?php echo $tax_title; ?>" />
    			</label>
    		</p>
    		<p>
    			<label for="<?php echo $this->get_field_id('show_link'); ?>">
    				<?php _e('Show links in terms:'); ?>
    				<input id="<?php echo $this->get_field_id('show_link'); ?>" name="<?php echo $this->get_field_name('show_link'); ?>" type="checkbox"<?php echo $show_link ? ' checked="checked"' : '' ?> />
    			</label>
    		</p>
    
    	<?php
    
    	}
    
    }
    
    ### Function: Init Table News Widget
    add_action('widgets_init', 'widget_jh_portfolio_extra_taxonomy');
    function widget_jh_portfolio_extra_taxonomy() {
    	register_widget( 'WP_Widget_JH_Portfolio_Extra_Taxonomy' );
    }
    ?>
    Thread Starter DivaVocals

    (@divavocals)

    Well I had to move on.. This seems like it could be a cool plugin, but I had to get this site launched and I found another portfolio plugin to use instead.. Looking forward to seeing this one get all the kinks worked out..

    Getting error on activation:

    "Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in /home/mysite/public_html/wp-admin/menu.php  on line 415
    
    Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in /home/mysite/pub"

    WP3.0

    Thread Starter DivaVocals

    (@divavocals)

    @milehightechguy

    It’s probably better for you to start your own post since your error is not the same as the issue I was reporting here..

    Plugin Author Joe Hoyle

    (@joehoyle)

    Hey guys,

    Sorry about no replies, I never notice issues on the WordPress support forums. I run support from here: http://github.com/joehoyle/JH-Portfolio/issues

    There is a new beta out today (0.9.7 Beta 2) which is made for WP 3. Grab that here: http://github.com/joehoyle/JH-Portfolio/downloads

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: JH Portfolio] Fatal error upon activation (Using WordPress 3.0)’ is closed to new replies.