Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

200
Visualizações
Uncaught TypeError: Cannot read properties of undefined (reading 'hasTime') in fullcalendar when pulling through large number of SQL records

As the title says, I am getting that uncaught TypeError when I pull through for example 1800 records on the SQL statement to populate the calendar. If I add a LIMIT clause to the statement (to around 1500) records, it will pull through ok and display.

I could use this as a solution as a last resort basis, but ideally I would like to pull through all of the records. I did some research and found this question Uncaught TypeError: Cannot read properties of undefined (reading 'hasTime') in fullcalendar which I believe is on the right lines, however I'm not too sure how to add my events as a javascript response variable, as I am currently accessing events using a URL which json encodes the data. Any help would be appreciated. See below for my calendar initialisation

$(document).ready(function() {
var calendar = $('#calendar').fullCalendar({
editable:true,  
header:{
  left:'prev,next today',
  center:'title',
  right:'month,agendaWeek',
},
droppable: true, 
events: 'deliveryCalendars/deliverySheduleLoad.php',

Then my code to put the data into an array

$deliveryDateArray[] = array(
    'mainID'  => $row["orderID"],
    'id'   => $row["DeliveryID"],
    'title'   => $row["lastName"],
    'start'   => $row["deliveryDate"],
    'color' => $color,
    'materials' => $insulation
);
echo json_encode($deliveryDateArray, JSON_PRETTY_PRINT);
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda