Post by straightlight » Mon Dec 31, 2012 8:35 am

This error occurs due to a session overload space from your domain. Simply clear out your session folder (don't delete the folder) and also clear out the OpenCart's cache folder. Then, refresh the page on your browser. It should correct the problem.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Saile » Mon Dec 31, 2012 9:01 am

straightlight wrote:This error occurs due to a session overload space from your domain. Simply clear out your session folder (don't delete the folder) and also clear out the OpenCart's cache folder. Then, refresh the page on your browser. It should correct the problem.
The error keep regenerating even when i clear out the cache folder.

Where exactly is the session folder?

Active Member

Posts

Joined
Thu Jan 19, 2012 8:19 am

Post by straightlight » Mon Dec 31, 2012 11:33 pm

Since this isn't an OC issue, ask this question to the web hosting technical support. They should be able to provide that information in order to resolve this problem.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Saile » Tue Jan 01, 2013 5:47 am

straightlight wrote:Since this isn't an OC issue, ask this question to the web hosting technical support. They should be able to provide that information in order to resolve this problem.
Moving to a new hosting company resolved the issue.

Active Member

Posts

Joined
Thu Jan 19, 2012 8:19 am

Post by manast0001 » Fri Aug 09, 2013 3:18 pm

Hi,
Please someone could help me? I have the same issue:
I ca't log in into the admin area, and i have also on top of myu pages this:

/home/comconsu/public_html/vqmod/vqcache/vq2-system_engine_controller.php:2) in /home/comconsu/public_html/vqmod/vqcache/vq2-system_library_session.php on line 19Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/comconsu/public_html/vqmod/vqcache/vq2-system_engine_controller.php:2) in /home/comconsu/public_html/vqmod/vqcache/vq2-system_library_session.php on line 19#d04bb5# echo " "; #/d04bb5# #d04bb5# echo " "; #/d04bb5# #d04bb5# echo " "; #/d04bb5#

I tried all i could find (like save file encoding ANSI or remove spaces) no but no success..
Thank you

Newbie

Posts

Joined
Thu Aug 08, 2013 9:54 pm

Post by Saile » Fri Aug 09, 2013 8:28 pm

hey mate,

when i had this issue i cleared my cache folder in the system directory and it cleared up.

Give that ago and let us know!

Active Member

Posts

Joined
Thu Jan 19, 2012 8:19 am

Post by wysocki » Fri Aug 23, 2013 6:38 am

Clearing the system/cache directory didn't help me but clearing the vqmod/vcache directory did!!!
Thanks for the tip.

Newbie

Posts

Joined
Tue Mar 26, 2013 7:49 am
Location - Los Angeles area

Post by byens » Thu Mar 27, 2014 10:13 am

add this code

Code: Select all

ob_start();
after

Code: Select all

<?php
scroll down until end of file

and add this code

Code: Select all

ob_flush(); 
before

Code: Select all

?>

Selling Kristik - Jasa Foto Aura - Kapas Vapor - supplier baju anak -


Active Member

Posts

Joined
Sat Dec 11, 2010 12:29 pm
Location - Surabaya

Post by Sam_teague » Sun May 04, 2014 3:58 pm

byens wrote:add this code

Code: Select all

ob_start();
after

Code: Select all

<?php
scroll down until end of file

and add this code

Code: Select all

ob_flush(); 
before

Code: Select all

?>
In which file should I insert this?

Newbie

Posts

Joined
Sun May 04, 2014 2:33 am

Post by azougagh2k » Thu Jun 12, 2014 10:28 pm

Hi

I've just installed 1.5.6.4 with norwegian language pack and a theme.
Back-end I'm using: NeoAdmin Template by Intersect

I'm having these warnings/errors in about 5 of 10 times when i'm changing a setting in the admincp.
Warning: Cannot modify header information - headers already sent by (output started at /customers/d/2/9/domene.no/httpd.www/admin/language/norsk/user/user.php:1) in /customers/d/2/9/domene.no/httpd.www/vqmod/vqcache/vq2-system_engine_controller.php on line 28Warning: Cannot modify header information - headers already sent by (output started at /customers/d/2/9/domene.no/httpd.www/admin/language/norsk/user/user.php:1) in /customers/d/2/9/domene.no/httpd.www/vqmod/vqcache/vq2-system_engine_controller.php on line 29
'

