Open bladecold opened 6 years ago
From this error results that $img_url
is empty.
You should process an image only if a valid image url exists:
$thumb = get_post_thumbnail_id();
$img_url = wp_get_attachment_url($thumb,'full' );
if ( ! empty( $img_url ) && has_post_thumbnail() ) : //Just to be safe
$image = aq_resize( $img_url, 156, 104, true,true,true );
?>
<img src="<?php echo $image ?>" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" style="display: inline;" width="156" height="104" />
<?php
endif;
I had a theme using Aq_Resize and had to tell it the $url was empty in the theme's callback. Originally they had the final as:
`if(!function_exists('aq_resize')) { /**
And I simply added a string value of '' nada and all the errors went bye bye.
`if(!function_exists('aq_resize')) { /**
Hi,
error.log detail
fix error please.
Aq_Resize.process() error: $url parameter is required Aq_Resize.process() error: $url parameter is required Aq_Resize.process() error: $url parameter is required Aq_Resize.process() error: $url parameter is required
example: