简体   繁体   中英

Php thumb not show image

I am not able to fix this problem. Sometimes my image listed on my webpade sometimes gives this error.

my code

<?php foreach($hotel['photos'] as $photo){
    if($photo['photo_cover'] !=1){ ?>
        <img class="lazy"  data-src="<?php echo'plugin/thumb/phpThumb.php?src='.$photo['name'].'&h=650&w=1170&iar=0.8&q=85&f=webp&hash=6d430ca401ea0418f2e2e0ba5efd0022&zc=1'; ?>" alt="">
<?php  }  }  ?>

enter image description here

I try Some other thumbnail version but not working.

Read the message in the error.

Error messages disabled.
edit phpThumb.config.php and (temporarily) set
$PHPTHUMB_CONFIG['disable_debug'] = false;
to view the details of this error

So open phpThumb.config.php and put this line at the bottom of the script, I guess. $PHPTHUMB_CONFIG['disable_debug'] = false;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM