These warning messages have just appeared on both the 'pages' section of admin and also on the top of the website in the browser:
Warning: fopen(/home/llan5242/public_html/tmp/cache/contentcache.php) [function.fopen]: failed to open stream: Permission denied in /home/llan5242/public_html/lib/classes/class.contentoperations.inc.php on line 549
Warning: fwrite(): supplied argument is not a valid stream resource in /home/llan5242/public_html/lib/classes/class.contentoperations.inc.php on line 550
Warning: fclose(): supplied argument is not a valid stream resource in /home/llan5242/public_html/lib/classes/class.contentoperations.inc.php on line 551
Can anyone help please? It has been working fine for a couple of years.
This site is using CMS Made Simple 1.2.3 "Black Rock".
Thanks
Martin
Sudden warning messages on-site
-
- Power Poster
- Posts: 444
- Joined: Wed Dec 27, 2006 5:15 pm
Re: Sudden warning messages on-site
Ojj, you really need to upgrade this site...burlington wrote: This site is using CMS Made Simple 1.2.3 "Black Rock".

I think your host has changed the php version or did change some other serversettings.
Check these serversettings. phpinfo();
Reg. Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
-
- Power Poster
- Posts: 444
- Joined: Wed Dec 27, 2006 5:15 pm
Re: Sudden warning messages on-site
Thank you.
Yes, I realise that this version of CMSMS needs upgrading!
Rolf
You are right. The following is part of a message from the website host:
'The new server runs SuPHP and php 5'. In fact the PHP version is 5.2.9.
I am not sure where I go from here and what permissions I should change.
Can you help please?
Thanks
Martin
Yes, I realise that this version of CMSMS needs upgrading!
Rolf
You are right. The following is part of a message from the website host:
'The new server runs SuPHP and php 5'. In fact the PHP version is 5.2.9.
I am not sure where I go from here and what permissions I should change.
Can you help please?
Thanks
Martin
-
- Power Poster
- Posts: 444
- Joined: Wed Dec 27, 2006 5:15 pm
Re: Sudden warning messages on-site
These are the 3 lines in question:
$handle = fopen($cachefilename, "w");
fwrite($handle, ''.serialize($tree));
fclose($handle);
Where do I go from here please?
$handle = fopen($cachefilename, "w");
fwrite($handle, ''.serialize($tree));
fclose($handle);
Where do I go from here please?
Re: Sudden warning messages on-site
It's not that simple. I think your version of CMSMS is not compatible with PHP5, so you actually need to upgrade the site. It's pain now, but it will be worth it. As it is, your site is unsupportable and at risk for attacks. There have been many feature, stability, and security updates since 1.2.*burlington wrote: These are the 3 lines in question:
$handle = fopen($cachefilename, "w");
fwrite($handle, ''.serialize($tree));
fclose($handle);
Where do I go from here please?
Re: Sudden warning messages on-site
Your answer lies with your host here..not that code. Your on shared hosting so ask your host to modify your php.ini session_save_path to a directory that is writable and then get your install updated to 1.6.8 or 1.8.2!burlington wrote: These are the 3 lines in question:
$handle = fopen($cachefilename, "w");
fwrite($handle, ''.serialize($tree));
fclose($handle);
Where do I go from here please?
-
- Power Poster
- Posts: 444
- Joined: Wed Dec 27, 2006 5:15 pm
Re: Sudden warning messages on-site
Thanks folks for your sound advice.
I will get it sorted tomorrow, hopefully.
Martin
I will get it sorted tomorrow, hopefully.
Martin