Cocolabs-SAS / cocorico-docker

The official Cocorico docker image that give you the ability to run Cocorico out of the box.
https://www.cocolabs.io/
MIT License
23 stars 48 forks source link

Sf3.4 - Warning: count(): Parameter must be an array or an object that implements Countable #20

Closed Saraivahost closed 5 years ago

Saraivahost commented 5 years ago

This is happening for all coccorico ADMIN context menus - using cocorico with docker container

After correcting exception errors when accessing the admin area, as this commit: https://github.com/Cocolabs-SAS/cocorico/commit/813dd0fdcecb133162a27e15efc2c2808607919a

I can connect in admin, but all admin pages are still incompatible with this error:

Logs below:

Warning: count(): Parameter must be an array or an object that implements Countable 500 Internal Server Error - ContextErrorException

Stack Trace

in vendor/symfony/symfony/src/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php at line 740   + 
at ErrorHandler ->handleError ('2', 'count(): Parameter must be an array or an object that implements Countable', '/cocorico/vendor/symfony/symfony/src/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php', '740', array('value' => object(OrderedHashMap), 'object' => object(Form), 'cacheKey' => '0000000026ace9d7000000005ef9bc0d:children', 'metadata' => object(PropertyMetadata), 'propertyPath' => 'children', 'groups' => array('Default'), 'cascadedGroups' => null, 'traversalStrategy' => '1', 'context' => object(ExecutionContext), 'group' => 'Default', 'key' => '0', 'cascadingStrategy' => '2')) 
at count (null) 
in vendor/symfony/symfony/src/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php at line 740   + 
at RecursiveContextualValidator ->validateGenericNode (object(OrderedHashMap), object(Form), '0000000026ace9d7000000005ef9bc0d:children', object(PropertyMetadata), 'children', array('Default'), null, '1', object(ExecutionContext)) 
in vendor/symfony/symfony/src/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php at line 608   + 
at RecursiveContextualValidator ->validateClassNode (object(Form), '0000000026ace9d7000000005ef9bc0d', object(ClassMetadata), '', array('Default'), null, '1', object(ExecutionContext)) 
in vendor/symfony/symfony/src/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php at line 364   + 
at RecursiveContextualValidator ->validateObject (object(Form), '', array('Default'), '1', object(ExecutionContext)) 
in vendor/symfony/symfony/src/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php at line 154   + 
at RecursiveContextualValidator ->validate (object(Form), null, array('Default')) 
in vendor/symfony/symfony/src/Symfony/Component/Validator/Validator/RecursiveValidator.php at line 134   + 
at RecursiveValidator ->validate (object(Form)) 
in vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Validator/EventListener/ValidationListener.php at line 68   + 
at ValidationListener ->validateForm (object(FormEvent), 'form.post_bind', object(EventDispatcher)) 
at call_user_func (array(object(ValidationListener), 'validateForm'), object(FormEvent), 'form.post_bind', object(EventDispatcher)) 
in app/cache/dev/classes.php at line 1853   + 
at EventDispatcher ->doDispatch (array(array(object(ValidationListener), 'validateForm'), array(object(DataCollectorListener), 'postSubmit')), 'form.post_bind', object(FormEvent)) 
in app/cache/dev/classes.php at line 1771   + 
at EventDispatcher ->dispatch ('form.post_bind', object(FormEvent)) 
in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/ImmutableEventDispatcher.php at line 43   + 
at ImmutableEventDispatcher ->dispatch ('form.post_bind', object(FormEvent)) 
in vendor/symfony/symfony/src/Symfony/Component/Form/Form.php at line 660   + 
at Form ->submit (array()) 
in app/cache/dev/classes.php at line 12154   + 
at Datagrid ->buildPager () 
in app/cache/dev/classes.php at line 12247   + 
at Datagrid ->getForm () 
in vendor/sonata-project/admin-bundle/Controller/CRUDController.php at line 217   + 
at CRUDController ->listAction () 
at call_user_func_array (array(object(CRUDController), 'listAction'), array()) 
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 139   + 
at HttpKernel ->handleRaw (object(Request), '1') 
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 62   + 
at HttpKernel ->handle (object(Request), '1', true) 
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php at line 69   + 
at ContainerAwareHttpKernel ->handle (object(Request), '1', true) 
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php at line 185   + 
at Kernel ->handle (object(Request)) 
in web/app_dev.php at line 30   + 

