clrob11 Posted May 21, 2009 Posted May 21, 2009 I initially got this message when trying to complete a test purchase after clicking on confirm order. Warning: ob_start() [ref.outcontrol]: output handler 'ob_gzhandler' cannot be used twice in /home/xxxxxxx/public_html/xxxxxx/includes/application_top.php on line 144 and Fatal error: Cannot redeclare _sess_open() (previously declared in /home/xxxxxxx/public_html/xxxxxxxx/includes/functions/sessions.php:23) in /home/xxxxx/public_html/xxxxx/includes/functions/sessions.php on line 23 But I think I have managed to solve the first part (after a lot of searching) by adding "ob_end_clean();" just before " ob_start('ob_gzhandler');" in application_top.php So it now looks like this:- // if gzip_compression is enabled, start to buffer the outputif ( (GZIP_COMPRESSION == 'true') && ($ext_zlib_loaded = extension_loaded('zlib')) && (PHP_VERSION >= '4') ) {if (($ini_zlib_output_compression = (int)ini_get('zlib.output_compression')) < 1) { if (PHP_VERSION >= '4.0.4') { ob_end_clean(); ob_start('ob_gzhandler'); } else { include(DIR_WS_FUNCTIONS . 'gzip_compression.php' I am not sure if it's the right fix but it works. So I now just have the second part to deal with. Fatal error: Cannot redeclare _sess_open() (previously declared in /home/xxxxxxx/public_html/xxxxxxxx/includes/functions/sessions.php:23) in /home/xxxxx/public_html/xxxxx/includes/functions/sessions.php on line 23 Can anybody shed any light on this would be eternally greatful. Better to be looked over than overlooked!
clrob11 Posted May 22, 2009 Author Posted May 22, 2009 I realise you guys are very busy and help is freely donated but any chance of a little help here? Please Better to be looked over than overlooked!
clrob11 Posted May 22, 2009 Author Posted May 22, 2009 MMMM Seems to be a tricky problen this as no one has taken up the challange. <_< Better to be looked over than overlooked!
steve_s Posted May 22, 2009 Posted May 22, 2009 MMMM Seems to be a tricky problen this as no one has taken up the challange. <_< Can you paste lines 20-25 of this file here in /home/xxxxx/public_html/xxxxx/includes/functions/sessions.php
clrob11 Posted May 23, 2009 Author Posted May 23, 2009 Hi Steve, Thanks for the reply these are lines 18-33 as you know sometimes the line numbers don't add up so I have hopefully coverd all the bases. Chris if (STORE_SESSIONS == 'mysql') { if (!$SESS_LIFE = get_cfg_var('session.gc_maxlifetime')) { $SESS_LIFE = 1440; } function _sess_open($save_path, $session_name) { return true; } function _sess_close() { return true; } function _sess_read($key) { $value_query = tep_db_query("select value from " . TABLE_SESSIONS . " where sesskey = '" . tep_db_input($key) . "' and expiry > '" . time() . "'"); $value = tep_db_fetch_array($value_query); Better to be looked over than overlooked!
clrob11 Posted May 26, 2009 Author Posted May 26, 2009 be most greatful if anybody can help :unsure: Better to be looked over than overlooked!
clrob11 Posted May 27, 2009 Author Posted May 27, 2009 Hi Steve_S have you managed to have a look at the code? I realise you may be busy and am really most greatful for any help but this issue is stopping any payments being authorised. I am quite anxious to get the issue resolved so would like to hear from anyone that could offer a soloution PLEASE!!! Better to be looked over than overlooked!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.