Форумы / Cotonti / Support / index.php error

idex.php error msg.

barkerb23
#1 16.01.2011 06:05
hello. i am trying to install cotonti on my website.. but when i put all the files in the server, i get an error message that says..
Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home/a3604698/public_html/system/database.mysql.php on line 96
and on line 96 it has:
return is_null($conn) ? mysql_error($sed_dbc) : mysql_error($conn);
and i put all the correct info in the config.php and it says:
2011-01-15 22:03
Fatal error : Could not connect to database !
Please check your settings in the file datas/config.php
MySQL error :

view it HERE
all help is appreciated as well as comments :)
esclkm
#2 16.01.2011 06:07
Do you install sql file&?
littledev.ru - мой маленький зарождающийся блог о котонти.
снижение стоимости программирования и снижение стоимости производства разные вещи. Первое можно скорее сравнить с раздачей работникам дешевых инструментов, чем со снижением зарплаты
barkerb23
#3 16.01.2011 06:10
INSTALL sql file? u mean make a database? idk what u mean. what sql file?

Added 3 minutes later:

look here

www.pspcextreme.hostzi.com
esclkm
#4 16.01.2011 06:17
littledev.ru - мой маленький зарождающийся блог о котонти.
снижение стоимости программирования и снижение стоимости производства разные вещи. Первое можно скорее сравнить с раздачей работникам дешевых инструментов, чем со снижением зарплаты
barkerb23
#5 16.01.2011 07:56
okay. i found out what i did wrong :) but.. now i get
Fatal error: Uncaught exception 'Exception' with message 'Your "./datas/cache/templates/" is not writable' in /home/a3604698/public_html/system/xtemplate.php:184 Stack trace: #0 /home/a3604698/public_html/system/xtemplate.php(39): XTemplate->restart('skins/sed-light...') #1 /home/a3604698/public_html/system/header.php(92): XTemplate->__construct('skins/sed-light...') #2 /home/a3604698/public_html/system/core/index/index.inc.php(34): require_once('/home/a3604698/...') #3 /home/a3604698/public_html/index.php(20): require_once('/home/a3604698/...') #4 {main} thrown in /home/a3604698/public_html/system/xtemplate.php on line 184

and other people said they got this error also here

http://www.cotonti.com/docs/en/admin/install_guide?highlight=error

HELP!!!!!!

Added 36 minutes later:

SOLVED SOLVED SOLVED SOLVED SOLVED!!!!!
Отредактировано: barkerb23 (16.01.2011 08:32, 13 лет назад)
gari46
#6 19.08.2011 21:12
datas/config.php

$cfg['xtpl_cache'] = TRUE;

replaced by 

$cfg['xtpl_cache'] = FALSE;

Xerora
#7 19.08.2011 23:46

You can do either what gari46 said or create the folder path datas/cache/templates and chmod it to 755. This error is because the folder ./datas/cache/templates is missing. I'm assuming this is because these downloads are packaged directly from git and .gitignore is excluding it.

GHengeveld
#8 20.08.2011 16:42

The folder is missing because git (and some other version control systems) leave out empty directories when you export (download) the repository completely, so it's not .gitignore that's causing it.