Logs - 1 error

INFO - The Symfony\Component\Form\Extension\Core\ChoiceList\ChoiceList class is deprecated since version 2.7 and will be removed in 3.0. Use Symfony\Component\Form\ChoiceList\ArrayChoiceList instead. 
INFO - The Symfony\Component\Form\Extension\Core\ChoiceList\SimpleChoiceList class is deprecated since version 2.7 and will be removed in 3.0. Use Symfony\Component\Form\ChoiceList\ArrayChoiceList instead. 
INFO - Matched route "admin_cocorico_core_listing_list". 
DEBUG - Read existing security token from the session. 
DEBUG - SELECT t0.username AS username_1, t0.username_canonical AS username_canonical_2, t0.email AS email_3, t0.email_canonical AS email_canonical_4, t0.enabled AS enabled_5, t0.salt AS salt_6, t0.password AS password_7, t0.last_login AS last_login_8, t0.locked AS locked_9, t0.expired AS expired_10, t0.expires_at AS expires_at_11, t0.confirmation_token AS confirmation_token_12, t0.password_requested_at AS password_requested_at_13, t0.roles AS roles_14, t0.credentials_expired AS credentials_expired_15, t0.credentials_expire_at AS credentials_expire_at_16, t0.id AS id_17, t0.person_type AS person_type_18, t0.company_name AS company_name_19, t0.last_name AS last_name_20, t0.first_name AS first_name_21, t0.phone_prefix AS phone_prefix_22, t0.phone AS phone_23, t0.birthday AS birthday_24, t0.nationality AS nationality_25, t0.country_of_residence AS country_of_residence_26, t0.profession AS profession_27, t0.iban AS iban_28, t0.bic AS bic_29, t0.bank_owner_name AS bank_owner_name_30, t0.bank_owner_address AS bank_owner_address_31, t0.annual_income AS annual_income_32, t0.phone_verified AS phone_verified_33, t0.email_verified AS email_verified_34, t0.id_card_verified AS id_card_verified_35, t0.nb_bookings_offerer AS nb_bookings_offerer_36, t0.nb_bookings_asker AS nb_bookings_asker_37, t0.fee_as_asker AS fee_as_asker_38, t0.fee_as_offerer AS fee_as_offerer_39, t0.average_rating_as_asker AS average_rating_as_asker_40, t0.average_rating_as_offerer AS average_rating_as_offerer_41, t0.mother_tongue AS mother_tongue_42, t0.answer_delay AS answer_delay_43, t0.slug AS slug_44, t0.createdAt AS createdAt_45, t0.updatedAt AS updatedAt_46, t47.id AS id_48, t47.facebook_id AS facebook_id_49, t47.link AS link_50, t47.last_name AS last_name_51, t47.first_name AS first_name_52, t47.birthday AS birthday_53, t47.address AS address_54, t47.verified AS verified_55, t47.location AS location_56, t47.location_id AS location_id_57, t47.hometown AS hometown_58, t47.hometown_id AS hometown_id_59, t47.gender AS gender_60, t47.locale AS locale_61, t47.timezone AS timezone_62, t47.nb_friends AS nb_friends_63, t47.picture AS picture_64, t47.createdAt AS createdAt_65, t47.updatedAt AS updatedAt_66, t47.user_id AS user_id_67 FROM `user` t0 LEFT JOIN `user_facebook` t47 ON t47.user_id = t0.id WHERE t0.id = ? LIMIT 1 
DEBUG - SELECT t0.description AS description_1, t0.locale AS locale_2, t0.id AS id_3, t0.translatable_id AS translatable_id_4, t5.username AS username_6, t5.username_canonical AS username_canonical_7, t5.email AS email_8, t5.email_canonical AS email_canonical_9, t5.enabled AS enabled_10, t5.salt AS salt_11, t5.password AS password_12, t5.last_login AS last_login_13, t5.locked AS locked_14, t5.expired AS expired_15, t5.expires_at AS expires_at_16, t5.confirmation_token AS confirmation_token_17, t5.password_requested_at AS password_requested_at_18, t5.roles AS roles_19, t5.credentials_expired AS credentials_expired_20, t5.credentials_expire_at AS credentials_expire_at_21, t5.id AS id_22, t5.person_type AS person_type_23, t5.company_name AS company_name_24, t5.last_name AS last_name_25, t5.first_name AS first_name_26, t5.phone_prefix AS phone_prefix_27, t5.phone AS phone_28, t5.birthday AS birthday_29, t5.nationality AS nationality_30, t5.country_of_residence AS country_of_residence_31, t5.profession AS profession_32, t5.iban AS iban_33, t5.bic AS bic_34, t5.bank_owner_name AS bank_owner_name_35, t5.bank_owner_address AS bank_owner_address_36, t5.annual_income AS annual_income_37, t5.phone_verified AS phone_verified_38, t5.email_verified AS email_verified_39, t5.id_card_verified AS id_card_verified_40, t5.nb_bookings_offerer AS nb_bookings_offerer_41, t5.nb_bookings_asker AS nb_bookings_asker_42, t5.fee_as_asker AS fee_as_asker_43, t5.fee_as_offerer AS fee_as_offerer_44, t5.average_rating_as_asker AS average_rating_as_asker_45, t5.average_rating_as_offerer AS average_rating_as_offerer_46, t5.mother_tongue AS mother_tongue_47, t5.answer_delay AS answer_delay_48, t5.slug AS slug_49, t5.createdAt AS createdAt_50, t5.updatedAt AS updatedAt_51 FROM user_translation t0 LEFT JOIN `user` t5 ON t0.translatable_id = t5.id WHERE t0.translatable_id = ? 
DEBUG - User was reloaded from a user provider. 
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure". 
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelRequest". 
DEBUG - Notified event "kernel.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\SessionListener::onKernelRequest". 
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\FragmentListener::onKernelRequest". 
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest". 
DEBUG - Notified event "kernel.request" to listener "Lexik\Bundle\CurrencyBundle\EventListener\LocaleListener::setCurrencyFormatterLocale". 
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest". 
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\TranslatorListener::onKernelRequest". 
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\Security\Http\Firewall::onKernelRequest". 
DEBUG - Notified event "kernel.request" to listener "Cocorico\CoreBundle\Listener\UserTypeCookieListener::onKernelRequest". 
DEBUG - Notified event "kernel.request" to listener "Knp\Bundle\MenuBundle\EventListener\VoterInitializerListener::onKernelRequest". 
DEBUG - Notified event "kernel.request" to listener "SimpleThings\EntityAudit\Request\CurrentUserListener::handle". 
DEBUG - Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController". 
DEBUG - Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController". 
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ControllerListener::onKernelController". 
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener::onKernelController". 
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\HttpCacheListener::onKernelController". 
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::onKernelController". 
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener::onKernelController". 
INFO - Returning a type name from Sonata\AdminBundle\Form\Extension\Field\Type\FormTypeFieldExtension::getExtendedType() is deprecated since version 2.8 and will be removed in 3.0. Return the fully-qualified type class name instead. 
INFO - Accessing type "form" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Symfony\Component\Form\Extension\Core\Type\FormType" instead. 
INFO - Sonata\AdminBundle\Form\Extension\Field\Type\FormTypeFieldExtension: The FormTypeExtensionInterface::setDefaultOptions() method is deprecated since version 2.7 and will be removed in 3.0. Use configureOptions() instead. This method will be added to the FormTypeExtensionInterface with Symfony 3.0. 
INFO - Sonata\AdminBundle\Form\Extension\Field\Type\MopaCompatibilityTypeFieldExtension: The FormTypeExtensionInterface::setDefaultOptions() method is deprecated since version 2.7 and will be removed in 3.0. Use configureOptions() instead. This method will be added to the FormTypeExtensionInterface with Symfony 3.0. 
INFO - Sonata\AdminBundle\Form\Extension\Field\Type\FormTypeFieldExtension: The FormTypeExtensionInterface::setDefaultOptions() method is deprecated since version 2.7 and will be removed in 3.0. Use configureOptions() instead. This method will be added to the FormTypeExtensionInterface with Symfony 3.0. 
INFO - Accessing type "hidden" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Symfony\Component\Form\Extension\Core\Type\HiddenType" instead. 
INFO - Sonata\AdminBundle\Form\Type\Filter\DefaultType: The FormTypeInterface::getName() method is deprecated since version 2.8 and will be removed in 3.0. Remove it from your classes. Use getBlockPrefix() if you want to customize the template block prefix. This method will be added to the FormTypeInterface with Symfony 3.0. 
INFO - Accessing type "sonata_type_filter_default" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Sonata\AdminBundle\Form\Type\Filter\DefaultType" instead. 
INFO - Sonata\AdminBundle\Form\Type\Filter\DefaultType: The FormTypeInterface::setDefaultOptions() method is deprecated since version 2.7 and will be removed in 3.0. Use configureOptions() instead. This method will be added to the FormTypeInterface with Symfony 3.0. 
INFO - Sonata\AdminBundle\Form\Type\Filter\ChoiceType: The FormTypeInterface::getName() method is deprecated since version 2.8 and will be removed in 3.0. Remove it from your classes. Use getBlockPrefix() if you want to customize the template block prefix. This method will be added to the FormTypeInterface with Symfony 3.0. 
INFO - Accessing type "sonata_type_filter_choice" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Sonata\AdminBundle\Form\Type\Filter\ChoiceType" instead. 
INFO - Sonata\AdminBundle\Form\Type\Filter\ChoiceType: The FormTypeInterface::setDefaultOptions() method is deprecated since version 2.7 and will be removed in 3.0. Use configureOptions() instead. This method will be added to the FormTypeInterface with Symfony 3.0. 
INFO - Accessing type "sonata_type_filter_choice" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Sonata\AdminBundle\Form\Type\Filter\ChoiceType" instead. 
INFO - Accessing type "sonata_type_filter_default" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Sonata\AdminBundle\Form\Type\Filter\DefaultType" instead. 
INFO - Accessing type "sonata_type_filter_choice" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Sonata\AdminBundle\Form\Type\Filter\ChoiceType" instead. 
INFO - Accessing type "sonata_type_filter_default" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Sonata\AdminBundle\Form\Type\Filter\DefaultType" instead. 
INFO - Accessing type "sonata_type_filter_default" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Sonata\AdminBundle\Form\Type\Filter\DefaultType" instead. 
INFO - Accessing type "sonata_type_filter_default" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Sonata\AdminBundle\Form\Type\Filter\DefaultType" instead. 
INFO - Accessing type "sonata_type_filter_default" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Sonata\AdminBundle\Form\Type\Filter\DefaultType" instead. 
INFO - Accessing type "sonata_type_filter_default" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Sonata\AdminBundle\Form\Type\Filter\DefaultType" instead. 
INFO - Accessing type "sonata_type_filter_default" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Sonata\AdminBundle\Form\Type\Filter\DefaultType" instead. 
INFO - Accessing type "hidden" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Symfony\Component\Form\Extension\Core\Type\HiddenType" instead. 
INFO - Accessing type "hidden" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Symfony\Component\Form\Extension\Core\Type\HiddenType" instead. 
INFO - Accessing type "hidden" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Symfony\Component\Form\Extension\Core\Type\HiddenType" instead. 
INFO - Accessing type "hidden" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Symfony\Component\Form\Extension\Core\Type\HiddenType" instead. 
INFO - Accessing type "text" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Symfony\Component\Form\Extension\Core\Type\TextType" instead. 
INFO - Accessing type "choice" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Symfony\Component\Form\Extension\Core\Type\ChoiceType" instead. 
INFO - The value "false" for the "choices_as_values" option of the "choice" form type (Symfony\Component\Form\Extension\Core\Type\ChoiceType) is deprecated since version 2.8 and will not be supported anymore in 3.0. Set this option to "true" and flip the contents of the "choices" option instead. 
INFO - The Symfony\Component\Form\ChoiceList\ArrayKeyChoiceList class is deprecated since version 2.8 and will be removed in 3.0. Use Symfony\Component\Form\ChoiceList\ArrayChoiceList instead. 
INFO - Accessing type "text" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Symfony\Component\Form\Extension\Core\Type\TextType" instead. 
INFO - Accessing type "choice" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Symfony\Component\Form\Extension\Core\Type\ChoiceType" instead. 
INFO - The value "false" for the "choices_as_values" option of the "choice" form type (Symfony\Component\Form\Extension\Core\Type\ChoiceType) is deprecated since version 2.8 and will not be supported anymore in 3.0. Set this option to "true" and flip the contents of the "choices" option instead. 
INFO - Accessing type "text" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Symfony\Component\Form\Extension\Core\Type\TextType" instead. 
INFO - Accessing type "choice" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Symfony\Component\Form\Extension\Core\Type\ChoiceType" instead. 
INFO - Accessing type "sonata_type_equal" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Sonata\CoreBundle\Form\Type\EqualType" instead. 
INFO - The value "false" for the "choices_as_values" option of the "choice" form type (Symfony\Component\Form\Extension\Core\Type\ChoiceType) is deprecated since version 2.8 and will not be supported anymore in 3.0. Set this option to "true" and flip the contents of the "choices" option instead. 
INFO - Accessing type "entity" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Symfony\Bridge\Doctrine\Form\Type\EntityType" instead. 
INFO - Accessing type "choice" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Symfony\Component\Form\Extension\Core\Type\ChoiceType" instead. 
INFO - The value "false" for the "choices_as_values" option of the "choice" form type (Symfony\Component\Form\Extension\Core\Type\ChoiceType) is deprecated since version 2.8 and will not be supported anymore in 3.0. Set this option to "true" and flip the contents of the "choices" option instead. 
INFO - Accessing type "choice" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Symfony\Component\Form\Extension\Core\Type\ChoiceType" instead. 
INFO - Accessing type "hidden" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Symfony\Component\Form\Extension\Core\Type\HiddenType" instead. 
INFO - Accessing type "date" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Symfony\Component\Form\Extension\Core\Type\DateType" instead. 
INFO - Accessing type "sonata_type_date_picker" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Sonata\CoreBundle\Form\Type\DatePickerType" instead. 
INFO - Accessing type "hidden" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Symfony\Component\Form\Extension\Core\Type\HiddenType" instead. 
INFO - Accessing type "sonata_type_date_picker" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Sonata\CoreBundle\Form\Type\DatePickerType" instead. 
INFO - Accessing type "choice" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Symfony\Component\Form\Extension\Core\Type\ChoiceType" instead. 
INFO - The value "false" for the "choices_as_values" option of the "choice" form type (Symfony\Component\Form\Extension\Core\Type\ChoiceType) is deprecated since version 2.8 and will not be supported anymore in 3.0. Set this option to "true" and flip the contents of the "choices" option instead. 
INFO - Accessing type "text" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Symfony\Component\Form\Extension\Core\Type\TextType" instead. 
INFO - Accessing type "choice" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Symfony\Component\Form\Extension\Core\Type\ChoiceType" instead. 
INFO - The value "false" for the "choices_as_values" option of the "choice" form type (Symfony\Component\Form\Extension\Core\Type\ChoiceType) is deprecated since version 2.8 and will not be supported anymore in 3.0. Set this option to "true" and flip the contents of the "choices" option instead. 
INFO - Accessing type "text" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Symfony\Component\Form\Extension\Core\Type\TextType" instead. 
INFO - Accessing type "sonata_type_equal" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Sonata\CoreBundle\Form\Type\EqualType" instead. 
INFO - The value "false" for the "choices_as_values" option of the "choice" form type (Symfony\Component\Form\Extension\Core\Type\ChoiceType) is deprecated since version 2.8 and will not be supported anymore in 3.0. Set this option to "true" and flip the contents of the "choices" option instead. 
INFO - Accessing type "entity" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Symfony\Bridge\Doctrine\Form\Type\EntityType" instead. 
INFO - Accessing type "sonata_type_equal" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Sonata\CoreBundle\Form\Type\EqualType" instead. 
INFO - The value "false" for the "choices_as_values" option of the "choice" form type (Symfony\Component\Form\Extension\Core\Type\ChoiceType) is deprecated since version 2.8 and will not be supported anymore in 3.0. Set this option to "true" and flip the contents of the "choices" option instead. 
INFO - Accessing type "entity" by its string name is deprecated since version 2.8 and will be removed in 3.0. Use the fully-qualified type class name "Symfony\Bridge\Doctrine\Form\Type\EntityType" instead. 
CRITICAL - Uncaught PHP Exception Symfony\Component\Debug\Exception\ContextErrorException: "Warning: count(): Parameter must be an array or an object that implements Countable" at /cocorico/vendor/symfony/symfony/src/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php line 740 
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure". 
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelRequest". 
DEBUG - Notified event "kernel.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\SessionListener::onKernelRequest". 
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\FragmentListener::onKernelRequest". 
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest". 
DEBUG - Notified event "kernel.request" to listener "Lexik\Bundle\CurrencyBundle\EventListener\LocaleListener::setCurrencyFormatterLocale". 
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest". 
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\TranslatorListener::onKernelRequest". 
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\Security\Http\Firewall::onKernelRequest". 
DEBUG - Notified event "kernel.request" to listener "Cocorico\CoreBundle\Listener\UserTypeCookieListener::onKernelRequest". 
DEBUG - Notified event "kernel.request" to listener "Knp\Bundle\MenuBundle\EventListener\VoterInitializerListener::onKernelRequest". 
DEBUG - Notified event "kernel.request" to listener "SimpleThings\EntityAudit\Request\CurrentUserListener::handle". 
INFO - The possibility to register the same extension twice ("Text") is deprecated since version 1.23 and will be removed in Twig 2.0. Use proper PHP inheritance instead. 
INFO - The "security.context" service is deprecated since Symfony 2.6 and will be removed in 3.0. 
INFO - The Symfony\Component\Security\Core\SecurityContext class is deprecated since version 2.6 and will be removed in 3.0. Use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage or Symfony\Component\Security\Core\Authorization\AuthorizationChecker instead. 
DEBUG - Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController". 
DEBUG - Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController". 
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ControllerListener::onKernelController". 
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener::onKernelController". 
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\HttpCacheListener::onKernelController". 
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::onKernelController". 
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener::onKernelController". 

