1
pablo103
blank page wfdownloads/newlist.php
  • 2009/6/6 21:03

  • pablo103

  • Not too shy to talk

  • Posts: 181

  • Since: 2008/2/3 1


I can t display a wfdownloads/newlist.php site on XOOPS 2.3.3
I have updated XOOPS and this listing doesn t work, anyone has noticed this problem? is the 3.20 RC the newest version of WF Downloads.

How to integrate this module with XOOPS tag module?
thanks in advance!

2
pablo103
Re: blank page wfdownloads/newlist.php
  • 2009/6/6 22:38

  • pablo103

  • Not too shy to talk

  • Posts: 181

  • Since: 2008/2/3 1


I have deleted a part of code and now i can display at least newslist.php file but without any content. This is the part which cause the blank screen. Please Help.
//Get number of downloads the last week
$one_week_ago time() - 3600*24*7//@TODO: Change to strtotime (TODAY-1week);
$download_handler xoops_getmodulehandler('download');
$allowed_cats $gperm_handler->getItemIds("WFDownCatPerm"$groups$module_id);
$criteria = new Criteria("published"$one_week_ago">=");
$allweekdownloads $download_handler->getActiveCount($criteria);

//Get number of downloads the last month
$one_month_ago time() - 3600*24*7//@TODO: Change to strtotime (TODAY-1month);
$criteria = new Criteria("published"$one_month_ago">=");
$allmonthdownloads $download_handler->getActiveCount($criteria);

$xoopsTpl->assign('allweekdownloads'$allweekdownloads);
$xoopsTpl->assign('allmonthdownloads'$allmonthdownloads);

//Get latest downloads
$criteria = new CriteriaCompo(new Criteria("offline"0));
if(isset(
$_GET['newdownloadshowdays'])) {
    
$days intval($_GET['newdownloadshowdays']);
    
$days_limit = array(71430);
    if(
in_array($days$days_limit)) {
        
$downloadshowdays time() - (3600 24 $days);
        
$criteria->add(new Criteria("published",$downloadshowdays'>='), 'AND');
    }
}
$criteria->setSort("published");
$criteria->setOrder("DESC");
$criteria->setLimit($xoopsModuleConfig['perpage']);
$criteria->setStart(0);
$downloads $download_handler->getActiveDownloads($criteria);
foreach (
array_keys($downloads) as $i)
{
    
$down $downloads[$i]->getDownloadInfo();
    
$xoopsTpl->assign('lang_dltimes'sprintf(_MD_WFD_DLTIMES$down['hits']));
    
$xoopsTpl->assign('lang_subdate' $down['is_updated']);
    
$xoopsTpl->append('file'$down);
}

3
ghia
Re: blank page wfdownloads/newlist.php
  • 2009/6/7 8:14

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Was the module also updated?
Did you run the filecheck for your XOOPS update (see release notes)?

Try to continue by enabling line by line again from the excluded cod block (observe if ( ){ } and foreach { } blocks) and see where it starts failing.

4
pablo103
Re: blank page wfdownloads/newlist.php
  • 2009/6/7 14:53

  • pablo103

  • Not too shy to talk

  • Posts: 181

  • Since: 2008/2/3 1


Thanks for your support.I have done my homework, the files are OK. The problematic line is the following:
$down $downloads[$i]->getDownloadInfo();


Without this line I can display a page at least.

Additionaly I have found an errors
Warning: Class 'XoopsTree' is deprecatedcheck 'XoopsObjectTree' in tree.php in file /class/xoopstree.php line 45
Warning
: Class 'XoopsTree' is deprecatedcheck 'XoopsObjectTree' in tree.php in file /class/xoopstree.php line 45
Notice
: Function xoops_getLinkedUnameFromId() is deprecated, use XoopsUserUtility::getUnameFromId() instead in file /include/functions.legacy.php line 44
Warning
sprintf() [function.sprintf]: Too few arguments in file /modules/wfdownloads/viewcat.php line 259

at the admin site of module.

Yes, the XOOPS is updated to 2.3.3 and wf downloads 3.20RC

5
ghia
Re: blank page wfdownloads/newlist.php
  • 2009/6/7 18:48

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Do you have the same problems with 3.10Final?
Did you observe all points from the installation and important notes files?
The deprecated messages may be ignored. The too few arguments is more serious.

Edit: Grandoc of XOOPS France has just made some adaptations and corrections. (Follow the link in this post to download)

Login

Who's Online

318 user(s) are online (250 user(s) are browsing Support Forums)


Members: 0


Guests: 318


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