Sudden warning messages on-site

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
burlington
Power Poster
Power Poster
Posts: 444
Joined: Wed Dec 27, 2006 5:15 pm

Sudden warning messages on-site

Post 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
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Sudden warning messages on-site

Post 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
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
burlington
Power Poster
Power Poster
Posts: 444
Joined: Wed Dec 27, 2006 5:15 pm

Re: Sudden warning messages on-site

Post 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
burlington
Power Poster
Power Poster
Posts: 444
Joined: Wed Dec 27, 2006 5:15 pm

Re: Sudden warning messages on-site

Post 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?
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Sudden warning messages on-site

Post 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.*
milehigh

Re: Sudden warning messages on-site

Post 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!
burlington
Power Poster
Power Poster
Posts: 444
Joined: Wed Dec 27, 2006 5:15 pm

Re: Sudden warning messages on-site

Post by burlington »

Thanks folks for your sound advice.

I will get it sorted tomorrow, hopefully.

Martin
Post Reply

Return to “CMSMS Core”