Skip to main content
Topic: Errors in Message.controller.php (Read 1286 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Errors in Message.controller.php

Hi,
I get an Undefined index: id in the Message.controller.php file on lines 318, 327,329 and 330, and Undefined index: messages on line 331
Code: [Select]
316:foreach ($context['labels'] as $label)
317:{
318:if ($label['id'] == -1)
319:{
320:continue;
321:}
322:
323:// Count the amount of unread items in labels.
324:$label_counters['labels_unread_total'] += $label['unread_messages'];
325:
326:// Add the label to the menu.
327:$pm_areas['labels']['areas']['label' . $label['id']] = array(
328:'label' => $label['name'],
329:'custom_url' => $scripturl . '?action=pm;l=' . $label['id'],
330:'counter' => 'label' . $label['id'],
331:'messages' => $label['messages'],
332:);
333:
334:$label_counters['label' . $label['id']] = $label['unread_messages'];
335:}
    augras
    Mercredi 02 Mai 2018, 20:05:57
    IP

    ynQQpNPJi4RKPL7PNavmFxnl43wDJfmM
    Type d'erreur: Non défini
    Notice: Undefined index: id

    https://augras.eu/puppy_forum/index.php?action=pm;sa=send;f=inbox;pmsg=8;u=6

    Fichier: /home/augras/public_html/augras.eu/puppy_forum/sources/controllers/PersonalMessage.controller.php
    Ligne: 318      

    augras
    Mercredi 02 Mai 2018, 20:05:57
    IP

    ynQQpNPJi4RKPL7PNavmFxnl43wDJfmM
    Type d'erreur: Non défini
    Notice: Undefined index: id

    https://augras.eu/puppy_forum/index.php?action=pm;sa=send;f=inbox;pmsg=8;u=6

    Fichier: /home/augras/public_html/augras.eu/puppy_forum/sources/controllers/PersonalMessage.controller.php
    Ligne: 327      

    augras
    Mercredi 02 Mai 2018, 20:05:57
    IP

    ynQQpNPJi4RKPL7PNavmFxnl43wDJfmM
    Type d'erreur: Non défini
    Notice: Undefined index: id

    https://augras.eu/puppy_forum/index.php?action=pm;sa=send;f=inbox;pmsg=8;u=6

    Fichier: /home/augras/public_html/augras.eu/puppy_forum/sources/controllers/PersonalMessage.controller.php
    Ligne: 329      

    augras
    Mercredi 02 Mai 2018, 20:05:57
    IP

    ynQQpNPJi4RKPL7PNavmFxnl43wDJfmM
    Type d'erreur: Non défini
    Notice: Undefined index: id

    https://augras.eu/puppy_forum/index.php?action=pm;sa=send;f=inbox;pmsg=8;u=6

    Fichier: /home/augras/public_html/augras.eu/puppy_forum/sources/controllers/PersonalMessage.controller.php
    Ligne: 330      

    augras
    Mercredi 02 Mai 2018, 20:05:57
    IP

    ynQQpNPJi4RKPL7PNavmFxnl43wDJfmM
    Type d'erreur: Non défini
    Notice: Undefined index: id

    https://augras.eu/puppy_forum/index.php?action=pm;sa=send;f=inbox;pmsg=8;u=6

    Fichier: /home/augras/public_html/augras.eu/puppy_forum/sources/controllers/PersonalMessage.controller.php
    Ligne: 334      

    augras
    Mercredi 02 Mai 2018, 20:05:58
    IP

    ynQQpNPJi4RKPL7PNavmFxnl43wDJfmM
    Type d'erreur: Non défini
    Notice: Undefined index: id

    https://augras.eu/puppy_forum/index.php?action=pm;sa=send;f=inbox;pmsg=8;u=6

    Fichier: /home/augras/public_html/augras.eu/puppy_forum/sources/controllers/PersonalMessage.controller.php
    Ligne: 318      

    augras
    Mercredi 02 Mai 2018, 20:05:58
    IP

    ynQQpNPJi4RKPL7PNavmFxnl43wDJfmM
    Type d'erreur: Non défini
    Notice: Undefined index: id

    https://augras.eu/puppy_forum/index.php?action=pm;sa=send;f=inbox;pmsg=8;u=6

    Fichier: /home/augras/public_html/augras.eu/puppy_forum/sources/controllers/PersonalMessage.controller.php
    Ligne: 327      

    augras
    Mercredi 02 Mai 2018, 20:05:58
    IP

    ynQQpNPJi4RKPL7PNavmFxnl43wDJfmM
    Type d'erreur: Non défini
    Notice: Undefined index: messages

    https://augras.eu/puppy_forum/index.php?action=pm;sa=send;f=inbox;pmsg=8;u=6

    Fichier: /home/augras/public_html/augras.eu/puppy_forum/sources/controllers/PersonalMessage.controller.php
    Ligne: 331

Philippe

Re: Errors in Message.controller.php

Reply #1

Likely part of https://www.elkarte.net/community/index.php?topic=5193.0 but maybe not.

BTW is PersonalMessage.controller.php and PersonalMessage.subs.php. :P
Bugs creator.
Features destroyer.
Template killer.