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
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- internetking created topic »password problem« 10:33 PM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 07:01 AM
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 06:41 AM
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 06:27 AM
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 01:29 AM
- mdee created topic »How to implement returnpage ?« 01:00 AM
- nestormateo responded to »Fillters in Clip« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Static_Dcos: root catalogue shows same dir for all dirs?
-
- Rank: Registered User
- Registered: Dec 31, 1969
- Last visit: Dec 03, 2005
- Posts: 2
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- -
- Rank: Registered User
- Registered: Dec 31, 1969
- Last visit: Dec 03, 2005
- Posts: 2
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-
- Moderated by:
- Support
