Closed
Description
Error at create form with field money.
Symfony 2.7.9
PHP 7.0.4
if change 9223372036854775808 to 9223372036854775807 problem solved.
Parse error: Invalid numeric literal
500 Internal Server Error - FatalThrowableError
Stack Trace
in vendor/symfony/symfony/src/Symfony/Component/Intl/NumberFormatter/NumberFormatter.php at line 250 -
*/
private static $int64Range = array(
'positive' => 9223372036854775807,
'negative' => -9223372036854775808,
);
private static $enSymbols = array(
at DebugClassLoader ->loadClass ('Symfony\Component\Intl\NumberFormatter\NumberFormatter')
at spl_autoload_call ('Symfony\Component\Intl\NumberFormatter\NumberFormatter')
in vendor/symfony/symfony/src/Symfony/Component/Intl/Resources/stubs/NumberFormatter.php at line 21 +
at require_once ('/Users/Nico/Documents/Proyectos/symplifica/vendor/symfony/symfony/src/Symfony/Component/Intl/Resources/stubs/NumberFormatter.php')
in vendor/symfony/symfony/src/Symfony/Component/Debug/DebugClassLoader.php at line 150 +
at DebugClassLoader ->loadClass ('NumberFormatter')
at spl_autoload_call ('NumberFormatter')
in vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/Type/MoneyType.php at line 32 +
at MoneyType ->buildForm (object(FormBuilder), array('block_name' => null, 'disabled' => false, 'label_format' => null, 'translation_domain' => null, 'auto_initialize' => true, 'trim' => true, 'read_only' => false, 'max_length' => null, 'pattern' => null, 'property_path' => null, 'mapped' => true, '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(), 'cascade_validation' => false, 'invalid_message' => 'This value is not valid.', '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.', 'csrf_provider' => object(CsrfTokenManager), 'intention' => null, 'description' => '', 'sonata_admin' => null, 'sonata_field_description' => null, 'label_render' => true, 'sonata_help' => null, 'horizontal_label_class' => '', 'horizontal_label_offset_class' => '', 'horizontal_input_wrapper_class' => '', 'precision' => null, 'grouping' => false, 'divisor' => '1', 'label' => '¿Cuánto le paga a su empleado mensualmente?*', 'attr' => array(), 'data_class' => null, 'empty_data' => object(Closure), 'required' => false, 'error_bubbling' => false, 'label_attr' => array(), 'inherit_data' => false, 'validation_groups' => null, 'constraints' => array(), 'csrf_token_manager' => object(CsrfTokenManager), 'csrf_token_id' => null, 'scale' => '2', 'currency' => 'COP'))
in vendor/symfony/symfony/src/Symfony/Component/Form/ResolvedFormType.php at line 135 +
at ResolvedFormType ->buildForm (object(FormBuilder), array('block_name' => null, 'disabled' => false, 'label_format' => null, 'translation_domain' => null, 'auto_initialize' => true, 'trim' => true, 'read_only' => false, 'max_length' => null, 'pattern' => null, 'property_path' => null, 'mapped' => true, '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(), 'cascade_validation' => false, 'invalid_message' => 'This value is not valid.', '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.', 'csrf_provider' => object(CsrfTokenManager), 'intention' => null, 'description' => '', 'sonata_admin' => null, 'sonata_field_description' => null, 'label_render' => true, 'sonata_help' => null, 'horizontal_label_class' => '', 'horizontal_label_offset_class' => '', 'horizontal_input_wrapper_class' => '', 'precision' => null, 'grouping' => false, 'divisor' => '1', 'label' => '¿Cuánto le paga a su empleado mensualmente?*', 'attr' => array(), 'data_class' => null, 'empty_data' => object(Closure), 'required' => false, 'error_bubbling' => false, 'label_attr' => array(), 'inherit_data' => false, 'validation_groups' => null, 'constraints' => array(), 'csrf_token_manager' => object(CsrfTokenManager), 'csrf_token_id' => null, 'scale' => '2', 'currency' => 'COP'))
in vendor/symfony/symfony/src/Symfony/Component/Form/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php at line 104 +
at ResolvedTypeDataCollectorProxy ->buildForm (object(FormBuilder), array('block_name' => null, 'disabled' => false, 'label_format' => null, 'translation_domain' => null, 'auto_initialize' => true, 'trim' => true, 'read_only' => false, 'max_length' => null, 'pattern' => null, 'property_path' => null, 'mapped' => true, '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(), 'cascade_validation' => false, 'invalid_message' => 'This value is not valid.', '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.', 'csrf_provider' => object(CsrfTokenManager), 'intention' => null, 'description' => '', 'sonata_admin' => null, 'sonata_field_description' => null, 'label_render' => true, 'sonata_help' => null, 'horizontal_label_class' => '', 'horizontal_label_offset_class' => '', 'horizontal_input_wrapper_class' => '', 'precision' => null, 'grouping' => false, 'divisor' => '1', 'label' => '¿Cuánto le paga a su empleado mensualmente?*', 'attr' => array(), 'data_class' => null, 'empty_data' => object(Closure), 'required' => false, 'error_bubbling' => false, 'label_attr' => array(), 'inherit_data' => false, 'validation_groups' => null, 'constraints' => array(), 'csrf_token_manager' => object(CsrfTokenManager), 'csrf_token_id' => null, 'scale' => '2', 'currency' => 'COP'))
in vendor/symfony/symfony/src/Symfony/Component/Form/FormFactory.php at line 91 +
at FormFactory ->createNamedBuilder ('salary', object(ResolvedTypeDataCollectorProxy), null, array('currency' => 'COP', 'label' => '¿Cuánto le paga a su empleado mensualmente?*', 'required' => false))
in vendor/symfony/symfony/src/Symfony/Component/Form/FormBuilder.php at line 106 +
at FormBuilder ->create ('salary', 'money', array('currency' => 'COP', 'label' => '¿Cuánto le paga a su empleado mensualmente?*', 'required' => false))
in vendor/symfony/symfony/src/Symfony/Component/Form/FormBuilder.php at line 267 +
at FormBuilder ->resolveChildren ()
in vendor/symfony/symfony/src/Symfony/Component/Form/FormBuilder.php at line 215 +
at FormBuilder ->getForm ()
in vendor/symfony/symfony/src/Symfony/Component/Form/FormBuilder.php at line 221 +
at FormBuilder ->getForm ()
in vendor/symfony/symfony/src/Symfony/Component/Form/FormFactory.php at line 39 +
at FormFactory ->create (object(PersonEmployeeRegistration), object(Employee), array('action' => '/api/public/v1/news/employees/submits', 'method' => 'POST'))
in vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php at line 250 +
at Controller ->createForm (object(PersonEmployeeRegistration), object(Employee), array('action' => '/api/public/v1/news/employees/submits', 'method' => 'POST'))
in src/RocketSeller/TwoPickBundle/Controller/EmployeeController.php at line 358 +
at EmployeeController ->newEmployeeAction ('-1', '1')
at call_user_func_array (array(object(EmployeeController), 'newEmployeeAction'), array('-1', '1'))
in app/bootstrap.php.cache at line 3128 +
at HttpKernel ->handleRaw (object(Request), '1')
in app/bootstrap.php.cache at line 3090 +
at HttpKernel ->handle (object(Request), '1', true)
in app/bootstrap.php.cache at line 3241 +
at ContainerAwareHttpKernel ->handle (object(Request), '1', true)
in app/bootstrap.php.cache at line 2455 +
at Kernel ->handle (object(Request))
in web/app.php at line 29 +
Stack Trace (Plain Text) -
[1] Symfony\Component\Debug\Exception\FatalThrowableError: Parse error: Invalid numeric literal
at n/a
in /Users/Nico/Documents/Proyectos/symplifica/vendor/symfony/symfony/src/Symfony/Component/Intl/NumberFormatter/NumberFormatter.php line 250
at Symfony\Component\Debug\DebugClassLoader->loadClass('Symfony\Component\Intl\NumberFormatter\NumberFormatter')
in line
at spl_autoload_call('Symfony\Component\Intl\NumberFormatter\NumberFormatter')
in /Users/Nico/Documents/Proyectos/symplifica/vendor/symfony/symfony/src/Symfony/Component/Intl/Resources/stubs/NumberFormatter.php line 21
at require_once('/Users/Nico/Documents/Proyectos/symplifica/vendor/symfony/symfony/src/Symfony/Component/Intl/Resources/stubs/NumberFormatter.php')
in /Users/Nico/Documents/Proyectos/symplifica/vendor/symfony/symfony/src/Symfony/Component/Debug/DebugClassLoader.php line 150
at Symfony\Component\Debug\DebugClassLoader->loadClass('NumberFormatter')
in line
at spl_autoload_call('NumberFormatter')
in /Users/Nico/Documents/Proyectos/symplifica/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/Type/MoneyType.php line 32
at Symfony\Component\Form\Extension\Core\Type\MoneyType->buildForm(object(FormBuilder), array('block_name' => null, 'disabled' => false, 'label_format' => null, 'translation_domain' => null, 'auto_initialize' => true, 'trim' => true, 'read_only' => false, 'max_length' => null, 'pattern' => null, 'property_path' => null, 'mapped' => true, '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(), 'cascade_validation' => false, 'invalid_message' => 'This value is not valid.', '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.', 'csrf_provider' => object(CsrfTokenManager), 'intention' => null, 'description' => '', 'sonata_admin' => null, 'sonata_field_description' => null, 'label_render' => true, 'sonata_help' => null, 'horizontal_label_class' => '', 'horizontal_label_offset_class' => '', 'horizontal_input_wrapper_class' => '', 'precision' => null, 'grouping' => false, 'divisor' => '1', 'label' => '¿Cuánto le paga a su empleado mensualmente?*', 'attr' => array(), 'data_class' => null, 'empty_data' => object(Closure), 'required' => false, 'error_bubbling' => false, 'label_attr' => array(), 'inherit_data' => false, 'validation_groups' => null, 'constraints' => array(), 'csrf_token_manager' => object(CsrfTokenManager), 'csrf_token_id' => null, 'scale' => '2', 'currency' => 'COP'))
in /Users/Nico/Documents/Proyectos/symplifica/vendor/symfony/symfony/src/Symfony/Component/Form/ResolvedFormType.php line 135
at Symfony\Component\Form\ResolvedFormType->buildForm(object(FormBuilder), array('block_name' => null, 'disabled' => false, 'label_format' => null, 'translation_domain' => null, 'auto_initialize' => true, 'trim' => true, 'read_only' => false, 'max_length' => null, 'pattern' => null, 'property_path' => null, 'mapped' => true, '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(), 'cascade_validation' => false, 'invalid_message' => 'This value is not valid.', '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.', 'csrf_provider' => object(CsrfTokenManager), 'intention' => null, 'description' => '', 'sonata_admin' => null, 'sonata_field_description' => null, 'label_render' => true, 'sonata_help' => null, 'horizontal_label_class' => '', 'horizontal_label_offset_class' => '', 'horizontal_input_wrapper_class' => '', 'precision' => null, 'grouping' => false, 'divisor' => '1', 'label' => '¿Cuánto le paga a su empleado mensualmente?*', 'attr' => array(), 'data_class' => null, 'empty_data' => object(Closure), 'required' => false, 'error_bubbling' => false, 'label_attr' => array(), 'inherit_data' => false, 'validation_groups' => null, 'constraints' => array(), 'csrf_token_manager' => object(CsrfTokenManager), 'csrf_token_id' => null, 'scale' => '2', 'currency' => 'COP'))
in /Users/Nico/Documents/Proyectos/symplifica/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php line 104
at Symfony\Component\Form\Extension\DataCollector\Proxy\ResolvedTypeDataCollectorProxy->buildForm(object(FormBuilder), array('block_name' => null, 'disabled' => false, 'label_format' => null, 'translation_domain' => null, 'auto_initialize' => true, 'trim' => true, 'read_only' => false, 'max_length' => null, 'pattern' => null, 'property_path' => null, 'mapped' => true, '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(), 'cascade_validation' => false, 'invalid_message' => 'This value is not valid.', '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.', 'csrf_provider' => object(CsrfTokenManager), 'intention' => null, 'description' => '', 'sonata_admin' => null, 'sonata_field_description' => null, 'label_render' => true, 'sonata_help' => null, 'horizontal_label_class' => '', 'horizontal_label_offset_class' => '', 'horizontal_input_wrapper_class' => '', 'precision' => null, 'grouping' => false, 'divisor' => '1', 'label' => '¿Cuánto le paga a su empleado mensualmente?*', 'attr' => array(), 'data_class' => null, 'empty_data' => object(Closure), 'required' => false, 'error_bubbling' => false, 'label_attr' => array(), 'inherit_data' => false, 'validation_groups' => null, 'constraints' => array(), 'csrf_token_manager' => object(CsrfTokenManager), 'csrf_token_id' => null, 'scale' => '2', 'currency' => 'COP'))
in /Users/Nico/Documents/Proyectos/symplifica/vendor/symfony/symfony/src/Symfony/Component/Form/FormFactory.php line 91
at Symfony\Component\Form\FormFactory->createNamedBuilder('salary', object(ResolvedTypeDataCollectorProxy), null, array('currency' => 'COP', 'label' => '¿Cuánto le paga a su empleado mensualmente?*', 'required' => false))
in /Users/Nico/Documents/Proyectos/symplifica/vendor/symfony/symfony/src/Symfony/Component/Form/FormBuilder.php line 106
at Symfony\Component\Form\FormBuilder->create('salary', 'money', array('currency' => 'COP', 'label' => '¿Cuánto le paga a su empleado mensualmente?*', 'required' => false))
in /Users/Nico/Documents/Proyectos/symplifica/vendor/symfony/symfony/src/Symfony/Component/Form/FormBuilder.php line 267
at Symfony\Component\Form\FormBuilder->resolveChildren()
in /Users/Nico/Documents/Proyectos/symplifica/vendor/symfony/symfony/src/Symfony/Component/Form/FormBuilder.php line 215
at Symfony\Component\Form\FormBuilder->getForm()
in /Users/Nico/Documents/Proyectos/symplifica/vendor/symfony/symfony/src/Symfony/Component/Form/FormBuilder.php line 221
at Symfony\Component\Form\FormBuilder->getForm()
in /Users/Nico/Documents/Proyectos/symplifica/vendor/symfony/symfony/src/Symfony/Component/Form/FormFactory.php line 39
at Symfony\Component\Form\FormFactory->create(object(PersonEmployeeRegistration), object(Employee), array('action' => '/api/public/v1/news/employees/submits', 'method' => 'POST'))
in /Users/Nico/Documents/Proyectos/symplifica/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php line 250
at Symfony\Bundle\FrameworkBundle\Controller\Controller->createForm(object(PersonEmployeeRegistration), object(Employee), array('action' => '/api/public/v1/news/employees/submits', 'method' => 'POST'))
in /Users/Nico/Documents/Proyectos/symplifica/src/RocketSeller/TwoPickBundle/Controller/EmployeeController.php line 358
at RocketSeller\TwoPickBundle\Controller\EmployeeController->newEmployeeAction('-1', '1')
in line
at call_user_func_array(array(object(EmployeeController), 'newEmployeeAction'), array('-1', '1'))
in /Users/Nico/Documents/Proyectos/symplifica/app/bootstrap.php.cache line 3128
at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '1')
in /Users/Nico/Documents/Proyectos/symplifica/app/bootstrap.php.cache line 3090
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '1', true)
in /Users/Nico/Documents/Proyectos/symplifica/app/bootstrap.php.cache line 3241
at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '1', true)
in /Users/Nico/Documents/Proyectos/symplifica/app/bootstrap.php.cache line 2455
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
in /Users/Nico/Documents/Proyectos/symplifica/web/app.php line 29