Page 1 of 1

Sudden warning messages on-site

Posted: Thu Sep 23, 2010 6:56 am
by burlington
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

Re: Sudden warning messages on-site

Posted: Thu Sep 23, 2010 7:03 am
by Rolf
burlington wrote: This site is using CMS Made Simple 1.2.3 "Black Rock".
Ojj, you really need to upgrade this site...  :-\

I think your host has changed the php version or did change some other serversettings.
Check these serversettings. phpinfo();

Reg. Rolf

Re: Sudden warning messages on-site

Posted: Thu Sep 23, 2010 8:09 am
by burlington
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

Re: Sudden warning messages on-site

Posted: Thu Sep 23, 2010 3:12 pm
by burlington
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

Posted: Thu Sep 23, 2010 4:46 pm
by jmcgin51
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?
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.*

Re: Sudden warning messages on-site

Posted: Thu Sep 23, 2010 4:51 pm
by milehigh
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?
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!

Re: Sudden warning messages on-site

Posted: Thu Sep 23, 2010 4:53 pm
by burlington
Thanks folks for your sound advice.

I will get it sorted tomorrow, hopefully.

Martin