1
Mox20
Wfdownloads 3.1 bug with Xoops 2.3.2b
  • 2008/12/27 15:42

  • Mox20

  • Just popping in

  • Posts: 16

  • Since: 2008/12/13


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) :

Resized Image

Bug XOOPS 2.3.2b :

Resized Image

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

2
sailjapan
Re: Wfdownloads 3.1 bug with Xoops 2.3.2b

language files
Never let a man who does not believe something can be done, talk to a man that is doing it.

3
Mox20
Re: Wfdownloads 3.1 bug with Xoops 2.3.2b
  • 2008/12/28 1:19

  • Mox20

  • Just popping in

  • Posts: 16

  • Since: 2008/12/13


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

4
trabis
Re: Wfdownloads 3.1 bug with Xoops 2.3.2b
  • 2008/12/28 1:28

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


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.

5
trabis
Re: Wfdownloads 3.1 bug with Xoops 2.3.2b
  • 2008/12/28 1:34

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


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.

6
Mox20
Re: Wfdownloads 3.1 bug with Xoops 2.3.2b
  • 2008/12/28 1:43

  • Mox20

  • Just popping in

  • Posts: 16

  • Since: 2008/12/13


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

7
trabis
Re: Wfdownloads 3.1 bug with Xoops 2.3.2b
  • 2008/12/28 2:00

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


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

8
Mox20
Re: Wfdownloads 3.1 bug with Xoops 2.3.2b
  • 2008/12/28 2:15

  • Mox20

  • Just popping in

  • Posts: 16

  • Since: 2008/12/13


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;

Login

Who's Online

314 user(s) are online (210 user(s) are browsing Support Forums)


Members: 0


Guests: 314


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits