Ah, yes.. now i see the error.. its the same error, i had posted in the beginning of this topic...i tried to find the codes as u instructed, but they all seems to be in place.... i know its somewhere there but just cannot find it...
looking into my error log i see the following each time i got "An unexpected error occured. Please try again later"
Cannot modify header information - headers already sent by (output started at /home/xxxxxxxxxx/public_html/includes/db_mysql.php:192) in /home/xxxxxxxxxx/public_html/includes/sessions.php on line 101
in file db_mysql.php around line 192 i see:
from line 170-220
function fetch_array($query_id = -1, $assoc = 0) {
if ($query_id != -1) {
$this->query_id = $query_id;
}
if ($this->query_id) {
return ($assoc) ? mysql_fetch_assoc($this->query_id) : mysql_fetch_array($this->query_id);
}
}
function free_result($query_id = -1) {
if ($query_id != -1) {
$this->query_id = $query_id;
}
return @mysql_free_result($this->query_id);
}
function query_firstrow($query = "") {
if ($query != "") {
$this->query($query);
}
$result = $this->fetch_array($this->query_id);
$this->free_result();
return $result;
}
in file sessions.php around line 90 to 120
//@ini_set('session.cookie_lifetime', $this->session_timeout);
session_name(urlencode(SESSION_NAME));
@session_start();
$this->demand_session();
}
function set_cookie_data($name, $value, $permanent = 1) {
$cookie_expire = ($permanent) ? $this->current_time + 60 * 60 * 24 * 365 : 0;
$cookie_name = COOKIE_NAME.$name;
setcookie($cookie_name, $value, $cookie_expire, COOKIE_PATH, COOKIE_DOMAIN, COOKIE_SECURE);
$HTTP_COOKIE_VARS[$cookie_name] = $value;
}
function read_cookie_data($name) {
global $HTTP_COOKIE_VARS;
$cookie_name = COOKIE_NAME.$name;
return (isset($HTTP_COOKIE_VARS[$cookie_name])) ? $HTTP_COOKIE_VARS[$cookie_name] : false;
}
function get_session_id() {
if (SID == '') {
$this->mode = "cookie";
}
if (preg_match('/[^a-z0-9]+/i', session_id())) {
@session_regenerate_id();
}
$this->session_id = session_id();
when i went to postcards.php i got another error in the log...
include(./global.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /home/xxxxxxxxxx/public_html/postcards.php on line 27
[09-Apr-2009 18:23:26] PHP Warning: include(./global.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /home/xxxxxxxxxx/public_html/postcards.php on line 27
[09-Apr-2009 18:23:26] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening './global.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxxxxxxx/public_html/postcards.php on line 27
[09-Apr-2009 18:23:26] PHP Fatal error: Call to a member function query() on a non-object in /home/xxxxxxxxxx/public_html/includes/sessions.php on line 226
everything seems to be working with the ecard function... can this be due to some file being included somewhere in the postcards template using <?php include(.......); ?> i checked the postcard templates and did not find anything there....