[solved] CSS doesn't work after upgrade from 1.3.1 to 1.4

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
Jude
Forum Members
Forum Members
Posts: 31
Joined: Fri Aug 08, 2008 2:01 pm

[solved] CSS doesn't work after upgrade from 1.3.1 to 1.4

Post by Jude »

I just upgrated the site I'm running and otherwise it went well, but my CSS files doesn't work. I just get an announcement of an error  that says: CSS-file is not loaded because it's MIME-type is "text/html" not "text/css".

Any idea how to solve this problem? My site looks quite dull right now.

http://www.tanssiklubistar.fi
Last edited by Jude on Fri Aug 08, 2008 9:25 pm, edited 1 time in total.
viebig

Re: CSS doesn't work after upgrade from 1.3.1 to 1.4

Post by viebig »

the output of the stylesheet is

Code: Select all

Fatal error: Call to undefined function csscache_csvfile_to_hash() in /data/home/tanssiklubif/public_html/stylesheet.php on line 44
just to help supporters troubleshooting

I hope someone can manage to solve your problem
Jude
Forum Members
Forum Members
Posts: 31
Joined: Fri Aug 08, 2008 2:01 pm

Re: CSS doesn't work after upgrade from 1.3.1 to 1.4 – atleast it works now

Post by Jude »

This isn't beautiful way to do it, but atleast my CSS files do work now. All I did was commenting following lines

43-44
//$hashmtime = @filemtime($hashfile);
//$hash = csscache_csvfile_to_hash($hashfile);

and

106-107
//$hash[$cssid] = $etag;
//csscache_hash_to_csvfile($hashfile,$hash);

I don't see that the problem is solved, but this was a working way out.
alby

Re: CSS doesn't work after upgrade from 1.3.1 to 1.4 – atleast it works now

Post by alby »

Jude wrote: This isn't beautiful way to do it, but atleast my CSS files do work now. All I did was commenting following lines

43-44
//$hashmtime = @filemtime($hashfile);
//$hash = csscache_csvfile_to_hash($hashfile);

and

106-107
//$hash[$cssid] = $etag;
//csscache_hash_to_csvfile($hashfile,$hash);

I don't see that the problem is solved, but this was a working way out.
Try to reupload lib/misc.functions.php (check date/size)

Alby
Jude
Forum Members
Forum Members
Posts: 31
Joined: Fri Aug 08, 2008 2:01 pm

Re: CSS doesn't work after upgrade from 1.3.1 to 1.4 – atleast it works now

Post by Jude »

alby wrote:
Try to reupload lib/misc.functions.php (check date/size)

Alby
That was it – problem solved. The one I had in my server was uploaded after the file in upgrade was created, so it wasn't replased. Thanks.
Locked

Return to “[locked] Installation, Setup and Upgrade”