#394 Pear "Cache" module not found

Linking
closed
nobody
5
2012-10-11
2004-10-21
Hendrik Scheider
No

I used <?plugin PluginManager ?> on a Wiki page and
received the following error:

"
d:\apache\htdocs\phpwiki_neu\lib\WikiPluginCached.php
(In template 'browse') (In template 'body') (In template
'html'):35: Warning[2]: main(Cache.php): failed to open
stream: No such file or directory

Fatal error: main(): Failed opening required 'Cache.php'
(include_path='.;c:\programme\php-4.3.9\includes;C:
\Programme\php-4.3.9\PEAR') in d:
\apache\htdocs\phpwiki_neu\lib\WikiPluginCached.php on
line 35
"

It occured upon instantiation of plugIn "CacheTest.php"
(tried by outputting the current plugIn filename in method
_generateTableBody of PluginManager.php)

Copying of Cache.php and directory Cache from pear
subdirectory to lib directory worked around.

Software Setup:
I'm using phpWiki 1.3.10 on Win2000 running Apache 1.3.
31 (Apache2 crashes on phpWiki 1.3.x), with php 4.3.9
and the included pear libs installed. (obviously "Cache" is
not part of that distri)

Discussion

  • Reini Urban
    Reini Urban
    2004-10-22

    Logged In: YES
    user_id=13755

    Indeed, Cache is not in the distro,
    But fixing your include_path to PEAR should be enough.
    don't copy it to lib.

     
  • Logged In: YES
    user_id=925869

    Thanks for clarifying. I had thought, the pear components
    delivered with the wiki package should correctly link without
    additional config. :o)