New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to undefined function finfo_buffer() #79

Closed
KikoPalomares opened this Issue Feb 1, 2014 · 4 comments

Comments

Projects
None yet
4 participants
@KikoPalomares

KikoPalomares commented Feb 1, 2014

I updated by composer and now I get this error:
capture
What happened? o:

@olivervogel

This comment has been minimized.

Show comment
Hide comment
@olivervogel

olivervogel Feb 1, 2014

Member

Maybe the fileinfo extension is disabled in your PHP installation.

Member

olivervogel commented Feb 1, 2014

Maybe the fileinfo extension is disabled in your PHP installation.

@KikoPalomares

This comment has been minimized.

Show comment
Hide comment
@KikoPalomares

KikoPalomares Feb 1, 2014

That's it. thank you.
I love intervention image.

KikoPalomares commented Feb 1, 2014

That's it. thank you.
I love intervention image.

@developernaren

This comment has been minimized.

Show comment
Hide comment
@developernaren

developernaren Jul 8, 2014

I have fileinfo extension enabled in mine but I still get this error..
And yes I have restarted my WAMP server.
My Php version is 5.4.12

This is the part of my php.ini file.

;extension=php_exif.dll
extension=php_fileinfo.dll
extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_gmp.dll;

and this is the error

Call to undefined function Intervention\Image\finfo_buffer()

I just cannot get this working

this is my code
$name = Input::file( 'image' )->getClientOriginalName();
$path = './mypath/'.$name;
Input::file( 'image' )->move( './mypath/', $name );
$img = Image::make( $path );
img->resize( 300, null, function ( $constraint ) {
$constraint->aspectRatio();
});

$img->save('./mypath/abc' . $name );

developernaren commented Jul 8, 2014

I have fileinfo extension enabled in mine but I still get this error..
And yes I have restarted my WAMP server.
My Php version is 5.4.12

This is the part of my php.ini file.

;extension=php_exif.dll
extension=php_fileinfo.dll
extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_gmp.dll;

and this is the error

Call to undefined function Intervention\Image\finfo_buffer()

I just cannot get this working

this is my code
$name = Input::file( 'image' )->getClientOriginalName();
$path = './mypath/'.$name;
Input::file( 'image' )->move( './mypath/', $name );
$img = Image::make( $path );
img->resize( 300, null, function ( $constraint ) {
$constraint->aspectRatio();
});

$img->save('./mypath/abc' . $name );
@danielfowler

This comment has been minimized.

Show comment
Hide comment
@danielfowler

danielfowler Jan 6, 2015

I'm also having this issue on my Statamic-built site.

Fatal error: Call to undefined function Intervention\Image\finfo_buffer() in /home/fowler7/public_html/grco/_app/vendor/Intervention/Image/Image.php on line 1802

The offending code:

private function isBinary($input)
{
    $mime = finfo_buffer(finfo_open(FILEINFO_MIME_TYPE), (string) $input);
    return substr($mime, 0, 4) != 'text';
}

Mac OS X 10.10.1
Statamic 1.9.2
PHP 5.4.35

danielfowler commented Jan 6, 2015

I'm also having this issue on my Statamic-built site.

Fatal error: Call to undefined function Intervention\Image\finfo_buffer() in /home/fowler7/public_html/grco/_app/vendor/Intervention/Image/Image.php on line 1802

The offending code:

private function isBinary($input)
{
    $mime = finfo_buffer(finfo_open(FILEINFO_MIME_TYPE), (string) $input);
    return substr($mime, 0, 4) != 'text';
}

Mac OS X 10.10.1
Statamic 1.9.2
PHP 5.4.35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment