Dotclear

Vous n'êtes pas identifié(e).

Annonce

13 février 2024 Sortie de Dotclear 2.29

#1 2014-12-21 23:04:04

yekcim
Membre
Inscription : 2010-07-02

Fatal error: Call to a member function fetch() on a non-object in …

bonjour

depuis ma migration en 2.7 j’obtiens le message d’erreur suivant après mon post :

Fatal error: Call to a member function fetch() on a non-object in /mnt/113/sdb/b/4/yeknan/dc2/cache/cbtpl/3d/2d/3d2d787430a51044911b82d35c8c92a9.php on line 74

et la suite n’apparait pas (pas de commentaires possibles…). Du coup, ce problème résoud tout problème de spam c’est vrai, mais c’est assez problématique tout de même pour mon usage.

Ce message apparait par exemple sur la page : http://yeknan.free.fr/dc2/index.php?pos … %C3%A9nage

La ligne 74 du fichier incriminé est la suivante :

<?php $attach_i = 0; ?><?php while ($_ctx->attachments->fetch()) : ?><?php $GLOBALS['attach_i'] = $attach_i; $attach_f = $_ctx->attachments; $GLOBALS['attach_f'] = $attach_f;$_ctx->file_url = $attach_f->file_url; ?>
    <?php if ($_ctx->attachments->isStart()) : ?>
      <div id="attachments">
      <h3><?php echo __('Attachments'); ?></h3>
      <ul>
    <?php endif; ?>
      <li class="<?php echo context::global_filter($_ctx->attachments->media_type,0,0,0,0,0,0,'AttachmentType'); ?>">
        <?php if($_ctx->attachments->type == "audio/mpeg3") : ?>
          <?php try { echo $core->tpl->getData('_mp3_player.html'); } catch (Exception $e) {} ?>
 - 
        <?php endif; ?>
        <?php if(($_ctx->attachments->type == "video/x-flv" || $_ctx->attachments->type == "video/mp4" || $_ctx->attachments->type == "video/x-m4v")) : ?>
	     <?php try { echo $core->tpl->getData('_flv_player.html'); } catch (Exception $e) {} ?>

	   <?php endif; ?>
	   <?php if(!($_ctx->attachments->type == "video/x-flv" || $_ctx->attachments->type == "video/mp4" || $_ctx->attachments->type == "video/x-m4v")) : ?>
	   	<a href="<?php echo context::global_filter($_ctx->attachments->file_url,0,0,0,0,0,0,'AttachmentURL'); ?>"
		title="<?php echo context::global_filter($_ctx->attachments->basename,0,0,0,0,0,0,'AttachmentFileName'); ?> (<?php echo context::global_filter(files::size($_ctx->attachments->size),0,0,0,0,0,0,'AttachmentSize'); ?>)"><?php echo context::global_filter($_ctx->attachments->media_title,0,0,0,0,0,0,'AttachmentTitle'); ?></a>
        <?php endif; ?>
      </li>
    <?php if ($_ctx->attachments->isEnd()) : ?>
      </ul>
      </div>
    <?php endif; ?>
  <?php $attach_i++; ?><?php endwhile; $_ctx->attachments = null; ?><?php } ?>

…

Le fait de supprimer ce fichier du serveur ne change rien, il est recréé…

Vous auriez une piste, s’il vous plait ?

Hors ligne

#2 2014-12-21 23:09:12

i_love_dc
Membre
Inscription : 2007-07-13

Re : Fatal error: Call to a member function fetch() on a non-object in …

bonjour

as-tu pensé à vider le cache via l'outil "Maintenance" ?

Hors ligne

#3 2014-12-21 23:22:09

Jean-Michel
Modérateur à ailes d'ange
Lieu : Paris
Inscription : 2006-08-22
Site Web

Re : Fatal error: Call to a member function fetch() on a non-object in …

Sauf erreur de ma part, la dernière mise à jour supportée sur les serveurs de Free est la 2.5.3.

Hors ligne

#4 2014-12-21 23:25:47

yekcim
Membre
Inscription : 2010-07-02

Re : Fatal error: Call to a member function fetch() on a non-object in …

i_love_dc → Je n’y avais pas pensé mais je viens de le faire, sans résultat

Dernière modification par yekcim (2014-12-21 23:28:17)

Hors ligne

#5 2014-12-21 23:29:27

yekcim
Membre
Inscription : 2010-07-02

Re : Fatal error: Call to a member function fetch() on a non-object in …

Jean-Michel → ça peut être un problème en effet… et merde, l’idée de faire la migration dans l’autre sens ne m’enthousiasme pas vraiment…

Hors ligne

Vous n'êtes pas identifié(e).

Pied de page des forums

Sites map