Marcel Müller - 2004-08-06

Hi

For my final goal to get TexToPng up and running I tried to use the CacheTest plugin. However, it does neither display an image nor an error message.

Directly calling the URL that gets generated inside the Wiki page (http://myhost/phpwiki/getimg.php?id=c8083ff ...) leads to the error

Fatal error: Cannot redeclare check_php_version() (previously declared in c:\apache\htdocs\phpwiki\lib\config.php:13) in c:\apache\htdocs\phpwiki\lib\config.php on line 13

This message goes away when I change the line:
include "lib/config.php";

in lib/imagecache.php to:
include_once "lib/config.php";

but this only gives me a further error message

c:\apache\htdocs\phpwiki\lib\Request.php:446: Warning[2]: open(/tmp\sess_98219b17b17ae844894bce5babc2ee8e, O_RDWR) failed: No such file or directory (2)

c:\apache\htdocs\phpwiki\lib\WikiPluginCached.php:748: Warning[512]: There is no image creation data available to id ''. Please reload referring page.

Unknown:0: Warning[2]: open(/tmp\sess_98219b17b17ae844894bce5babc2ee8e, O_RDWR) failed: No such file or directory (2)

Unknown:0: Warning[2]: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp)

This problem is quite surprising as in my installation the session state is stored in the db and not in a file. I can circumvent this as well by setting a reasonable value for SESSION_SAVE_PATH in my config gui, but this leads just to the next problem... (maybe this problem is just caused because I changed the include statement of config.php?)

Can anyone help? I spent several hours tracking down this problem but I am quite lost. Does anyone have a running 1.3.10 installation with this plugin (or any other plugin based on WikiPluginCached)? Are these plugins not yet ready to be used? Is there a better way to debug such problems?

My installation: Windows 2000, php 4.20, mysql db. plugincache-config.php is configured but I never saw a generated picture in the cache folder.

Thanks,
Marcel