Anyone who can help me here? :/

Newbie

Posts

Joined
Tue Aug 20, 2013 10:15 pm

Post by sananthv » Wed Jun 18, 2014 6:48 pm

Sam_teague wrote:
byens wrote:add this code

Code: Select all

ob_start();
after

Code: Select all

<?php
scroll down until end of file

and add this code

Code: Select all

ob_flush(); 
before

Code: Select all

?>
In which file should I insert this?
Can someone please tell me which file I should add this to? adding in /system/library/sessions.php did not help.

Newbie

Posts

Joined
Wed Jun 18, 2014 6:46 pm

Post by shadav » Sat Aug 09, 2014 9:46 am

add it to the index.php in your admin folder

by doing that and deleting the php.ini file I got rid of the message from the admin, but not from the front end

User avatar
Newbie

Posts

Joined
Wed Oct 24, 2012 1:12 am
Location - Westfield, IN

Post by sud0074 » Wed Feb 11, 2015 3:10 pm

@eric.ag2i

u r great yaar ..
4 days to figure this out. With a tired creepy smile, THANK YOU!

Newbie

Posts

Joined
Sun Jan 25, 2015 9:41 pm

Post by shivamvarshney » Sun Apr 26, 2015 12:31 pm

hiii,
i clone my opencart site from a folder to main site and it showing the following error plz tell me how can this will solve.

Notice: unserialize() [function.unserialize]: Error at offset 11 of 500 bytes in /home/samassbd/public_html/index.php on line 128

Notice: unserialize() [function.unserialize]: Error at offset 11 of 1448 bytes in /home/samassbd/public_html/index.php on line 128

Notice: unserialize() [function.unserialize]: Error at offset 324 of 2918 bytes in /home/samassbd/public_html/index.php on line 128

also i got error in admin panel

Notice: unserialize() [function.unserialize]: Error at offset 11 of 500 bytes in /home/samassbd/public_html/admin/index.php on line 51

Notice: unserialize() [function.unserialize]: Error at offset 11 of 1448 bytes in /home/samassbd/public_html/admin/index.php on line 51

Notice: unserialize() [function.unserialize]: Error at offset 324 of 2918 bytes in /home/samassbd/public_html/admin/index.php on line 51


Posts

Joined
Tue Jan 14, 2014 7:06 pm

Post by fawad_zia » Wed Aug 05, 2015 6:11 pm

Can anyone please help me?

How i can remove this error
"
Warning: Cannot modify header information - headers already sent by (output started at /home/bababrothers/public_html/catalog/language/english/english.php:88) in /home/bababrothers/public_html/system/library/currency.php on line 37
"
Website is www.bababrother.com

Thank you

Newbie

Posts

Joined
Wed Jul 15, 2015 5:48 pm
Location - Sialkot

Post by straightlight » Wed Aug 05, 2015 8:53 pm

Ensure to have no space before the <?php and after the ?> in the file.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by fawad_zia » Mon Aug 10, 2015 7:49 pm

Thank you...Problem Solved.

Newbie

Posts

Joined
Wed Jul 15, 2015 5:48 pm
Location - Sialkot

Post by Iamgame » Mon Jun 20, 2016 5:56 pm

I was getting the similars errors while upgrading to 2.2.0.0 from 2.0.3.1 and I tried below the tricks

1) Deleting PHP.ini
2) Deleting System Cache
3) Deleting Theme Cache
4) Deleting Vqmod Cache

I did help me in getting rid of some of the errors. Now I don't see any errors of front-end of the website and I can now log in to Admin Panel but now I don't have the permission to edit anything.
Screen Shot 2016-06-20 at 3.15.28 PM.png

Screen Shot 2016-06-20 at 3.15.28 PM.png (421 KiB) Viewed 49993 times


Now I want to try deleting all unnecessary spaces between <?php and ?> and try adding Suggested code in my Index file (fob_start(); & ob_flush();) but I am unable to Locate "?>" in my Index file please suggest what to do?

Code: Select all

<?php
// Version
define('VERSION', '2.0.3.1');

