Warning: count(): Parameter must be an array or an object that implements Countable
500 Internal Server Error - ContextErrorException
Stack Trace
-
in vendor/gregwar/captcha/CaptchaBuilder.php at line 333
- at ErrorHandler ->handleError ('2', 'count(): Parameter must be an array or an object that implements Countable', '/srv/www/patrociniodeportivo.com/www/vendor/gregwar/captcha/CaptchaBuilder.php', '333', array('image' => resource, 'phrase' => 'jfsraj', 'font' => '/srv/www/patrociniodeportivo.com/www/vendor/gregwar/captcha-bundle/DependencyInjection/../Generator/Font/captcha.ttf', 'width' => '200', 'height' => '50', 'length' => '6', 'size' => '30.333333333333', 'box' => array('2', '9', '147', '9', '147', '-32', '2', '-32'), 'textWidth' => '145', 'textHeight' => '41', 'x' => '27.5', 'y' => '34.833333333333'))
-
at
count
(null)
in vendor/gregwar/captcha/CaptchaBuilder.php at line 333 -
at
CaptchaBuilder
->writePhrase
(resource, 'jfsraj', '/srv/www/patrociniodeportivo.com/www/vendor/gregwar/captcha-bundle/DependencyInjection/../Generator/Font/captcha.ttf', '200', '50')
in vendor/gregwar/captcha/CaptchaBuilder.php at line 440 -
at
CaptchaBuilder
->build
('200', '50', '/srv/www/patrociniodeportivo.com/www/vendor/gregwar/captcha-bundle/DependencyInjection/../Generator/Font/captcha.ttf', null)
in vendor/gregwar/captcha-bundle/Generator/CaptchaGenerator.php at line 135 -
at
CaptchaGenerator
->generate
(array('block_name' => null, 'disabled' => false, 'label' => null, 'label_format' => null, 'translation_domain' => null, 'auto_initialize' => true, 'trim' => true, 'required' => true, 'max_length' => null, 'pattern' => null, 'property_path' => null, 'mapped' => false, 'by_reference' => true, 'virtual' => null, 'compound' => false, 'method' => 'POST', 'action' => '', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'error_mapping' => array(), 'invalid_message' => 'Bad code value', 'invalid_message_parameters' => array(), 'allow_extra_fields' => false, 'extra_fields_message' => 'This form should not contain extra fields.', 'csrf_protection' => true, 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'intention' => null, 'width' => '200', 'height' => '50', 'length' => '6', 'font' => '/srv/www/patrociniodeportivo.com/www/vendor/gregwar/captcha-bundle/DependencyInjection/../Generator/Font/captcha.ttf', 'keep_value' => false, 'charset' => 'abcdefhjkmnprstuvwxyz23456789', 'as_file' => false, 'as_url' => false, 'reload' => false, 'image_folder' => 'captcha', 'web_path' => '/srv/www/patrociniodeportivo.com/www/app/../web', 'gc_freq' => '100', 'expiration' => '60', 'quality' => '30', 'bypass_code' => null, 'whitelist_key' => 'captcha_whitelist_key', 'humanity' => '0', 'distortion' => true, 'max_front_lines' => null, 'max_behind_lines' => null, 'interpolation' => true, 'text_color' => array(), 'background_color' => array(), 'background_images' => array(), 'ignore_all_effects' => false, 'read_only' => false, 'attr' => array('placeholder' => 'Introduce el texto de la imagen'), 'data_class' => null, 'empty_data' => object(Closure), 'error_bubbling' => false, 'label_attr' => array(), 'inherit_data' => false, 'validation_groups' => null, 'constraints' => array(), 'cascade_validation' => false, 'csrf_provider' => object(CsrfTokenManager), 'csrf_token_manager' => object(CsrfTokenManager), 'csrf_token_id' => null, 'phrase' => 'jfsraj'))
in vendor/gregwar/captcha-bundle/Generator/CaptchaGenerator.php at line 83 -
at
CaptchaGenerator
->getCaptchaCode
(array('block_name' => null, 'disabled' => false, 'label' => null, 'label_format' => null, 'translation_domain' => null, 'auto_initialize' => true, 'trim' => true, 'required' => true, 'max_length' => null, 'pattern' => null, 'property_path' => null, 'mapped' => false, 'by_reference' => true, 'virtual' => null, 'compound' => false, 'method' => 'POST', 'action' => '', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'error_mapping' => array(), 'invalid_message' => 'Bad code value', 'invalid_message_parameters' => array(), 'allow_extra_fields' => false, 'extra_fields_message' => 'This form should not contain extra fields.', 'csrf_protection' => true, 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'intention' => null, 'width' => '200', 'height' => '50', 'length' => '6', 'font' => '/srv/www/patrociniodeportivo.com/www/vendor/gregwar/captcha-bundle/DependencyInjection/../Generator/Font/captcha.ttf', 'keep_value' => false, 'charset' => 'abcdefhjkmnprstuvwxyz23456789', 'as_file' => false, 'as_url' => false, 'reload' => false, 'image_folder' => 'captcha', 'web_path' => '/srv/www/patrociniodeportivo.com/www/app/../web', 'gc_freq' => '100', 'expiration' => '60', 'quality' => '30', 'bypass_code' => null, 'whitelist_key' => 'captcha_whitelist_key', 'humanity' => '0', 'distortion' => true, 'max_front_lines' => null, 'max_behind_lines' => null, 'interpolation' => true, 'text_color' => array(), 'background_color' => array(), 'background_images' => array(), 'ignore_all_effects' => false, 'read_only' => false, 'attr' => array('placeholder' => 'Introduce el texto de la imagen'), 'data_class' => null, 'empty_data' => object(Closure), 'error_bubbling' => false, 'label_attr' => array(), 'inherit_data' => false, 'validation_groups' => null, 'constraints' => array(), 'cascade_validation' => false, 'csrf_provider' => object(CsrfTokenManager), 'csrf_token_manager' => object(CsrfTokenManager), 'csrf_token_id' => null, 'phrase' => 'jfsraj'))
in vendor/gregwar/captcha-bundle/Type/CaptchaType.php at line 110 -
at
CaptchaType
->buildView
(object(FormView), object(Form), array('block_name' => null, 'disabled' => false, 'label' => null, 'label_format' => null, 'translation_domain' => null, 'auto_initialize' => true, 'trim' => true, 'required' => true, 'max_length' => null, 'pattern' => null, 'property_path' => null, 'mapped' => false, 'by_reference' => true, 'virtual' => null, 'compound' => false, 'method' => 'POST', 'action' => '', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'error_mapping' => array(), 'invalid_message' => 'Bad code value', 'invalid_message_parameters' => array(), 'allow_extra_fields' => false, 'extra_fields_message' => 'This form should not contain extra fields.', 'csrf_protection' => true, 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'intention' => null, 'width' => '200', 'height' => '50', 'length' => '6', 'font' => '/srv/www/patrociniodeportivo.com/www/vendor/gregwar/captcha-bundle/DependencyInjection/../Generator/Font/captcha.ttf', 'keep_value' => false, 'charset' => 'abcdefhjkmnprstuvwxyz23456789', 'as_file' => false, 'as_url' => false, 'reload' => false, 'image_folder' => 'captcha', 'web_path' => '/srv/www/patrociniodeportivo.com/www/app/../web', 'gc_freq' => '100', 'expiration' => '60', 'quality' => '30', 'bypass_code' => null, 'whitelist_key' => 'captcha_whitelist_key', 'humanity' => '0', 'distortion' => true, 'max_front_lines' => null, 'max_behind_lines' => null, 'interpolation' => true, 'text_color' => array(), 'background_color' => array(), 'background_images' => array(), 'ignore_all_effects' => false, 'read_only' => false, 'attr' => array('placeholder' => 'Introduce el texto de la imagen'), 'data_class' => null, 'empty_data' => object(Closure), 'error_bubbling' => false, 'label_attr' => array(), 'inherit_data' => false, 'validation_groups' => null, 'constraints' => array(), 'cascade_validation' => false, 'csrf_provider' => object(CsrfTokenManager), 'csrf_token_manager' => object(CsrfTokenManager), 'csrf_token_id' => null, 'phrase' => 'jfsraj'))
in vendor/symfony/symfony/src/Symfony/Component/Form/ResolvedFormType.php at line 209 -
at
ResolvedFormType
->buildView
(object(FormView), object(Form), array('block_name' => null, 'disabled' => false, 'label' => null, 'label_format' => null, 'translation_domain' => null, 'auto_initialize' => true, 'trim' => true, 'required' => true, 'max_length' => null, 'pattern' => null, 'property_path' => null, 'mapped' => false, 'by_reference' => true, 'virtual' => null, 'compound' => false, 'method' => 'POST', 'action' => '', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'error_mapping' => array(), 'invalid_message' => 'Bad code value', 'invalid_message_parameters' => array(), 'allow_extra_fields' => false, 'extra_fields_message' => 'This form should not contain extra fields.', 'csrf_protection' => true, 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'intention' => null, 'width' => '200', 'height' => '50', 'length' => '6', 'font' => '/srv/www/patrociniodeportivo.com/www/vendor/gregwar/captcha-bundle/DependencyInjection/../Generator/Font/captcha.ttf', 'keep_value' => false, 'charset' => 'abcdefhjkmnprstuvwxyz23456789', 'as_file' => false, 'as_url' => false, 'reload' => false, 'image_folder' => 'captcha', 'web_path' => '/srv/www/patrociniodeportivo.com/www/app/../web', 'gc_freq' => '100', 'expiration' => '60', 'quality' => '30', 'bypass_code' => null, 'whitelist_key' => 'captcha_whitelist_key', 'humanity' => '0', 'distortion' => true, 'max_front_lines' => null, 'max_behind_lines' => null, 'interpolation' => true, 'text_color' => array(), 'background_color' => array(), 'background_images' => array(), 'ignore_all_effects' => false, 'read_only' => false, 'attr' => array('placeholder' => 'Introduce el texto de la imagen'), 'data_class' => null, 'empty_data' => object(Closure), 'error_bubbling' => false, 'label_attr' => array(), 'inherit_data' => false, 'validation_groups' => null, 'constraints' => array(), 'cascade_validation' => false, 'csrf_provider' => object(CsrfTokenManager), 'csrf_token_manager' => object(CsrfTokenManager), 'csrf_token_id' => null))
in vendor/symfony/symfony/src/Symfony/Component/Form/Form.php at line 1059 -
at
Form
->createView
(object(FormView))
in vendor/symfony/symfony/src/Symfony/Component/Form/Form.php at line 1062 -
at
Form
->createView
()
in src/UserBundle/Controller/DefaultController.php at line 56 - at DefaultController ->contactoAction (object(Request))
-
at
call_user_func_array
(array(object(DefaultController), 'contactoAction'), array(object(Request)))
in app/bootstrap.php.cache at line 3210 -
at
HttpKernel
->handleRaw
(object(Request), '1')
in app/bootstrap.php.cache at line 3172 -
at
HttpKernel
->handle
(object(Request), '1', true)
in app/bootstrap.php.cache at line 3323 -
at
ContainerAwareHttpKernel
->handle
(object(Request), '1', true)
in app/bootstrap.php.cache at line 2513 -
at
Kernel
->handle
(object(Request))
in web/app.php at line 18