ancarebeca / FullCalendarBundle

Symfony3 integration with the library FullCalendar.js
36 stars 38 forks source link

Cannot read property 'stripTime' Error #42

Open ibrasdev opened 6 years ago

ibrasdev commented 6 years ago

Hello everybody,

When i try to access the calendar layout i dont get events on the page, i only got them when i access /full-calendar/load, this is the error i get :

Uncaught TypeError: Cannot read property 'stripTime' of undefined
    at v (fullcalendar.min.js:6)
    at u (fullcalendar.min.js:6)
    at t (fullcalendar.min.js:6)
    at s (fullcalendar.min.js:6)
    at fullcalendar.min.js:6
    at Object.success (fullcalendar.min.js:6)
    at j (jquery.min.js:2)
    at Object.fireWith [as resolveWith] (jquery.min.js:2)
    at x (jquery.min.js:4)
    at XMLHttpRequest.<anonymous> (jquery.min.js:4)

This is my head layout :

{% block stylesheets %}
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="{{ asset('bundles/fullcalendar/css/fullcalendar/fullcalendar.min.css') }}" />
{% endblock %}

{% block javascripts %}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript" src="{{ asset('bundles/fullcalendar/js/fullcalendar/lib/jquery.min.js') }}"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/bootstrap-confirmation/1.0.7/bootstrap-confirmation.js"></script>
<script src="{{ asset('bundles/fosjsrouting/js/router.js') }}"></script>
<script src="{{ path('fos_js_routing_js', { callback: 'fos.Router.setData' }) }}"></script>
<script type="text/javascript" src="{{ asset('bundles/fullcalendar/js/fullcalendar/lib/moment.min.js') }}"></script>
<script type="text/javascript" src="{{ asset('bundles/fullcalendar/js/fullcalendar/fullcalendar.min.js') }}"></script>
<script type="text/javascript" src="{{ asset('bundles/fullcalendar/js/fullcalendar/fullcalendar.default-settings.js') }}"></script>
{% endblock %}
ibrasdev commented 6 years ago

I have verified the date format on the db and all seems to be okey. Im really lost

ancarebeca commented 6 years ago

Hi @ibrasdev ,

It's really hard to understand the problem I would recommend to use just one javascript version. I cannot reproduce the error, Have you changed any default configuration?