// Configuration
if (is_file('config.php')) {
	require_once('config.php');
}

// Install
if (!defined('DIR_APPLICATION')) {
	header('Location: install/index.php');
	exit;
}

// VirtualQMOD
require_once('./vqmod/vqmod.php');
VQMod::bootup();

// VQMODDED Startup
require_once(VQMod::modCheck(DIR_SYSTEM . 'startup.php'));

// Registry
$registry = new Registry();

// Loader
$loader = new Loader($registry);
$registry->set('load', $loader);

// Config
$config = new Config();
$registry->set('config', $config);

// Database
$db = new DB(DB_DRIVER, DB_HOSTNAME, DB_USERNAME, DB_PASSWORD, DB_DATABASE);
$registry->set('db', $db);

// Store
if (isset($_SERVER['HTTPS']) && (($_SERVER['HTTPS'] == 'on') || ($_SERVER['HTTPS'] == '1'))) {
	$store_query = $db->query("SELECT * FROM " . DB_PREFIX . "store WHERE REPLACE(`ssl`, 'www.', '') = '" . $db->escape('https://' . str_replace('www.', '', $_SERVER['HTTP_HOST']) . rtrim(dirname($_SERVER['PHP_SELF']), '/.\\') . '/') . "'");
} else {
	$store_query = $db->query("SELECT * FROM " . DB_PREFIX . "store WHERE REPLACE(`url`, 'www.', '') = '" . $db->escape('http://' . str_replace('www.', '', $_SERVER['HTTP_HOST']) . rtrim(dirname($_SERVER['PHP_SELF']), '/.\\') . '/') . "'");
}

if ($store_query->num_rows) {
	$config->set('config_store_id', $store_query->row['store_id']);
} else {
	$config->set('config_store_id', 0);
}

// Settings
$query = $db->query("SELECT * FROM `" . DB_PREFIX . "setting` WHERE store_id = '0' OR store_id = '" . (int)$config->get('config_store_id') . "' ORDER BY store_id ASC");

foreach ($query->rows as $result) {
	if (!$result['serialized']) {
		$config->set($result['key'], $result['value']);
	} else {
		$config->set($result['key'], unserialize($result['value']));
	}
}

if (!$store_query->num_rows) {
	$config->set('config_url', HTTP_SERVER);
	$config->set('config_ssl', HTTPS_SERVER);
}

// Url
$url = new Url($config->get('config_url'), $config->get('config_secure') ? $config->get('config_ssl') : $config->get('config_url'));
$registry->set('url', $url);

// Log
$log = new Log($config->get('config_error_filename'));
$registry->set('log', $log);

function error_handler($errno, $errstr, $errfile, $errline) {
	global $log, $config;

	// error suppressed with @
	if (error_reporting() === 0) {
		return false;
	}

	switch ($errno) {
		case E_NOTICE:
		case E_USER_NOTICE:
			$error = 'Notice';
			break;
		case E_WARNING:
		case E_USER_WARNING:
			$error = 'Warning';
			break;
		case E_ERROR:
		case E_USER_ERROR:
			$error = 'Fatal Error';
			break;
		default:
			$error = 'Unknown';
			break;
	}

	if ($config->get('config_error_display')) {
		echo '<b>' . $error . '</b>: ' . $errstr . ' in <b>' . $errfile . '</b> on line <b>' . $errline . '</b>';
	}

	if ($config->get('config_error_log')) {
		$log->write('PHP ' . $error . ':  ' . $errstr . ' in ' . $errfile . ' on line ' . $errline);
	}

	return true;
}

// Error Handler
set_error_handler('error_handler');

// Request
$request = new Request();
$registry->set('request', $request);

// Response
$response = new Response();
$response->addHeader('Content-Type: text/html; charset=utf-8');
$response->setCompression($config->get('config_compression'));
$registry->set('response', $response);

// Cache
$cache = new Cache('file');
$registry->set('cache', $cache);

// Session
$session = new Session();
$registry->set('session', $session);

// Language Detection
$languages = array();

$query = $db->query("SELECT * FROM `" . DB_PREFIX . "language` WHERE status = '1'");

foreach ($query->rows as $result) {
	$languages[$result['code']] = $result;
}

