CSS / Blank Page Fix
Posted: Mon Dec 11, 2006 2:32 am
Hi, I just downloaded CMSMS and loved the simple install. I had an issue with the CSS not being shown and I fixed it by editing the stylesheets.php file this way.
Went to http://www.yoursite.com/stylesheet.php?templateid=20
found the following error: Wrong parameter count for mysql_escape_string() on line 65
For some reason mysql wasn't up to par in my universities servers. Since I don't have access to php.ini, or install of mysql, I changed the two instances of this function from:
"mysql_real_escape_string"
to
"mysql_escape_string"
but still had an error...then googling I found out that this only takes one var as input, so I deleted the $db var from inside the parenthesis leaving only mysql_escape_string($name) in the first instance and mysql_escape_string($mediatype) in the second.
this may not help everyone here with this issue, but if you can only see text and checked you permissions already to no avail, go to the ./stylesheet.php?templateid=20 page, see if you have an error. As always, backup the original file before modifying... hope it helps someone out.
FF.
Went to http://www.yoursite.com/stylesheet.php?templateid=20
found the following error: Wrong parameter count for mysql_escape_string() on line 65
For some reason mysql wasn't up to par in my universities servers. Since I don't have access to php.ini, or install of mysql, I changed the two instances of this function from:
"mysql_real_escape_string"
to
"mysql_escape_string"
but still had an error...then googling I found out that this only takes one var as input, so I deleted the $db var from inside the parenthesis leaving only mysql_escape_string($name) in the first instance and mysql_escape_string($mediatype) in the second.
this may not help everyone here with this issue, but if you can only see text and checked you permissions already to no avail, go to the ./stylesheet.php?templateid=20 page, see if you have an error. As always, backup the original file before modifying... hope it helps someone out.
FF.