Stack Trace (Plain Text) -

[1] Symfony\Component\Debug\Exception\ContextErrorException: Warning: count(): Parameter must be an array or an object that implements Countable
    at n/a
        in /cocorico/vendor/symfony/symfony/src/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php line 740

    at Symfony\Component\Debug\ErrorHandler->handleError('2', 'count(): Parameter must be an array or an object that implements Countable', '/cocorico/vendor/symfony/symfony/src/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php', '740', array('value' => object(OrderedHashMap), 'object' => object(Form), 'cacheKey' => '0000000026ace9d7000000005ef9bc0d:children', 'metadata' => object(PropertyMetadata), 'propertyPath' => 'children', 'groups' => array('Default'), 'cascadedGroups' => null, 'traversalStrategy' => '1', 'context' => object(ExecutionContext), 'group' => 'Default', 'key' => '0', 'cascadingStrategy' => '2'))
        in  line 

    at count(null)
        in /cocorico/vendor/symfony/symfony/src/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php line 740

    at Symfony\Component\Validator\Validator\RecursiveContextualValidator->validateGenericNode(object(OrderedHashMap), object(Form), '0000000026ace9d7000000005ef9bc0d:children', object(PropertyMetadata), 'children', array('Default'), null, '1', object(ExecutionContext))
        in /cocorico/vendor/symfony/symfony/src/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php line 608

    at Symfony\Component\Validator\Validator\RecursiveContextualValidator->validateClassNode(object(Form), '0000000026ace9d7000000005ef9bc0d', object(ClassMetadata), '', array('Default'), null, '1', object(ExecutionContext))
        in /cocorico/vendor/symfony/symfony/src/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php line 364

    at Symfony\Component\Validator\Validator\RecursiveContextualValidator->validateObject(object(Form), '', array('Default'), '1', object(ExecutionContext))
        in /cocorico/vendor/symfony/symfony/src/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php line 154

    at Symfony\Component\Validator\Validator\RecursiveContextualValidator->validate(object(Form), null, array('Default'))
        in /cocorico/vendor/symfony/symfony/src/Symfony/Component/Validator/Validator/RecursiveValidator.php line 134

    at Symfony\Component\Validator\Validator\RecursiveValidator->validate(object(Form))
        in /cocorico/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Validator/EventListener/ValidationListener.php line 68

    at Symfony\Component\Form\Extension\Validator\EventListener\ValidationListener->validateForm(object(FormEvent), 'form.post_bind', object(EventDispatcher))
        in  line 

    at call_user_func(array(object(ValidationListener), 'validateForm'), object(FormEvent), 'form.post_bind', object(EventDispatcher))
        in /cocorico/app/cache/dev/classes.php line 1853

    at Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(array(array(object(ValidationListener), 'validateForm'), array(object(DataCollectorListener), 'postSubmit')), 'form.post_bind', object(FormEvent))
        in /cocorico/app/cache/dev/classes.php line 1771

    at Symfony\Component\EventDispatcher\EventDispatcher->dispatch('form.post_bind', object(FormEvent))
        in /cocorico/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/ImmutableEventDispatcher.php line 43

    at Symfony\Component\EventDispatcher\ImmutableEventDispatcher->dispatch('form.post_bind', object(FormEvent))
        in /cocorico/vendor/symfony/symfony/src/Symfony/Component/Form/Form.php line 660

    at Symfony\Component\Form\Form->submit(array())
        in /cocorico/app/cache/dev/classes.php line 12154

    at Sonata\AdminBundle\Datagrid\Datagrid->buildPager()
        in /cocorico/app/cache/dev/classes.php line 12247

    at Sonata\AdminBundle\Datagrid\Datagrid->getForm()
        in /cocorico/vendor/sonata-project/admin-bundle/Controller/CRUDController.php line 217

    at Sonata\AdminBundle\Controller\CRUDController->listAction()
        in  line 

    at call_user_func_array(array(object(CRUDController), 'listAction'), array())
        in /cocorico/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 139

    at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '1')
        in /cocorico/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 62

    at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '1', true)
        in /cocorico/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php line 69

    at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '1', true)
        in /cocorico/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php line 185

    at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
        in /cocorico/web/app_dev.php line 30

Please help me My project is stopped because of these errors, I need a lot of progress in my project.

Unfortunately I still do not have enough knowledge in the cocorico to be able to solve this problem alone.

Thanks again!

giorgio654 commented 5 years ago

Hello @Saraivahost , This issue is now fixed, so can you please pull your cocorico repositories (image and source code) ?