Fix Warning sizeof() with PHPThumb, Yii2, PHP 7.2

This entry was posted in Yii2 on 2018-07-30 by Eddy

When I upgraded my server to PHP7.2 , I had this issue:

Warning: sizeof(): Parameter must be an array or an object that implements Countable in /path/to/project/vendor/masterexploder/phpthumb/src/PHPThumb/GD.php on line

I found a solution there:

Let's do it

In composer.json

"masterexploder/phpthumb" : "dev-master#9a58407dca8748c3a20bc8143db56aff357bdf91"

Update Composer in SSH

composer update 
It's working now


Showing 1-1 of 1 item.

wallyquink j*a*i*e*s*o*

i am so satisfacted. greetings wally

Write comments

Math, for example, 45-12 = 33

Subscribe Now

You will receive a notification to each new article.

Tag Cloud

  • Composer
  • Yii2
  • OpenGraph
  • Helper
  • Wordpress
  • PhpMyAdmin
  • .htaccess
  • Config
  • Production
  • Git
  • Api
  • Mailchimp
  • Github
  • Vue.js