Fork me on GitHub

Static_Dcos: root catalogue shows same dir for all dirs?  Bottom

  • Hi!

    I have a problem!! I recently installed the Static_docs module successfully, configured it and it worked perfectly.

    Yesterday when I added a couple of pages and directories. All I could see listed in the root catalogue was one directory listed 5 times?!! I have 5 directories in the /static_docs/data/ directory. I removed the directory which name was listed and a new name appeared listed 4 times?

    After doing a couple of tests I realized that the last directory added will be the one listed x number of times. I've also removed and reinstalled the module with no result.

    Maybe my problems has something to do with adding other modules?! I´m not 100% sure which modules can be the cause in that case. But it might be postcalendar, postwrap or bkbcompare?

    Can anyone assist me on this case? Please!

    Regards Mats
  • I had a similar problem. It came about wnen I updated PHP from V5.04 to v5.05. Looked into it abit and ran out of time to figure out what was going on.

    Dropping back to v5.04 cleared up the problem.

    Did you update PHP?

    -TomR-
  • In fact I did update PHP to get Gallery1 to work! I´ll try to downgrade to 5.04 then.

    I´ll post a message when I know the result! Thanks!

    /Mats
  • It worked! But now I got another problem instead. :(

    /Mats
  • If anyone updates their PHP package past 5.04 the above discussed problem will occur. There was
    bugfix put into PHP 5.05 and it is also in 5.1.1. This fix causes functions to return items as values instead
    of references. It is documented in the 5.1.1 UPGRADE document included with the 5.1.1 kit.

    A simple fix is needed in the module pnuserapi.php to fix the problem where the same (actually the last) file
    name is returned for each entry in a directory. To fix this make the following changes:

    In function static_docs_userapi_getall find the following lines

    // if this is an unknown file, use the default file type
    if (is_dir($currentItem['fullpath']))
    $dirItems[] = &$currentItem;
    else
    $Items[] = &$currentItem;

    Just remove the ampersands (in this section in from of $currentItem) and the value instead of the last address will be placed in the array.

    Hope this helps!

    -TomR-

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