Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal error: Call to undefined function: tep_sessi


md1

Recommended Posts

Hi,

 

I now get the above fatal error message after installing Affiliate module.  Anyone else had this problem or know what the solution may be.

 

Mark

 

 

The full error message is

 

Fatal error: Call to undefined function: tep_session_register() in /home/looking4/public_html/catalog/includes/affiliate_application_top.php on line 110

Link to comment
Share on other sites

Hi,

 

I now get the above fatal error message after installing Affiliate module.  Anyone else had this problem or know what the solution may be.

 

Mark

 

Is that the full error?

 

Looks like you have overwritten some text when installing the contribution as the function could be any of the functions defined in /includes/functions/sessions.php which all start with tep_session....

 

Only way to find out is download the original osCommerce files and compare with your changed one.

 

Which version of oscommerce are you using?

Link to comment
Share on other sites

Is that the full error?

 

Looks like you have overwritten some text when installing the contribution as the function could be any of the functions defined in /includes/functions/sessions.php which all start with tep_session....

 

Only way to find out is download the original osCommerce files and compare with your changed one.

 

Which version of oscommerce are you using?

 

 

I have now included the full error message. My sessions.php file contains the following

 

function tep_session_register($variable) {

global $session_started;

if ($session_started == true) {

return session_register($variable);

} else {

return false;

}

}

 

Not certain of the version but the top of the sessions.php contains

 

$Id: sessions.php,v 1.13 2003/02/11 01:31:02 hpdl Exp $

 

So I would guess v 1.13

 

Mark

Link to comment
Share on other sites

where does affiliate_application_top.php come into things, is it called from application_top.php or does it replace it?

 

In application_top.php there is a bit code

 

// define how the session functions will be used
 require(DIR_WS_FUNCTIONS . 'sessions.php');

 

if your affiliate_application_top.php is being called before that (if that is how it works) then the sessions.php file doesnt exist yet as far as the contribution is concerned hence the error.

Link to comment
Share on other sites

where does affiliate_application_top.php come into things, is it called from application_top.php or does it replace it?

 

In application_top.php there is a bit code

 

// define how the session functions will be used
?require(DIR_WS_FUNCTIONS . 'sessions.php');

 

if your affiliate_application_top.php is being called before that (if that is how it works) then the sessions.php file doesnt exist yet as far as the contribution is concerned hence the error.

 

Many thanks

 

the affiliate_application_top.php was being called twice from application_top.php. One was correctly at the bottom but for some reason I had also inserted it near the top before the call for sessions.php.

 

It is now working, thanks again.

 

Mark

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...