if (isset($session->data['language']) && array_key_exists($session->data['language'], $languages)) {
	$code = $session->data['language'];
} elseif (isset($request->cookie['language']) && array_key_exists($request->cookie['language'], $languages)) {
	$code = $request->cookie['language'];
} else {
	$detect = '';

	if (isset($request->server['HTTP_ACCEPT_LANGUAGE']) && $request->server['HTTP_ACCEPT_LANGUAGE']) {
		$browser_languages = explode(',', $request->server['HTTP_ACCEPT_LANGUAGE']);

		foreach ($browser_languages as $browser_language) {
			foreach ($languages as $key => $value) {
				if ($value['status']) {
					$locale = explode(',', $value['locale']);

					if (in_array($browser_language, $locale)) {
						$detect = $key;
						break 2;
					}
				}
			}
		}
	}

	$code = $detect ? $detect : $config->get('config_language');
}

if (!isset($session->data['language']) || $session->data['language'] != $code) {
	$session->data['language'] = $code;
}

if (!isset($request->cookie['language']) || $request->cookie['language'] != $code) {
	setcookie('language', $code, time() + 60 * 60 * 24 * 30, '/', $request->server['HTTP_HOST']);
}

$config->set('config_language_id', $languages[$code]['language_id']);
$config->set('config_language', $languages[$code]['code']);

// Language
$language = new Language($languages[$code]['directory']);
$language->load($languages[$code]['directory']);
$registry->set('language', $language);

// Document
$registry->set('document', new Document());

// Customer
$customer = new Customer($registry);
$registry->set('customer', $customer);

// Customer Group
if ($customer->isLogged()) {
	$config->set('config_customer_group_id', $customer->getGroupId());
} elseif (isset($session->data['customer']) && isset($session->data['customer']['customer_group_id'])) {
	// For API calls
	$config->set('config_customer_group_id', $session->data['customer']['customer_group_id']);
} elseif (isset($session->data['guest']) && isset($session->data['guest']['customer_group_id'])) {
	$config->set('config_customer_group_id', $session->data['guest']['customer_group_id']);
}

// Tracking Code
if (isset($request->get['tracking'])) {
	setcookie('tracking', $request->get['tracking'], time() + 3600 * 24 * 1000, '/');

	$db->query("UPDATE `" . DB_PREFIX . "marketing` SET clicks = (clicks + 1) WHERE code = '" . $db->escape($request->get['tracking']) . "'");
}

// Affiliate
$registry->set('affiliate', new Affiliate($registry));

// Currency
$registry->set('currency', new Currency($registry));

// Tax
$registry->set('tax', new Tax($registry));

// Weight
$registry->set('weight', new Weight($registry));

// Length
$registry->set('length', new Length($registry));

// Cart
$registry->set('cart', new Cart($registry));

// Encryption
$registry->set('encryption', new Encryption($config->get('config_encryption')));

//OpenBay Pro
$registry->set('openbay', new Openbay($registry));

// Event
$event = new Event($registry);
$registry->set('event', $event);

$query = $db->query("SELECT * FROM " . DB_PREFIX . "event");

foreach ($query->rows as $result) {
	$event->register($result['trigger'], $result['action']);
}

// Front Controller
$controller = new Front($registry);

// Maintenance Mode
$controller->addPreAction(new Action('common/maintenance'));

// SEO URL's
$controller->addPreAction(new Action('common/seo_url'));

// Router
if (isset($request->get['route'])) {
	$action = new Action($request->get['route']);
} else {
	$action = new Action('common/home');
}

// Dispatch
$controller->dispatch($action, new Action('error/not_found'));

// Output
$response->output();

Newbie

Posts

Joined
Mon Jun 20, 2016 5:18 pm

Post by straightlight » Mon Jun 20, 2016 6:55 pm

You seem to be using the old version of index.php even though you upgraded to Opencart v2.2.0.0 release. This release now uses a framework file in order to register the objects as it no longer uses the serialization by default but rather json encoding / decoding method.

Either something went wrong when upgrading your database or the database upgrade were successful but you did not replaced the files with the new release ones.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON


Posts

Joined
Sat Feb 18, 2017 11:05 pm

Who is online

Users browsing this forum: No registered users and 58 guests