Fork me on GitHub

.761 RSS Module Problem  Bottom

  • I recently upgraded from .760 to .761 and am having problems with the RSS module from http://www.mtrad.com. I now get the following error displayed where my block should be:

    Quote

    Unknown blocktype: rssblock! This block doesn't seem to exist. Please check corresponding blocks directory.


    I've tracked the problem down to the file \includes\pnBlocks.php, but am unable to modify the file, due to lack of PHP knowledge, to allow RSS to function properly.

    Has anyone here upgraded to .761 and been able to successfully use this third-party RSS module? Or does anyone know how to modify pnBlocks.php to accomodate this module? It used to work perfectly with .760 and prior versions.

    Thanks for your help.
  • Anybody have any thoughts on this? Despite the upgrades to .760, the RSS still isn't up to speed. So I know other people out there are using this mtrad module and must have encountered this same problem.

    Speak up, people, so we can get someone with PHP to take a look at the pnBlocks.php file and how the alteration has rendered the third-party block useless.
  • Bump. Something tells me I'm going to be annoying until we get an answer for this.
  • As near as I can tell there are only three lines difference between the old pnblocks.php file in .760 and the new one in .761.

    Line 37, 38, & 251

    They read as follows:

    Old 137-138:

    if (isset($blocks_modules[$block]['func_display'])) {
    return $blocks_modules[$block]['func_display']($blockinfo);

    New 137-138:

    if (isset($blocks_modules[0][$block]['func_display'])) {
    return $blocks_modules[0][$block]['func_display']($blockinfo);

    Old 251:

    $GLOBALS['blocks_modules'][$block] = $blocks_modules[$block];

    New 251:

    $GLOBALS['blocks_modules'][$blocks_modules[$block]['mid']][$block] = $blocks_modules[$block];


    Now, can someone who knows PHP well or the authors of this file please tell me the nature of these changes and why they render the mtrad module inoperable? Are these updated lines absolutely necessary, or can I just not upgrade this file?
  • halfachicken

    Bump. Something tells me I'm going to be annoying until we get an answer for this.


    Do not underestimate the power of the forum search.... I put in '.761 blocks' and within a few threads had found this one. CVS has been restructured a little then so you'll need the file from this link instead of one referenced in this thread.

    -Mark

    --
    Visit My homepage and Zikula themes.
  • Well, I did search, but apparently not with the right parameters. Okay, I've looked at the two links you've provided, but am not sure what to do to solve this problem. Should I just paste the contents of the top entry at this link into a file, name it pnblocks.php, and overwrite the one that comes with .761?

    Thanks for your response.
  • Download the file (via the download link) and replace the one on your site.

    -Mark

    --
    Visit My homepage and Zikula themes.
  • markwest

    Download the file (via the download link) and replace the one on your site.

    -Mark


    Weird. My IE was blocking the download, so I was getting a Blank Page, but when I switched to Firefox, it just gave me a window full of code--hence my comment about copying and pasting it into a new file. Oh well, problem solved. Thanks for your help.
  • Best way is right click -> save as.

    -Mark

    --
    Visit My homepage and Zikula themes.

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