Loading...
 
Features / Usability

Features / Usability


the old story - error messages - caching / directory setup

posts: 112 Austria

Since I installed a 1.8 (local, windows xp) I got following messages after the normal output:

Warning: fopen(/tmp/tikidebug): failed to open stream: No such file or directory in d:\wwwportal\tikiwiki\lib\search\refresh.php on line 44

Warning: fwrite(): supplied argument is not a valid stream resource in d:\wwwportal\tikiwiki\lib\search\refresh.php on line 44

Warning: fclose(): supplied argument is not a valid stream resource in d:\wwwportal\tikiwiki\lib\search\refresh.php on line 44

OK. the devs know this.

But whatever directory I setup in admin general as temp (/temp, /temp/, \\temp\\,...) it doesn't work.

It seems that the directory is hardcoded because if i opened the lib/search/refresh.php and I saw following line (44):
$fpd=fopen("/tmp/tikidebug",'a');fwrite($fpd,"f_gal on\n");fclose($fpd);

whatever temp dir i choose, the path was always /tmp/.

paulap

posts: 112 Austria

I replaced "/tmp/tikidebug" with "/temp/tikidebug" (in refresh.php)

and now it works.

Devs: Please check if you should do this in the CVS branch.

paulap

posts: 2881 United Kingdom

> paulap01:
> I replaced "/tmp/tikidebug" with "/temp/tikidebug" (in refresh.php)
>
> and now it works.
>
> Devs: Please check if you should do this in the CVS branch.
>
> paulap

Hiya, Its not the correct way. No temp directories should be hardcoded.

The correct way would be to replace with the tikilib:tempdir() function to return the value of the Admin->General.

Or create a /tmp on your c: root wink

Damian

posts: 10


''> Hiya, Its not the correct way. No temp directories should be hardcoded.
>
> The correct way would be to replace with the tikilib:tempdir() function to return the value of the Admin->General.
>"

I am under Linux and have the same problem with refresh.php
How should I tweak this file to remove warnings?
I tried to write there hardcoded dir like
`/home/virtual/XXX/html/tmp/tikidebug `
but still get warnings

Warning: fopen(/home/virtual/XXX/www/html/tmp/tikidebug): failed to open stream: Is a directory in /home/virtual/XXX/html/tikiwiki/lib/search/refresh.php on line 48
Warning: fwrite(): supplied argument is not a valid stream resource in /home/virtual/XXX/html/tikiwiki/lib/search/refresh.php on line 48
Warning: fclose(): supplied argument is not a valid stream resource in /home/virtual/XXX/html/tikiwiki/lib/search/refresh.php on line 48

I have in Admin/General value `tmp`

Please help!


posts: 2881 United Kingdom

> paulap01:
> I replaced "/tmp/tikidebug" with "/temp/tikidebug" (in refresh.php)
>
> and now it works.
>
> Devs: Please check if you should do this in the CVS branch.
>
> paulap

Hiya, Its not the correct way. No temp directories should be hardcoded.

The correct way would be to replace with the tikilib:tempdir() function to return the value of the Admin->General.

Or create a /tmp on your c: root wink

Damian

posts: 10


''> Hiya, Its not the correct way. No temp directories should be hardcoded.
>
> The correct way would be to replace with the tikilib:tempdir() function to return the value of the Admin->General.
>"

I am under Linux and have the same problem with refresh.php
How should I tweak this file to remove warnings?
I tried to write there hardcoded dir like
`/home/virtual/XXX/html/tmp/tikidebug `
but still get warnings

Warning: fopen(/home/virtual/XXX/www/html/tmp/tikidebug): failed to open stream: Is a directory in /home/virtual/XXX/html/tikiwiki/lib/search/refresh.php on line 48
Warning: fwrite(): supplied argument is not a valid stream resource in /home/virtual/XXX/html/tikiwiki/lib/search/refresh.php on line 48
Warning: fclose(): supplied argument is not a valid stream resource in /home/virtual/XXX/html/tikiwiki/lib/search/refresh.php on line 48

I have in Admin/General value `tmp`

Please help!




Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting