Loading...
 
Skip to main content

Architecture / Installation


fopen, fwrite, fclose errors

posts: 1

This is what I get. I had various errors before this, but they said I needed to change the CHMOD to 777, which I found out how to do. I have no idea what to do about this stuff though:

Warning: fopen(modules/cache///mod-assistant.tpl.en.cache): failed to open stream: Permission denied in /home/jasontsh/public_html/zine/tiki-modules.php on line 134

Warning: fwrite(): supplied argument is not a valid stream resource in /home/jasontsh/public_html/zine/tiki-modules.php on line 135

Warning: fclose(): supplied argument is not a valid stream resource in /home/jasontsh/public_html/zine/tiki-modules.php on line 136

Warning: Cannot modify header information - headers already sent by (output started at /home/jasontsh/public_html/zine/tiki-modules.php:134) in /home/jasontsh/public_html/zine/tiki-login.php on line 168

posts: 1

Just had the exactly same problem, and solved it - after looking around a while 😧 - with changing the /lib/smarty/Smarty.class.php file.

Change the line var $use_sub_dirs = true; to = false; and it should work (it did at my place).

Hope this helps.
Denny


posts: 1001 Canada
BTW are some of you affected by safemode?

posts: 2881 United Kingdom

Hi jasontsh

the files within modules/cache again must be 777'd

I think once you chmod the modules/cache directory, you'll be up and running again .


Damian


posts: 2

Gettin same problem.

My modules/cache is 777 and I looked at the Smarty.class.php file and it is set to false already. Any ideas?

Warning: fopen(temp/cache/606ad46e6e99b5c01fcc0e30c9988f4c): failed to open stream: Permission denied in /home2/ejswanny/public_html/test/lib/cache/cachelib.php on line 23

Warning: fwrite(): supplied argument is not a valid stream resource in /home2/ejswanny/public_html/test/lib/cache/cachelib.php on line 24

Warning: fclose(): supplied argument is not a valid stream resource in /home2/ejswanny/public_html/test/lib/cache/cachelib.php on line 25

Warning: fopen(modules/cache///mod-assistant.tpl.en.cache): failed to open stream: Permission denied in /home2/ejswanny/public_html/test/tiki-modules.php on line 134

Warning: fwrite(): supplied argument is not a valid stream resource in /home2/ejswanny/public_html/test/tiki-modules.php on line 135

Warning: fclose(): supplied argument is not a valid stream resource in /home2/ejswanny/public_html/test/tiki-modules.php on line 136

posts: 2881 United Kingdom

> ejswanny:
> Gettin same problem.
>
> My modules/cache is 777 and I looked at the Smarty.class.php file and it is set to false already. Any ideas?
>
> Warning: fopen(temp/cache/606ad46e6e99b5c01fcc0e30c9988f4c): failed to open stream: Permission denied in /home2/ejswanny/public_html/test/lib/cache/cachelib.php on line 23
>
> Warning: fwrite(): supplied argument is not a valid stream resource in /home2/ejswanny/public_html/test/lib/cache/cachelib.php on line 24
>
> Warning: fclose(): supplied argument is not a valid stream resource in /home2/ejswanny/public_html/test/lib/cache/cachelib.php on line 25
>
> Warning: fopen(modules/cache///mod-assistant.tpl.en.cache): failed to open stream: Permission denied in /home2/ejswanny/public_html/test/tiki-modules.php on line 134
>
> Warning: fwrite(): supplied argument is not a valid stream resource in /home2/ejswanny/public_html/test/tiki-modules.php on line 135
>
> Warning: fclose(): supplied argument is not a valid stream resource in /home2/ejswanny/public_html/test/tiki-modules.php on line 136
>

Give apache permission to write to the files within the folder as well as the folder itself.

That should fix it.

Damian


posts: 2881 United Kingdom

> ejswanny:
> Gettin same problem.
>
> My modules/cache is 777 and I looked at the Smarty.class.php file and it is set to false already. Any ideas?
>
> Warning: fopen(temp/cache/606ad46e6e99b5c01fcc0e30c9988f4c): failed to open stream: Permission denied in /home2/ejswanny/public_html/test/lib/cache/cachelib.php on line 23
>
> Warning: fwrite(): supplied argument is not a valid stream resource in /home2/ejswanny/public_html/test/lib/cache/cachelib.php on line 24
>
> Warning: fclose(): supplied argument is not a valid stream resource in /home2/ejswanny/public_html/test/lib/cache/cachelib.php on line 25
>
> Warning: fopen(modules/cache///mod-assistant.tpl.en.cache): failed to open stream: Permission denied in /home2/ejswanny/public_html/test/tiki-modules.php on line 134
>
> Warning: fwrite(): supplied argument is not a valid stream resource in /home2/ejswanny/public_html/test/tiki-modules.php on line 135
>
> Warning: fclose(): supplied argument is not a valid stream resource in /home2/ejswanny/public_html/test/tiki-modules.php on line 136
>

Give apache permission to write to the files within the folder as well as the folder itself.

That should fix it.

Damian


posts: 2
Thanks Daman!