Get XOOPS XOOPSXOOPS FAQFAQ ForumsForums NewsNews ThemesThemes ModulesModules
New Posts New Topics All Posts All Forums Index General Modules Themes Development International XOOPS.org

Search

Donat-O-Meter

Make donations with PayPal!
Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $65.00
Net Balance: $61.80
Left to go: $38.20

Donations
studioC  ($25)May-17
Anonymous ($15)May-16
Anonymous ($25)May-4

Learn XOOPS Core

Local Support

Advertisement

XOOPS Code hosted on SourceForge

Cumulus Tag Cloud

2 2.5 2.6 3.0 2013 Abuse AntiHarvesting AntiMalUser AntiSpam API Attack Balancing Banning Beats billige black Blocks blue Captcha cell Christmas chronolabs Cloud content Conversion dating demo Dictionary docek download Dresses editor evden eve facebook familia floor forms free Friendica herre Honeypot Human Hymn inStyler Invoice IP IPLog jQuery JSON kantor lamps List Load log logger mobile module modules Monster MyAlbum-p newbb news online Outlet PageRank Permissions pink Plugin portal Prevention profile project Protector publisher Rights rmcommon Room sale security Server site Smarty Spam stem Studio svn tag tags tdmcreate Theme themes Transaction userlog website Whitepaper Wishcraft xoops Xortify ZendFramework

New Users

Registering user

# 136018

markijanper

Welcome to XOOPS!




Bottom   Previous Topic   Next Topic  Register To Post



#1 Posted on: 2008/12/27 9:42 Wfdownloads 3.1 bug with Xoops 2.3.2b
Hello,
I have to update a site based on XOOPS 2.0.18 to the latest version of Xoops: 2.3.2b.

Since this update module wfdownloads 3.1 Final work, there is a problem of display:

Normal (xoops 2.0.18) :

Click to see original Image in a new window

Bug XOOPS 2.3.2b :

Click to see original Image in a new window

Someone knows this bug?

Thank you for your help.

Debug :
Warning: Class 'XoopsTree' is deprecatedcheck 'XoopsObjectTree' in tree.php in file /class/xoopstree.php line 45
Notice
Undefined index0 in file /modules/wfdownloads/class/download.php line 190
Notice
: Function xoops_getLinkedUnameFromId() is deprecated, use XoopsUserUtility::getUnameFromId() instead in file /include/functions.legacy.php line 44


Top

Mox20
Just popping in
Just popping in
Joined:
2008/12/13 10:29
From France
Group:
Registered Users
Posts: 16
(Show More) (Show Less)


#2 Posted on: 2008/12/27 18:11 Re: Wfdownloads 3.1 bug with Xoops 2.3.2b
language files

Top


Never let a man who does not believe something can be done, talk to a man that is doing it.
sailjapan
Moderator
Moderator
Joined:
2005/11/16 5:27
From Osaka
Group:
Registered Users
Posts: 1667
(Show More) (Show Less)


#3 Posted on: 2008/12/27 19:19 Re: Wfdownloads 3.1 bug with Xoops 2.3.2b
I ended up finding a solution to this problem display, you just replace the file:

wfdownloads/class/category.php

By the same file from version 3.2

Top

Mox20
Just popping in
Just popping in
Joined:
2008/12/13 10:29
From France
Group:
Registered Users
Posts: 16
(Show More) (Show Less)


#4 Posted on: 2008/12/27 19:28 Re: Wfdownloads 3.1 bug with Xoops 2.3.2b
You will have to look into class/category.php line 180:

function getNicePath($cid$root_filename "index.php"$item_filename "viewcat.php?op=") {
        include_once 
XOOPS_ROOT_PATH '/class/xoopstree.php';
        
$mytree = new XoopsTree($this->table$this->keyName"pid");
        
$pathstring $mytree->getNicePathFromId($cid$this->identifierName$item_filename);

        
/**
         * Replacing the " with ">" and deleteing the last ">" at the end
         */
        
$pathstring trim($pathstring);
        
$pathstring str_replace(':''>'$pathstring);
        
/*$pathstring = substr($pathstring, 0, strlen($pathstring) - 13);*/

        
return $pathstring;
    }


Try to comment out this line to see what happens.

EDIT: Sorry, did not notice your previous post.

Top


Xoops User Utilities | Xoops Search Engine | vil3/trabisdementia
trabis
Core Developer
Core Developer
Joined:
2006/9/1 13:10
From Portugal
Group:
Registered Users
Webmaster
Posts: 2198
(Show More) (Show Less)


#5 Posted on: 2008/12/27 19:34 Re: Wfdownloads 3.1 bug with Xoops 2.3.2b
Quote:

Mox20 wrote:
I ended up finding a solution to this problem display, you just replace the file:

wfdownloads/class/category.php

By the same file from version 3.2


You mean 3.20_rc1?
I do not see relevant differences in the 2 files, strange.

Top


Xoops User Utilities | Xoops Search Engine | vil3/trabisdementia
trabis
Core Developer
Core Developer
Joined:
2006/9/1 13:10
From Portugal
Group:
Registered Users
Webmaster
Posts: 2198
(Show More) (Show Less)


#6 Posted on: 2008/12/27 19:43 Re: Wfdownloads 3.1 bug with Xoops 2.3.2b
Quote:

trabis wrote:
Quote:

Mox20 wrote:
I ended up finding a solution to this problem display, you just replace the file:

wfdownloads/class/category.php

By the same file from version 3.2


You mean 3.20_rc1?
I do not see relevant differences in the 2 files, strange.



Sorry,I did not clarify. I use the file category.php version of the WF-Downloads 3.2 RC2 in WF-Downloads 3.1 Final

Top

Mox20
Just popping in
Just popping in
Joined:
2008/12/13 10:29
From France
Group:
Registered Users
Posts: 16
(Show More) (Show Less)


#7 Posted on: 2008/12/27 20:00 Re: Wfdownloads 3.1 bug with Xoops 2.3.2b
Ahah, in RC2 it is fixed!
function getNicePath($cid$root_filename "index.php"$item_filename "viewcat.php?op=") {
        include_once 
XOOPS_ROOT_PATH '/class/xoopstree.php';
        
$mytree = new XoopsTree($this->table$this->keyName"pid");
        
$pathstring $mytree->getNicePathFromId(intval($cid), $this->identifierName$item_filename);

        
/**
         * Replacing the " with ">" and deleteing the last ">" at the end
         */
        
$pathstring trim($pathstring);
        
$pathstring str_replace(':''>'$pathstring);
//      $pathstring = substr($pathstring, 0, strlen($pathstring) - 13); // not needed now with fixed icms core! but required for XOOPS

        
return $pathstring;
    }


Notice the comment after the comment, lol


Top


Xoops User Utilities | Xoops Search Engine | vil3/trabisdementia
trabis
Core Developer
Core Developer
Joined:
2006/9/1 13:10
From Portugal
Group:
Registered Users
Webmaster
Posts: 2198
(Show More) (Show Less)


#8 Posted on: 2008/12/27 20:15 Re: Wfdownloads 3.1 bug with Xoops 2.3.2b
you're right for comment

I commented the following line in the file category.php 3.1 and now it works :

function getNicePath($cid$root_filename "index.php"$item_filename "viewcat.php?op=") {
        
//include_once XOOPS_ROOT_PATH . '/class/xoopstree.php';
        
$mytree = new XoopsTree($this->table$this->keyName"pid");
        
$pathstring $mytree->getNicePathFromId($cid$this->identifierName$item_filename);

        
/**
         * Replacing the " with ">" and deleteing the last ">" at the end
         */
        
$pathstring trim($pathstring);
        
$pathstring str_replace(':''>'$pathstring);
        
// -- > $pathstring = substr($pathstring, 0, strlen($pathstring) - 13);

        
return $pathstring;


Top

Mox20
Just popping in
Just popping in
Joined:
2008/12/13 10:29
From France
Group:
Registered Users
Posts: 16
(Show More) (Show Less)







You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.

[Advanced Search]