PDA

View Full Version : functions.php problem?


FirstGateDreamer
09-23-2006, 08:17 PM
I didn't modify this my functions.php page but now my site isn't working. I get the following error on my admin page.

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /home/web100/dreamer/firstgatedreamer.com/includes/functions.php on line 228


Is this a problem with my host? or is there something I've done horribly wrong?

I've been working on a new template design and duplicated the index.php page as index2.php which refers to a different stylesheet and template doc for development and testing purposes. This was working but I'm hoping this didn't fudge anything else up.

any help or direction is greatly appreciated.
site: http://www.firstgatedreamer.com

Connie
09-23-2006, 10:50 PM
that is no good idea at all, to use a duplicated index

you should install a second version in a different directory and use a different table_prefix

I do not know what went wrong because I never got such an idea ;=)

FirstGateDreamer
09-23-2006, 11:23 PM
Worry not. The problem was with my host. Their MySql ran out of memory :shock:

I realize it might have been risky to use the index2.php but it seems to work fine ... besides the glitches I'm trying to fix in my template. I will start a new thread regarding the template for a max/min-width hack.

Thanks.

Connie
09-24-2006, 06:36 AM
we always suggest to do 2 different installations and it is not a good idea with 2 indexes, because the images, texts everything will be the same

so if you do some exercises, changes etc. it will affect the #1 as well

and nobody will give you any support maybe if you run into troubles and damage your main installation ;=(