Page 1 of 1
Pages not Updating
Posted: Thu Dec 22, 2005 10:48 pm
by patrick95350
After a recent server migration (Unfortunately, I didn't have any control over that), I'm not able to update any pages. Or rather, the updates are saved, but don't show up on the actual site. I'm getting these error codes at the top of all the admin content pages:
Warning: fopen(C:\Web Sites\iaj/tmp/cache/contentcache.php) [function.fopen]: failed to open stream: Permission denied in C:\Web Sites\iaj\lib\classes\class.content.inc.php on line 1784
Warning: fwrite(): supplied argument is not a valid stream resource in C:\Web Sites\iaj\lib\classes\class.content.inc.php on line 1785
Warning: fclose(): supplied argument is not a valid stream resource in C:\Web Sites\iaj\lib\classes\class.content.inc.php on line 1786
I'm totally lost...
Re: Pages not Updating
Posted: Thu Dec 22, 2005 11:13 pm
by fadum
I had that and chmod contentcache.php 777 and it sorted it, i then changed it back to 644 and all was still ok

still dont know what causes it
Re: Pages not Updating
Posted: Fri Dec 23, 2005 1:30 am
by iNSiPiD
Not all servers support fopen file/url by default. Check with your ISP.
Re: Pages not Updating
Posted: Tue Jan 03, 2006 7:14 pm
by patrick95350
According to my host, fopen, &c., is supported. I did notice that the first line of the error message:
Warning: fopen(C:\Web Sites\iaj/tmp/cache/contentcache.php) [function.fopen]: failed to open stream: Permission denied in C:\Web Sites\iaj\lib\classes\class.content.inc.php on line 1784
there is a link: [function.open] is actually link pointing to "
http://iaj.ucdavis.edu/admin/function.fopen", but there is not function.fopen in the admin folder. Is there a settings error that creeped in, either in CMS or in the server's php install?
Re: Pages not Updating
Posted: Wed Jan 04, 2006 11:14 pm
by iNSiPiD
The error is occurring in a temp file. Have you tried clearing the cache?
This appears to be a local site as the root path is from your C drive. Your ISP doesn't come into it.
You'll need to chek your own Apache settings in the httpd.conf file for fopen.
Re: Pages not Updating
Posted: Thu Jan 05, 2006 2:51 am
by patrick95350
I hadn't tried clearing the cache. Feel kinda like an idiot for not trying that first. Unfortunately, all that did was reveal even more error messages!
Warning: unlink(C:\Web Sites\iaj/tmp/cache/contentcache.php) [function.unlink]: Permission denied in C:\Web Sites\iaj\admin\siteprefs.php on line 77
Warning: Cannot modify header information - headers already sent by (output started at C:\Web Sites\iaj\admin\siteprefs.php:77) in C:\Web Sites\iaj\lib\classes\class.admintheme.inc.php on line 161
Warning: Cannot modify header information - headers already sent by (output started at C:\Web Sites\iaj\admin\siteprefs.php:77) in C:\Web Sites\iaj\lib\classes\class.admintheme.inc.php on line 164
Warning: Cannot modify header information - headers already sent by (output started at C:\Web Sites\iaj\admin\siteprefs.php:77) in C:\Web Sites\iaj\lib\classes\class.admintheme.inc.php on line 167
Warning: Cannot modify header information - headers already sent by (output started at C:\Web Sites\iaj\admin\siteprefs.php:77) in C:\Web Sites\iaj\lib\classes\class.admintheme.inc.php on line 168
Warning: Cannot modify header information - headers already sent by (output started at C:\Web Sites\iaj\admin\siteprefs.php:77) in C:\Web Sites\iaj\lib\classes\class.admintheme.inc.php on line 171
Warning: Cannot modify header information - headers already sent by (output started at C:\Web Sites\iaj\admin\siteprefs.php:77) in C:\Web Sites\iaj\lib\classes\class.admintheme.inc.php on line 176
Aack!
Re: Pages not Updating
Posted: Thu Jan 05, 2006 3:50 am
by iNSiPiD
Urghgh...sounds like a permissions problem. Are you on a *nix box? I've got no idea how to set file permissions but make sure you have given read/write permissions to the various files and directories as outlined in the installation instructions.
If that doesn't work I think you'd better try sending wishy a private message about this.
Have you tried this site out on your ISP's server yet to see if you get similar errors?
Re: Pages not Updating
Posted: Thu Jan 05, 2006 10:29 pm
by iNSiPiD
Hi Patricia,
Yah, that's what is weird. The only way the temp directory would be Read Only is if it was copied from removable media or had been set that way in the ZIP archive.
Normally header errors are a result of certain calls being made after the header information is already set. I can't imagine this is a code error. I'd usually just wrap everything in ob_start/ob_end if it was.
patrick95350, get properties on the following directories and make sure they're not Read Only for some odd reason.
- tmp/templates_c
- tmp/cache
- uploads
- uploads/images
This should do the job.