Jump to content

Fatal error: Call to a member function setError()


Recommended Posts

Quote

"Manually set to:"

$cookie_domain = '.sitename.co.uk';
                        ini_set('session.cookie_domain',$cookie_domain);

I suggest restoring that code in session.class.php to its original:

		$cookie_domain = $GLOBALS['config']->get('config', 'cookie_domain');
		if(!empty($cookie_domain) && strstr($GLOBALS['storeURL'],ltrim($cookie_domain,'.'))) {
			ini_set('session.cookie_domain',$cookie_domain);
		}

I understand that at times it is necessary to override what CubeCart automatically determines what the most appropriate value should be.

Also know that almost all $GLOBALS['config'] keys/values can be created and overridden in the /includes/global.inc.php file. For example, on a localhost development machine, I have:

$glob['cookie_domain'] = '127.0.0.1';

among other necessary overrides.

No doubt a contributing factor was the security setting of the web browser -- domain mismatch equals no cookie sent. Which is not a bad thing!

I am still concerned about why the GUI instantiation got lost.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...