rodolfitus Posted November 14, 2016 Share Posted November 14, 2016 Buenas, les escribo porque estoy teniendo problemas al intentar cargar las imagenes para los productos. Al realizar esta acción me devuelve lo siguiente: Server responded with 500 code. Activo el modo depurador y me arroja: Whoops, looks like something went wrong. 1/1 LogicException in MimeTypeGuesser.php line 135: Unable to guess the mime type as no guessers are available (Did you enable the php_fileinfo extension?) 1. in MimeTypeGuesser.php line 135 2. at MimeTypeGuesser->guess('/tmp/phpYCd3SN') in File.php line 79 3. at File->getMimeType() in FileValidator.php line 256 4. at FileValidator->validate(/object/(UploadedFile), /object/(Image)) in ImageValidator.php line 39 5. at ImageValidator->validate(/object/(UploadedFile), /object/(Image)) in RecursiveContextualValidator.php line 870 6. at RecursiveContextualValidator->validateInGroup(/object/(UploadedFile), '0000000053752053000000001dfda207', /object/(GenericMetadata), 'Default', /object/(ExecutionContext)) in RecursiveContextualValidator.php line 709 7. at RecursiveContextualValidator->validateGenericNode(/object/(UploadedFile), /null/, '0000000053752053000000001dfda207', /object/(GenericMetadata), 'children[file].data', /array/('Default'), /null/, '1', /object/(ExecutionContext)) in RecursiveContextualValidator.php line 135 8. at RecursiveContextualValidator->validate(/object/(UploadedFile), /array/(/object/(Image)), /array/('Default')) in FormValidator.php line 84 9. at FormValidator->validate(/object/(Form), /object/(Image)) in RecursiveContextualValidator.php line 87010. at RecursiveContextualValidator->validateInGroup(/object/(Form), '0000000053752371000000001dfda207', /object/(ClassMetadata), 'Default', /object/(ExecutionContext)) in RecursiveContextualValidator.php line 57111. at RecursiveContextualValidator->validateClassNode(/object/(Form), '0000000053752371000000001dfda207', /object/(ClassMetadata), 'children[file]', /array/('Default'), /null/, '1', /object/(ExecutionContext)) in RecursiveContextualValidator.php line 36012. at RecursiveContextualValidator->validateObject(/object/(Form), 'children[file]', /array/('Default'), '1', /object/(ExecutionContext)) in RecursiveContextualValidator.php line 43413. at RecursiveContextualValidator->validateEachObjectIn(/object/(OrderedHashMap), 'children', /array/('Default'), '0', /object/(ExecutionContext)) in RecursiveContextualValidator.php line 64414. at RecursiveContextualValidator->validateClassNode(/object/(OrderedHashMap), '0000000053752372000000001dfda207', /object/(ClassMetadata), 'children', /array/('Default'), /null/, '1', /object/(ExecutionContext)) in RecursiveContextualValidator.php line 36015. at RecursiveContextualValidator->validateObject(/object/(OrderedHashMap), 'children', /array/('Default'), '1', /object/(ExecutionContext)) in RecursiveContextualValidator.php line 76016. at RecursiveContextualValidator->validateGenericNode(/object/(OrderedHashMap), /object/(Form), '000000005375237c000000001dfda207:children', /object/(PropertyMetadata), 'children', /array/('Default'), /array/('Default'), '1', /object/(ExecutionContext)) in RecursiveContextualValidator.php line 60517. at RecursiveContextualValidator->validateClassNode(/object/(Form), '000000005375237c000000001dfda207', /object/(ClassMetadata), '', /array/('Default'), /null/, '1', /object/(ExecutionContext)) in RecursiveContextualValidator.php line 36018. at RecursiveContextualValidator->validateObject(/object/(Form), '', /array/('Default'), '1', /object/(ExecutionContext)) in RecursiveContextualValidator.php line 15219. at RecursiveContextualValidator->validate(/object/(Form), /null/, /array/('Default')) in RecursiveValidator.php line 13220. at RecursiveValidator->validate(/object/(Form)) in ValidationListener.php line 6821. at ValidationListener->validateForm(/object/(FormEvent), 'form.post_bind', /object/(EventDispatcher))22. at call_user_func(/array/(/object/(ValidationListener), 'validateForm'), /object/(FormEvent), 'form.post_bind', /object/(EventDispatcher)) in classes.php line 185823. at EventDispatcher->doDispatch(/array/(/array/(/object/(ValidationListener), 'validateForm'), /array/(/object/(DataCollectorListener), 'postSubmit')), 'form.post_bind', /object/(FormEvent)) in classes.php line 177324. at EventDispatcher->dispatch('form.post_bind', /object/(FormEvent)) in ImmutableEventDispatcher.php line 4325. at ImmutableEventDispatcher->dispatch('form.post_bind', /object/(FormEvent)) in Form.php line 66026. at Form->submit(/array/(), /true/) in HttpFoundationRequestHandler.php line 11327. at HttpFoundationRequestHandler->handleRequest(/object/(Form), /object/(Request)) in Form.php line 48928. at Form->handleRequest(/object/(Request)) in ProductImageController.php line 6929. at ProductImageController->uploadImageAction('1', /object/(Request))30. at call_user_func_array(/array/(/object/(ProductImageController), 'uploadImageAction'), /array/('1', /object/(Request))) in bootstrap.php.cache line 323831. at HttpKernel->handleRaw(/object/(Request), '1') in bootstrap.php.cache line 319732. at HttpKernel->handle(/object/(Request), '1', /false/) in bootstrap.php.cache line 335133. at ContainerAwareHttpKernel->handle(/object/(Request), '1', /false/) in bootstrap.php.cache line 253634. at Kernel->handle(/object/(Request), '1', /false/) in index.php line 86 Alguien puede orientarme al menos por donde viene la mano? Desde ya, muchas gracias! Rodolfitus. Link to comment Share on other sites More sharing options...
Rolige Posted November 14, 2016 Share Posted November 14, 2016 Espero no hayas usado PS 1.7 para una tienda en produccion, todavia se necesitan varios parches mas para tener una version apta para produccion. Link to comment Share on other sites More sharing options...
rodolfitus Posted November 14, 2016 Author Share Posted November 14, 2016 Hola Rolige, gracias por responder. En realidad cambié de hosting porque con el anterior tenía problemas con la actualización de 1.5 a 1.6, pero al ver la nueva versión 1.7 decidí probarla y sinceramente desconocía que aún no puedo usarla para mi tienda! Creo que seguiré tu consejo y me bajaré la ultima versión del 1.6 y probaré como anda todo y cuando esten listos los parches actualizaré. PD: Alguna idea del error: LogicException in MimeTypeGuesser.php line 135: Unable to guess the mime type as no guessers are available (Did you enable the php_fileinfo extension?) Saludos. Link to comment Share on other sites More sharing options...
rodolfitus Posted November 14, 2016 Author Share Posted November 14, 2016 Para los que tengan este problema, pude soucionarlo de la siguiente manera: cPanel>>Seleccionar versión de PHP>>activar file_info. Saludos. Rodolfitus Link to comment Share on other sites More sharing options...
Rolige Posted November 15, 2016 Share Posted November 15, 2016 Hola Rolige, gracias por responder. En realidad cambié de hosting porque con el anterior tenía problemas con la actualización de 1.5 a 1.6, pero al ver la nueva versión 1.7 decidí probarla y sinceramente desconocía que aún no puedo usarla para mi tienda! Creo que seguiré tu consejo y me bajaré la ultima versión del 1.6 y probaré como anda todo y cuando esten listos los parches actualizaré. PD: Alguna idea del error: LogicException in MimeTypeGuesser.php line 135: Unable to guess the mime type as no guessers are available (Did you enable the php_fileinfo extension?) Saludos. En realidad se supone que la version 1.7 ya esta en version "estable", pero por experiencia te digo que para que realmente sea una version estable le falta todavia mucho por recorrer, por ahora si piensas lanzar una tienda a produccion, te deberias apoyar mejor con la ultima version de de 1.6.x saludos! Link to comment Share on other sites More sharing options...
rodolfitus Posted November 15, 2016 Author Share Posted November 15, 2016 Gracias por tus comentarios Rolige. Lo tendré muy en cuenta. Saludos. Rodolfitus. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now