Fork me on GitHub




(1) 2 3 »


Smallworld Error : Error: Class 'PublicWallUpdates' not found
Régulier
Inscrit: 17/12/2008 10:55
Messages: 203
Bonjour à tous,

J'espère que vous allez tous bien au vu du contexte actuel.
Avec le confinement, voilà le temps idéal pour apporter quelques nouveaux éléments à mon site. Avec le module Smallword de Culex.

Ma config:
XOOPS Version
XOOPS 2.5.10
PHP Version
7.3.12
mySQL Version
5.6.46-log
BootStrap Version
4

Version de Smallworld: 1.16

L'installation se passe bien, la partie admin à l'air coorect aussi.
Mais lorsque je veux acceder au module, j'obtiens l'erreur :
Class 'PublicWallUpdates' not found

(J'ai bien vérifier dans le dossier Class du module, il y a bien PublicWallUpdates.php)


Est ce que quelqu'un aurait une solution à ce problème? Ou une alternative à ce module?

En vous remerciant par avance pour votre aide.

Sebastien

Posté le : 24/03/2020 18:16
Partager Twitter Partagez cette article sur GG+
Re: Smallworld Error : Error: Class 'PublicWallUpdates' not found
Admin Frxoops
Inscrit: 04/02/2003 06:41
Messages: 923
En fait il cherche la Class "PublicWallUpdates" qui peut-être se trouve dans ton fichier PublicWallUpdates.php ou dans un autre.

Il va falloir vérifier que cette dernière et bien présente dans un des fichiers (je ne connais pas ce module et peu d'infos à son sujet pour t'aider).

Elle doit commencer par :
public class PublicWallUpdates {

ou

class PublicWallUpdates {

Il se peut aussi qu'un fichier se soit perdu lors du téléchargement du module. A vérifier !

Posté le : 26/03/2020 08:03

Quand tu montres la lune du doigt, l'imbécile regarde le doigt.
Infos sur TSO et tutos PC sur Tutoriaux PC
Partager Twitter Partagez cette article sur GG+
Re: Smallworld Error : Error: Class 'PublicWallUpdates' not found
Régulier
Inscrit: 17/12/2008 10:55
Messages: 203
Bonjour Babouille,

Merci pour ta réponse et la piste de recherche :)
Ca fait tellement longtemps que je n'ai pas bidouillé que j'ai perdu les bons reflexes.
Je vais explorer dans ce sens :) Et je vous tiens au courant.
Merci

Posté le : 26/03/2020 21:16
Partager Twitter Partagez cette article sur GG+
Re: Smallworld Error : Error: Class 'PublicWallUpdates' not found
Régulier
Inscrit: 17/12/2008 10:55
Messages: 203
Bon ben... les bons reflexes ne reviennent pas :):)
Donc effectivement le class PublicWallUpdates{ est bien dans le PublicWallUpdate.php
Je continue de chercher, mais si jamais quelqu'un repère une erreur en survolant le truc, j'ai l'impression que je passe à côté d'un truc tout bête... (Peut être un conflit avec les modules de tad que j'utilise à côté...)
Merci par avance a ceux qui prendront le temps de jeter un oeil et à ceux qui l'ont déja fait.
Et je vais tester sur une installation neuve.

<?php namespace Xoopsmodulessmallworld;
/**
 * You may not change or alter any portion of this comment or credits
 * of supporting developers from this source code or any supporting source code
 * which is considered copyrighted (c) material of the original comment or credit authors.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 */

/**
 * SmallWorld
 *
 * @copyright    The XOOPS Project (https://xoops.org)
 * @copyright    2011 Culex
 * @license      GNU GPL (http://www.gnu.org/licenses/gpl-2.0.html/)
 * @package      SmallWorld
 * @since        1.0
 * @author       Michael Albertsen (http://culex.dk) <culex@culex.dk>
 */
// Moderated and fitted from the tutorial by Srinivas Tamada http://9lessons.info

class PublicWallUpdates{
    private function 
getAdminModerators()
    {
        global 
$xoopsDB$xoopsUser;
        
$sql    'SELECT userid
                FROM ' 
$xoopsDB->prefix('smallworld_user') . ' su
                LEFT JOIN ' 
$xoopsDB->prefix('groups_users_link') . ' xu ON su.userid = xu.uid
                WHERE xu.uid IN (1)'
;
        
$result $xoopsDB->queryF($sql);
        while (
$row $xoopsDB->fetchArray($result)) {
            
$data[] = $row;
        }
    }

    
/**
     * Get arry of users being inspected
     *
     *
     */

    
public function inspected()
    {
        global 
$xoopsDB;
        
$sql    'SELECT userid FROM ' $xoopsDB->prefix('smallworld_admin') . ' WHERE (inspect_start+inspect_stop) > ' time() . '';
        
$result $xoopsDB->queryF($sql);
        
$data   = [];
        while (
$row $xoopsDB->fetchArray($result)) {
            
$data[] = $row;
        }
        if (!empty(
$data)) {
            
$sub implode(','Smallworld_array_flatten(array_unique($data), 0));
        } else {
            
$sub 0;
        }
        return 
$sub;
    }

    
/**
     * @Get array of updates
     * @param int   $last
     * @param  array $moderators
     * @return array|bool
     */
    
public function Updates($last$moderators)
    {
        global 
$xoopsUser$xoopsDB$moduleConfig$xoopsLogger;
        
$moderators is_array($moderators) ? $moderators : [$moderators];
        
$hm         smallworld_GetModuleOption('msgtoshow');
        
$set        smallworld_checkPrivateOrPublic();
        
$mods       implode(','Smallworld_array_flatten(array_unique($moderators), 0));
        
$inspected  $this->inspected();
        
$perm       smallworld_GetModuleOption('smallworldshowPoPubPage');
        
$i          0;

        if (
== $last) {
            
$query 'SELECT M.msg_id, M.uid_fk, M.priv, M.message, M.created, U.username FROM '
                     
$xoopsDB->prefix('smallworld_messages')
                     . 
' M, '
                     
$xoopsDB->prefix('smallworld_user')
                     . 
' U WHERE M.uid_fk=U.userid AND M.uid_fk IN ('
                     
$mods
                     
') AND M.uid_fk NOT IN ('
                     
$inspected
                     
") AND M.priv = '0'";
        } elseif (
$last 0) {
            
$query 'SELECT M.msg_id, M.uid_fk, M.priv, M.message, M.created, U.username FROM '
                     
$xoopsDB->prefix('smallworld_messages')
                     . 
' M, '
                     
$xoopsDB->prefix('smallworld_user')
                     . 
' U  WHERE M.uid_fk=U.userid AND M.uid_fk IN ('
                     
$mods
                     
') AND M.uid_fk NOT IN ('
                     
$inspected
                     
") AND M.priv = '0' AND M.msg_id < '"
                     
$last
                     
"'";
        } elseif (
'a' == $last) {
            
$query 'SELECT M.msg_id, M.uid_fk, M.priv, M.message, M.created, U.username FROM '
                     
$xoopsDB->prefix('smallworld_messages')
                     . 
' M, '
                     
$xoopsDB->prefix('smallworld_user')
                     . 
' U  WHERE M.uid_fk=U.userid AND M.uid_fk IN ('
                     
$mods
                     
') AND M.uid_fk NOT IN ('
                     
$inspected
                     
") AND M.priv = '0'";
        }

        if (
$last 0) {
            
$query .= ' order by created DESC LIMIT ' $hm;
        } elseif (
'a' == $last) {
            
$query .= ' order by M.msg_id DESC LIMIT ' $hm;
        } else {
            
$query .= ' order by created DESC LIMIT ' $hm;
        }

        
$result $xoopsDB->queryF($query);
        
$count  $xoopsDB->getRowsNum($result);
        if (
== $count) {
            return 
false;
        } else {
            while (
$row $xoopsDB->fetchArray($result)) {
                
$data[] = $row;
            }

            if (!empty(
$data)) {
                return 
$data;
            }
        }
    }

    
/**
     * @Get comments based on msg id
     * @param int $msg_id
     * @return array
     */
    
public function Comments($msg_id)
    {
        global 
$xoopsUser$xoopsDB;
        
$inspected $this->inspected();
        
$query     'SELECT C.msg_id_fk, C.com_id, C.uid_fk, C.comment, C.created, U.username FROM '
                     
$xoopsDB->prefix('smallworld_comments')
                     . 
' C, '
                     
$xoopsDB->prefix('smallworld_user')
                     . 
" U WHERE C.uid_fk=U.userid AND C.msg_id_fk='"
                     
$msg_id
                     
"' AND C.uid_fk NOT IN ("
                     
$inspected
                     
') ORDER BY C.com_id ASC ';
        
$result    $xoopsDB->queryF($query);
        
$i         $xoopsDB->getRowsNum($result);
        while (
$row $xoopsDB->fetchArray($result)) {
            
$data[] = $row;
        }
        if (!empty(
$data)) {
            return 
$data;
        }
    }

    
/**
     * @Get user image based on uid
     * @param int $uid
     * @return string
     */
    
public function Gravatar($uid)
    {
        global 
$xoopsUser$xoopsDB;
        
$image  '';
        
$sql    'SELECT userimage FROM ' $xoopsDB->prefix('smallworld_user') . " WHERE userid = '" $uid "'";
        
$result $xoopsDB->queryF($sql);
        while (
$r $xoopsDB->fetchArray($result)) {
            
$image $r['userimage'];
        }

        if (
'blank.gif' === $image) {
            
$image smallworld_getAvatarLink($uid$image);
        }

        
//$image = ($image == '' || $image == 'blank.gif') ? smallworld_getAvatarLink($uid, $image) : $image;

        
$type = [
            
=> 'jpg',
            
=> 'jpeg',
            
=> 'png',
            
=> 'gif'
        
];

        
$ext explode('.'$image);

        if (@!
in_array(strtolower($ext[1]), $type) || '' == $image) {
            
$avatar '';
        } else {
            
$avatar $image;
        }
        return 
$avatar;
    }

    
/**
     * @count all votes
     * @param int $type
     * @param int $val
     * @param int $msgid
     * @return int
     */
    
public function countVotes($type$val$msgid)
    {
        global 
$xoopsUser$xoopsDB;
        
$sum 0;
        
$query  'Select SUM(' $val ') as sum from ' $xoopsDB->prefix('smallworld_vote') . " where msg_id = '" $msgid "' and com_id = '0'";
        
$result $xoopsDB->queryF($query);
        while (
$row $xoopsDB->fetchArray($result)) {
            
$sum $row['sum'];
        }
        if (
'' == $sum) {
            
$sum 0;
        }
        return 
$sum;
    }

    
/**
     * @Count comments votes
     * @param int $type
     * @param int $val
     * @param int $comid
     * @param int $msgid
     * @returns int
     */
    
public function countVotesCom($type$val$comid$msgid)
    {
        global 
$xoopsUser$xoopsDB;
        
$sum 0;
        
$query  'Select SUM(' $val ') as sum from ' $xoopsDB->prefix('smallworld_vote') . " where com_id = '" $comid "' AND msg_id = '" $msgid "'";
        
$result $xoopsDB->queryF($query);
        while (
$row $xoopsDB->fetchArray($result)) {
            
$sum $row['sum'];
        }
        if (
'' == $sum) {
            
$sum 0;
        }
        return 
$sum;
    }

    
/**
     * @Check is user is friend
     * @param int    $userid
     * @param string $type
     * @param int    $comid
     * @param int    $msgid
     * @return int
     */
    
public function HasVoted($userid$type$comid$msgid)
    {
        global 
$xoopsUser$xoopsDB;
        if (
'msg' === $type) {
            
$sql    'SELECT * FROM ' $xoopsDB->prefix('smallworld_vote') . " WHERE com_id = '0' AND msg_id = '" $msgid "' AND user_id = '" $userid "'";
            
$result $xoopsDB->queryF($sql);
            
$i      $xoopsDB->getRowsNum($result);
        } else {
            
$sql    'SELECT * FROM ' $xoopsDB->prefix('smallworld_vote') . " WHERE com_id = '" $comid "' AND msg_id = '" $msgid "' AND user_id = '" $userid "'";
            
$result $xoopsDB->queryF($sql);
            
$i      $xoopsDB->getRowsNum($result);
        }
        return 
$i;
    }

    
/**
     * @count messages per user
     * @param int $userid
     * @return int
     */
    
public function CountMsges($userid)
    {
        global 
$xoopsDB;
        
$sql    'SELECT (SELECT COUNT(*) FROM ' $xoopsDB->prefix('smallworld_comments') . " WHERE uid_fk = '" $userid "') + (SELECT COUNT(*) FROM " $xoopsDB->prefix('smallworld_messages') . " WHERE uid_fk = '" $userid "')";
        
$result $xoopsDB->queryF($sql);
        
$sum    $xoopsDB->fetchRow($result);
        return 
$sum[0];
    }

    
/**
     * @Show permaling updates
     * @param int $updid
     * @param int $uid
     * @param int $ownerID
     * @return array|bool
     */
    
public function UpdatesPermalink($updid$uid$ownerID)
    {
        global 
$xoopsUser$xoopsDB$moduleConfig;
        
$query  'SELECT M.msg_id, M.uid_fk, M.message, M.created, M.priv, U.username FROM ' $xoopsDB->prefix('smallworld_messages') . ' M, ' $xoopsDB->prefix('smallworld_user') . " U  WHERE M.uid_fk=U.userid AND M.uid_fk='" $ownerID "'";
        
$query  .= " AND M.msg_id = '" $updid "'";
        
$query  .= ' order by M.created DESC LIMIT 1';
        
$result $xoopsDB->queryF($query);
        
$count  $xoopsDB->getRowsNum($result);
        if (
$count 1) {
            return 
false;
        } else {
            while (
$row $xoopsDB->fetchArray($result)) {
                
$data[] = $row;
            }
            if (!empty(
$data)) {
                return 
$data;
            }
        }
    }

    
/**
     * @Get share link
     * @param int $updid
     * @param int $ownerID
     * @return array|bool
     */
    
public function UpdatesSharelink($updid$ownerID)
    {
        global 
$xoopsUser$xoopsDB$moduleConfig;
        
$query  'SELECT M.msg_id, M.uid_fk, M.message, M.created, M.priv, U.username FROM ' $xoopsDB->prefix('smallworld_messages') . ' M, ' $xoopsDB->prefix('smallworld_user') . " U WHERE M.uid_fk=U.userid AND M.uid_fk='" $ownerID "' AND M.priv = 0";
        
$query  .= " AND M.msg_id = '" $updid "'";
        
$query  .= ' order by created DESC LIMIT 1';
        
$result $xoopsDB->queryF($query);
        
$count  $xoopsDB->getRowsNum($result);
        if (
$count 1) {
            return 
false;
        } else {
            while (
$row $xoopsDB->fetchArray($result)) {
                
$data[] = $row;
            }
            if (!empty(
$data)) {
                return 
$data;
            }
        }
    }

    
/**
     * @Get sharing link
     * @param int $id
     * @param int $priv
     * @return string
     */
    
public function GetSharing($id$priv)
    {
        if (
!= $priv) {
            
$text " | <span class='smallworld_share' id='smallworld_share'>";
            
$text .= "<a class='share' id='share-page" $id "' href='javascript:void(0);'>" _SMALLWORLD_SHARELINK '</a></span>';
        } else {
            
$text '';
        }
        return 
$text;
    }

    
/**
     * @Get content for sharing div
     * @param int    $id
     * @param int    $priv
     * @param string $permalink
     * @param string $desc
     * @param string $username
     * @return string
     */
    
public function GetSharingDiv($id$priv$permalink$desc$username)
    {
        if (
!= $priv) {
            
$text "<div style='display: none;' class='smallworld_bookmarks' id='share-page' name='share-page" $id "'>";
            
$text .= "<span name='share-page" $id "' rel1='" $desc "' rel2= '" $username "' rel=" $permalink " id='basicBookmark' title='" _SMALLWORLD_SHAREBOX_TITLE "'>";
            
$text .= '</span></div>';
        } else {
            
$text '';
        }
        return 
$text;
    }

    
/**
     * @Parse update and comments array to template for public updates
     * @param array $updatesarray
     * @param int   $id
     * @return void
     */
    
public function ParsePubArray($updatesarray$id)
    {
        global 
$xoopsUser$xoopsTpl$tpl$xoopsModule$xoopsTpl$xoopsConfig;
        
$wm = [];
        
$check          = new SmallWorldUser;
        
$dBase          = new SmallWorldDB;
        
$profile        $xoopsUser $check->checkIfProfile($id) : 0;
        
$moduleHandler xoops_getHandler('module');
        
$module         $moduleHandler->getByDirname('smallworld');
        
$configHandler xoops_getHandler('config');
        
$moduleConfig   $configHandler->getConfigsByCat(0$module->getVar('mid'));

        
$myavatar          $this->Gravatar($id);
        
$myavatarlink      smallworld_getAvatarLink($id$myavatar);
        
$myavatar_size     smallworld_getImageSize(80100$myavatarlink);
        
$myavatar_highwide smallworld_imageResize($myavatar_size[0], $myavatar_size[1], 100);
        
$user_img          "<img src='" smallworld_getAvatarLink($id$myavatar) . "' id='smallworld_user_img' " $myavatar_highwide '>';

        
$xoopsTpl->assign('myavatar'$myavatar);
        
$xoopsTpl->assign('myavatarlink'$myavatarlink);
        
$xoopsTpl->assign('myavatar_highwide'$myavatar_highwide);
        
$xoopsTpl->assign('avatar'$user_img);

        if (!empty(
$updatesarray)) {
            foreach (
$updatesarray as $data) {

                
// Is update's user a friend ?
                
$frU $check->friendcheck($id$data['uid_fk']);

                
$USW             = [];
                
$USW['posts']    = 0;
                
$USW['comments'] = 0;

                if (
$xoopsUser) {
                    if (
$xoopsUser->isAdmin($xoopsModule->getVar('mid')) || $data['uid_fk'] == $id) {
                        
$USW['posts']    = 1;
                        
$USW['comments'] = 1;
                        
$frU[0]          = 2;
                    } else {
                        
$USW json_decode($dBase->GetSettings($data['uid_fk']), true);
                    }
                }

                if (!
$xoopsUser) {
                    
$USW json_decode($dBase->GetSettings($data['uid_fk']), true);
                }

                
$wm['msg_id']          = $data['msg_id'];
                
$wm['orimessage']      = (== $USW['posts'] || $profile >= 2) ? str_replace(["r""n"], ''Smallworld_stripWordsKeepUrl($data['message'])) : '';
                
$wm['message']         = (== $USW['posts'] || $profile >= 2) ? smallworld_tolink(htmlspecialchars_decode($data['message']), $data['uid_fk']) : _SMALLWORLD_MESSAGE_PRIVSETPOSTS;
                
$wm['message']         = Smallworld_cleanup($wm['message']);
                
$wm['created']         = smallworld_time_stamp($data['created']);
                
$wm['username']        = $data['username'];
                
$wm['uid_fk']          = $data['uid_fk'];
                
$wm['priv']            = $data['priv'];
                
$wm['avatar']          = $this->Gravatar($data['uid_fk']);
                
$wm['avatar_link']     = smallworld_getAvatarLink($data['uid_fk'], $wm['avatar']);
                
$wm['avatar_size']     = smallworld_getImageSize(80100$wm['avatar_link']);
                
$wm['avatar_highwide'] = smallworld_imageResize($wm['avatar_size'][0], $wm['avatar_size'][1], 50);
                
$wm['vote_up']         = $this->countVotes('msg''up'$data['msg_id']);
                
$wm['vote_down']       = $this->countVotes('msg''down'$data['msg_id']);
                
$wm['sharelinkurl']    = XOOPS_URL '/modules/smallworld/smallworldshare.php?ownerid=' $data['uid_fk'];
                
$wm['sharelinkurl']    .= '&updid=' $data['msg_id'] . '';
                
$wm['usernameTitle']   = $wm['username'] . _SMALLWORLD_UPDATEONSITEMETA $xoopsConfig['sitename'];
                if (
== $USW['posts'] || $profile >= 2) {
                    
$wm['sharelink'] = $this->GetSharing($wm['msg_id'], $wm['priv']);
                } else {
                    
$wm['sharelink'] = $this->GetSharing($wm['msg_id'], 1);
                }

                if (
== $USW['posts'] || $profile >= 2) {
                    
$wm['sharediv'] = $this->GetSharingDiv($wm['msg_id'], $wm['priv'], $wm['sharelinkurl'], $wm['orimessage'], $wm['usernameTitle']);
                } else {
                    
$wm['sharediv'] = $this->GetSharingDiv($wm['msg_id'], 1$wm['sharelinkurl'], $wm['orimessage'], $wm['usernameTitle']);
                }
                
$wm['linkimage']     = XOOPS_URL '/modules/smallworld/assets/images/link.png';
                
$wm['permalink']     = XOOPS_URL '/modules/smallworld/permalink.php?ownerid=' $data['uid_fk'] . '&updid=' $data['msg_id'];
                
$wm['commentsarray'] = $this->Comments($data['msg_id']);

                if (
== $frU[0] || == $USW['posts']) {
                    
$xoopsTpl->append('walldata'$wm);
                }

                if (!empty(
$wm['commentsarray'])) {
                    foreach (
$wm['commentsarray'] as $cdata) {
                        
// Is commentuser a friend ?
                        
$frC $check->friendcheck($id$cdata['uid_fk']);

                        
$USC             = [];
                        
$USC['posts']    = 0;
                        
$USC['comments'] = 0;

                        if (
$xoopsUser) {
                            if (
$xoopsUser->isAdmin($xoopsModule->getVar('mid')) || $cdata['uid_fk'] == $id) {
                                
$USC['posts']    = 1;
                                
$USC['comments'] = 1;
                                
$frC[0]          = 2;
                            } else {
                                
$USC json_decode($dBase->GetSettings($cdata['uid_fk']), true);
                            }
                        }

                        if (!
$xoopsUser) {
                            
$USC json_decode($dBase->GetSettings($cdata['uid_fk']), true);
                        }

                        
$wc['msg_id_fk']       = $cdata['msg_id_fk'];
                        
$wc['com_id']          = $cdata['com_id'];
                        
$wc['comment']         = (== $USC['comments'] || $profile >= 2) ? smallworld_tolink(htmlspecialchars_decode($cdata['comment']), $cdata['uid_fk']) : _SMALLWORLD_MESSAGE_PRIVSETCOMMENTS;
                        
$wc['comment']         = Smallworld_cleanup($wc['comment']);
                        
$wc['time']            = smallworld_time_stamp($cdata['created']);
                        
$wc['username']        = $cdata['username'];
                        
$wc['uid']             = $cdata['uid_fk'];
                        
$wc['myavatar']        = $this->Gravatar($id);
                        
$wc['myavatar_link']   = $myavatarlink;
                        
$wc['avatar_size']     = smallworld_getImageSize(80100$wc['myavatar_link']);
                        
$wc['avatar_highwide'] = smallworld_imageResize($wc['avatar_size'][0], $wc['avatar_size'][1], 35);
                        
$wc['cface']           = $this->Gravatar($cdata['uid_fk']);
                        
$wc['avatar_link']     = smallworld_getAvatarLink($cdata['uid_fk'], $wc['cface']);
                        
$wc['vote_up']         = $this->countVotesCom('com''up'$cdata['msg_id_fk'], $cdata['com_id']);
                        
$wc['vote_down']       = $this->countVotesCom('com''down'$cdata['msg_id_fk'], $cdata['com_id']);

                        if (
== $frC[0] || == $USC['comments']) {
                            
$xoopsTpl->append('comm'$wc);
                        }
                    }
                }
            }
        }
    }
}



En debug, j'ai du rouge de Queries, pas d'erreurs:

0.000306 - ALTER TABLE smallworld_comments CHANGE 'comments' 'comments' TEXT
Error number: 1064
Error message: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''comments' 'comments' TEXT' at line 1



Posté le : 26/03/2020 22:06
Partager Twitter Partagez cette article sur GG+
Re: Smallworld Error : Error: Class 'PublicWallUpdates' not found
Team FrXoops
Inscrit: 14/05/2004 22:32
Messages: 2554
bonjour,
il y a au moins deux anomalies:
dans le fichier smallworld/index ligne 85
il faut ajouter le namespace donc remplacer :
$Wall = ($profile >= 2) ? new smallworldWallUpdates() : new PublicWallUpdates();

par
$Wall = ($profile >= 2) ? new smallworldWallUpdates() : new smallworldPublicWallUpdates();


dans le fichier smallworld/admin/upgrade.php ligne 65, il y a une erreur sql le champ ne s'appelle pas "comments' mais "comment", il faut enlever le "s".
$sql 'ALTER TABLE ' $xoopsDB->prefix('smallworld_comments') . " CHANGE 'comment' 'comment' TEXT;";

Cependant la requête ne fonctionne pas mieux, du coup j'ai changé directement le type du champ via php myadmin et j'ai mis le contenu de la fonction en commentaire
ce qui est bizare c'est juste avant il y a la fonction qui fait la m^me chose pour le champ "message de la table "messages" et la ça fonctionne. Le nom "comment" n'est pas un mot réservé que je sache.

après ça à l'air de fonctionner correctement, mais je n'ai pas poussé mes investigations plus loin.
JJDai


je n'ai pas trouver pour quoi, du coup je l'ai fait manuellement

Posté le : 27/03/2020 00:07

Ne pas perdre patience, même si cela semble impossible, c'est déjà de la patience.
Origami
Conseil des Sages
Sur gitHub
Partager Twitter Partagez cette article sur GG+
Re: Smallworld Error : Error: Class 'PublicWallUpdates' not found
Team FrXoops
Inscrit: 14/05/2004 22:32
Messages: 2554
par contre petite question, je connais pas ce module, qu'est-il censé faire ?
JJDai

Posté le : 27/03/2020 00:10

Ne pas perdre patience, même si cela semble impossible, c'est déjà de la patience.
Origami
Conseil des Sages
Sur gitHub
Partager Twitter Partagez cette article sur GG+
Re: Smallworld Error : Error: Class 'PublicWallUpdates' not found
Admin Frxoops
Inscrit: 04/03/2011 09:10
De Lot
Messages: 2837
je m'en souvient plus, je sais que je l'ai essayé à une époque, car j'ai une copie d'une module dans mes archives.

Posté le : 27/03/2020 22:24
Partager Twitter Partagez cette article sur GG+
Re: Smallworld Error : Error: Class 'PublicWallUpdates' not found
Team FrXoops
Inscrit: 14/05/2004 22:32
Messages: 2554
pas grave quand j'aurais un moment, je l'installerai pour voir.
JJDai

Posté le : 27/03/2020 22:42

Ne pas perdre patience, même si cela semble impossible, c'est déjà de la patience.
Origami
Conseil des Sages
Sur gitHub
Partager Twitter Partagez cette article sur GG+
Re: Smallworld Error : Error: Class 'PublicWallUpdates' not found
Admin Frxoops
Inscrit: 16/03/2009 16:40
De Tende (06)
Messages: 3528
Smallworld est un genre de Facebook sous Xoops.

Posté le : 28/03/2020 06:32

Open in new window

Xoopseuse Mai 2012 | Responsable équipe internationale | Recherche avancée en bas de page !
Partager Twitter Partagez cette article sur GG+
Re: Smallworld Error : Error: Class 'PublicWallUpdates' not found
Régulier
Inscrit: 17/12/2008 10:55
Messages: 203
Bonjour JJDAI et Ceasag (et le reste du forum), et merci de vous interresser à mon problème.

Smallworld est un module permettant d'avoir un mur facon facebook, un fils d'actualités. Développé par Culex.
Vous pouvez le voir en action ici: Culex
(la dernière version est téléchargeable au même endroit).
C'est un vieux module qui ne semble pas avoir été actualisé depuis 2 ans.

Je suis humanitaire, et mon site a pour but de partager mes photos et articles avec mes amis, la famille. Et ce module me permettrait d'avoir des intéractions en direct avec eux, directement sur la page principale du site, d'ou mon interet :)) (Je pars demain à la frontière entre la Guyane et le Brésil en renfort sur les centres de santé)

Culex avait développé Xim en meme temps, une espece d'instant messenger. A l'époque je n'avais pas réussi à le faire fonctionner(Xim) parce qu'il rentrait en conflit avec les modules de Tad que j'utilise beaucoup)

JJDAI, je vais faire les modifications que tu me donne et voir si j'arrive à le faire fonctionner.

Merci à tous en tout cas de vous être penché sur mon problème.
Bonne fin de journée.

Posté le : 28/03/2020 14:00
Partager Twitter Partagez cette article sur GG+

 Haut   Précédent   Suivant
(1) 2 3 »



Vous pouvez voir les sujets.
Vous ne pouvez pas débuter de nouveaux sujets.
Vous ne pouvez pas répondre aux contributions.
Vous ne pouvez pas éditer vos contributions.
Vous ne pouvez pas effacez vos contributions.
Vous ne pouvez pas ajouter de nouveaux sondages.
Vous ne pouvez pas voter en sondage.
Vous ne pouvez pas attacher des fichiers à vos contributions.
Vous ne pouvez pas poster sans approbation.

Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

51 Personne(s) en ligne (26 Personne(s) connectée(s) sur Forum) | Utilisateur(s): 0 | Invité(s): 51 | Plus ...