Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
8 - 3 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     
securityLevel - 1); if (strncmp($sess_ip, $_SERVER['REMOTE_ADDR'], $pos)) { $sess_data = ''; } } return $sess_data; } } return ''; } /** * Write a session to the database * * @param string $sess_id * @param string $sess_data * * @return bool **/ function write($sess_id, $sess_data) { $sess_id = $this->db->quoteString($sess_id); $sql = sprintf('UPDATE %s SET sess_updated = %u, sess_data = %s WHERE sess_id = %s', $this->db->prefix('session'), time(), $this->db->quoteString($sess_data), $sess_id); $this->db->queryF($sql); if (!$this->db->getAffectedRows()) { $sql = sprintf('INSERT INTO %s (sess_id, sess_updated, sess_ip, sess_data) VALUES (%s, %u, %s, %s)', $this->db->prefix('session'), $sess_id, time(), $this->db->quoteString($_SERVER['REMOTE_ADDR']), $this->db->quoteString($sess_data)); return $this->db->queryF($sql); } return true; } /** * Destroy a session * * @param string $sess_id * * @return bool **/ function destroy($sess_id) { $sql = sprintf('DELETE FROM %s WHERE sess_id = %s', $this->db->prefix('session'), $this->db->quoteString($sess_id)); if ( !$result = $this->db->queryF($sql) ) { return false; } return true; } /** * Garbage Collector * * @param int $expire Time in seconds until a session expires * @return bool **/ function gc($expire) { if (empty($expire)) { return true; } $mintime = time() - intval($expire); $sql = sprintf('DELETE FROM %s WHERE sess_updated db->prefix('session'), $mintime); return $this->db->queryF($sql); } /** * Force gc for situations where gc is registered but not executed **/ function gc_force() { if (rand(1, 100) gc($expiration); } } /** * Update the current session id with a newly generated one * * To be refactored * * @param bool $delete_old_session * @return bool **/ function regenerate_id($delete_old_session = false) { if (!$this->enableRegenerateId) { return true; } $phpversion = phpversion(); // parameter "delete_old_session" only available as of PHP 5.1.0 if (version_compare($phpversion, "5.1.0", ">=")) { $success = session_regenerate_id($delete_old_session); } else { $old_session_id = session_id(); // session_regenerate_id function available as of PHP 4.3.2 if (function_exists("session_regenerate_id")) { $success = session_regenerate_id(); if ($success && $delete_old_session) { // Extra step to destroy old session $this->destroy($old_session_id); } // For PHP prior to 4.3.2 } else { // session_regenerate_id is not defined, create new session ID $session_id = md5( uniqid(rand(), true) . @$_SERVER['HTTP_USER_AGENT'] ); // Set the new session ID session_id($session_id); // Destory old session on request if ($delete_old_session) { $this->destroy($old_session_id); // switch old session to new one } else { $sql = sprintf('UPDATE %s SET sess_id = %s WHERE sess_id = %s', $this->db->prefix('session'), $this->db->quoteString($session_id), $this->db->quoteString($old_session_id)); $this->db->queryF($sql); } $success = true; } } // Force updating cookie for session cookie is not issued correctly in some IE versions or not automatically issued prior to PHP 4.3.3 for all browsers if ($success) { $this->update_cookie(); } return $success; } /** * Update cookie status for current session * * To be refactored * FIXME: how about $xoopsConfig['use_ssl'] is enabled? * * @param string $sess_id session ID * @param int $expire Time in seconds until a session expires * @return bool **/ function update_cookie($sess_id = null, $expire = null) { global $xoopsConfig; $session_name = ($xoopsConfig['use_mysession'] && $xoopsConfig['session_name'] != '') ? $xoopsConfig['session_name'] : session_name(); $session_expire = !is_null($expire) ? intval($expire) : ( ($xoopsConfig['use_mysession'] && $xoopsConfig['session_name'] != '') ? $xoopsConfig['session_expire'] * 60 : ini_get("session.cookie_lifetime") ); $session_id = empty($sess_id) ? session_id() : $sess_id; setcookie($session_name, $session_id, $session_expire ? time() + $session_expire : 0, '/', '', 0); } } ?> [/code][/quote]" />

Re: What else is wrong with 2.0.18? When is the patch going to be ready? Issues Issues...
by McDonald on 2008/1/28 14:21:53

Xoops 2.0.18.1 RC will probably be released coming weekend, see here in the forum at SourceForge.
Re: What else is wrong with 2.0.18? When is the patch going to be ready? Issues Issues...
by script_fu on 2008/1/26 16:28:19

Thanks Maka!

The php.ini worked on the surpass hosting account.
Re: What else is wrong with 2.0.18? When is the patch going to be ready? Issues Issues...
by Sublime on 2008/1/26 15:15:00

you need to raise the allowed memory in ur php.ini

memory_limit = 32M

is ours

if you dont have root, try making a php.ini in the public_html directory with that setting in it.

or use

ini_set("memory_limit","32M");

in ur mainfile

or use a phpflag in .htaccess
Re: When is the 2.0.18 patch going to be ready? Issues Issues...
by script_fu on 2008/1/26 9:37:41

Another blank page... I cannot click on any user. Say admin posts a story. I click the link to admins profile I get a blank page.

Here is an error that XOOPS spit out after not giving any clues all day.

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 122880 bytes) in
/home/mysite/public_html/class/smarty/Smarty_Compiler.class.php on line 1808

I am building a new site for a client on surpasshosting.com

Fresh install of XOOPS 2.0.18
Apache version 1.3.39 (Unix)
PHP version 5.2.5
MySQL version 5.0.45-community

news 1.56
pical 0.91
contact 1.6
extgallery 1.03
spotlight 1.02
Re: When is the 2.0.18 patch going to be ready? Issues Issues...
by Mamba on 2008/1/24 22:20:56

hmm, I don't have any problems with piCal empty pages. I have updated from 2.0.17.

I also don't have any problems it tinyeditor toolbar.

Software server Apache
PHP version 4.4.7
MySql version 5.0.24

Are these issues related to a specific configurations, or to specific updates (e.g. from 2.0.16 to 2.0.18)?

Who's Online

187 user(s) are online (143 user(s) are browsing Support Forums)


Members: 0


Guests: 187


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits