Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Call to protected method Fuel\Core\Image_Gd::_resize() from context
  • I am trying to resize an image and I get this error for some reason. Did I miss something?

    I use paste bin to easily format the code. here is the link.
  • Just an update. replaced the core/classes/image folder to the one that came from v1.6. I am currently using 1.7 and it is now working. Still, I would like to know why the image resize class is protected.
  • HarroHarro
    Accepted Answer
    I think you hit a bug that is already fixed in 1.8/develop, and will be part of the upcoming 1.7.1 release.

    Looking at your code, I notice you're using \Fuel\Core. You should never do that, that will ruin all core extensibility. All Fuel classes are available in the global namespace, use them as such.
  • My IDE fills them. I will just remove it if that is a concern. Thanks.
  • Use a class alias file to fix your IDE, such as this one: https://gist.github.com/huglester/3860656

    I just have it in the root of my project, excluded in git so it's not in our repo's.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion