Fork me on GitHub

UpDownload module stop working after an update to RC2  Bottom

  • I have a problem with updownload module after an update to postnuke 750 RC2, the problem: if you try to download a file from category/subcategory, the download fail reporting an error in dl-util.php if i remember well. UpDownload module uses another tables in database but very similar to the original for download module. Since the tables are still the same and a downgrade to 72x postnuke version make updownload module work again without troubles, this error can point to en error in postnuke core althougth a major change have been done.
    Other modules who not work with RC2 for instance: Subjects 1.5
  • guess it's about a missing DB-connection in the dl-util.php.
    IIRC i posted the solution to this at the german postnuke support site at http://www.post-nuke.net some time ago.
    will check this...

    *EDIT / found the snippet*
    in /modules/UpDownload/dl-util.php / around line #100 instead of

    Code

    global $pntable, $dbconn, $ModName;

    simply use

    Code

    global $ModName;
        list($dbconn) = pnDBGetConn();
        $pntable = pnDBGetTables();


    --
    regards from germany
    ..::[Zikula Application Framework]::.. ..::[SEO-Blog]::.. ..::[CMS Sicherheit]::..
  • Is it not better to make a different call so it works on both 0.726 and 0.750? I mean there must be a way to learn the version of the CMS?

    if (version is 726) { do this} <-old call
    else do this {}
  • 0 users

This list is based on users active over the last 60 minutes.