[Plugin: SuperSlider-Show] Some Errors in php : Report (2 posts)

  1. Michel - xiligroup dev
    Posted 6 years ago #

    Please find some errors found when installing in WP 2.8.4 and PHP 5 :

    [31-Aug-2009 20:37:57] PHP Fatal error: Function name must be a string in /Applications/MAMP/htdocs/wpfolfox/wp-content/plugins/superslider-show/superslider-show.php on line 701

    The concatenation must be like that and not += : (used with shortcode [slideshow id="105,101"])

    if ( strpos($id, ',')  ) {
    			$idz = explode(',', str_replace(" ","",$id)); // turns the variable string $id into an array $idz - REPLACE " " by ""
    			$all_attachments = array();	// pre define the master array
    				echo $id;
    				foreach ($idz as $id) {		//loop through the array of posts and get their attachments
    					$id = intval($id);
    					// for 2.7
    					//$attachments = get_children("post_parent=$id&post_type=attachment&post_mime_type=image&orderby={$orderby}");
    					$attachments = get_children( array('post_parent' => $id, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $order, 'orderby' => $orderby) );
    					// error = 	$all_attachments += $attachments ;
    					$theobj = current($attachments);
    					$all_attachments[$theobj->ID] = $theobj;
    			} else {

    2- When analyzing : there is also an error in xhtml

    XML self-closing tag syntax used on <div>. The tag will not be closed.
    (detected with Safari inspector)

    <div class="slideshow-thumbnails"><ul><li><a href="#" title="view Image"><img src="http://michel-mbp216.local:8888/wpfolfox/wp-content/uploads/2009/08/le-plaisir-1-150x150.jpg" alt="show Thumbnail" width="150" height="150" /><span class='thumbframe'>&nbsp;</span></a></li><li><a href="#" title="view Image"><img src="http://michel-mbp216.local:8888/wpfolfox/wp-content/uploads/2009/08/BUTTERFLYKNIGHT9-150x150.jpg" alt="show Thumbnail" width="150" height="150" /><span class='thumbframe'>&nbsp;</span></a></li></ul></div><br style="clear:both;" /></div><div style="clear:both;height:0px;width:0px;" />&nbsp;</div><div id="hidenlinks" >
    XML self-closing tag syntax used on <div>. The tag will not be closed.

    Hope that help you to improve your source...

    M from dev.xiligroup.com


  2. Daiv Mowbray
    Posted 6 years ago #

    Thanx for the heads up, I'll be looking into this, asap.

Topic Closed

This topic has been closed to new replies.

About this Topic