Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal Error: unknown function, in Locations/Taxes


AndreaFahy

Recommended Posts

In the Locations / Taxes I see this error at the bottom:

 

Fatal error: Unknown function: tep_hide_session_id() in /home/httpd/vhosts/bonsaibirds.com/httpdocs/shop/admin/includes/classes/split_page_results.php on line 80

 

 

Thank you VERY much in advance for any help.

Kindly,

 

Andrea Fahy

Link to comment
Share on other sites

In the Locations / Taxes I see this error at the bottom:

 

Fatal error: Unknown function: tep_hide_session_id() in /home/httpd/vhosts/bonsaibirds.com/httpdocs/shop/admin/includes/classes/split_page_results.php on line 80

Thank you VERY much in advance for any help.

 

 

open your file catalog/admin/includes/classes/split_page_results.php

 

check line 80 to see if there's a missing letter or something.

if you use ms 2.2 there should be

if (SID) $display_links .= tep_draw_hidden_field(tep_session_name(), tep_session_id());

 

and if you use oscommerce-2.2rc1 then there should be

 

$display_links .= tep_hide_session_id() . '</form>';

Link to comment
Share on other sites

Sorry for the last message. just ignore it.

 

open up your catalog/admin/includes/application_top.php to see if the line below is in place (at line 73 )

 

  require(DIR_WS_FUNCTIONS . 'html_output.php');

 

if this line exists then

 

open catalog/admin/includes/functions/html_output.php

 

and search for this

 

////
// Hide form elements
 function tep_hide_session_id() {

 

if this code doesn't exists

 

then manually add this function to your html_output.php

 

////
// Hide form elements
 function tep_hide_session_id() {
$string = '';

if (defined('SID') && tep_not_null(SID)) {
  $string = tep_draw_hidden_field(tep_session_name(), tep_session_id());
}

return $string;
 }

 

this should probably solve your problem..

Link to comment
Share on other sites

Thank you so much for the reply!!! I have so many little errors like this to fix now :(

 

The code does not exist in the html_output file. Where should I add that function - does it matter where?

 

 

 

and search for this

 

////
// Hide form elements
 function tep_hide_session_id() {

 

if this code doesn't exists

 

then manually add this function to your html_output.php

 

////
// Hide form elements
 function tep_hide_session_id() {
$string = '';

if (defined('SID') && tep_not_null(SID)) {
  $string = tep_draw_hidden_field(tep_session_name(), tep_session_id());
}

return $string;
 }

 

this should probably solve your problem..

Kindly,

 

Andrea Fahy

Link to comment
Share on other sites

Perfect - that was the solution needed.

 

I'd like to understand this better - do you have any clue why it may have been missing in my files? This is a new install, I have done very little other than adding the UPSXML & MVS mods.

Kindly,

 

Andrea Fahy

Link to comment
Share on other sites

Thank you so much for the reply!!! I have so many little errors like this to fix now :(

 

The code does not exist in the html_output file. Where should I add that function - does it matter where?

 

 

I checked your installation to see. you've installed v2.2rc1

 

just replace your html_output.php if u haven't installed anything else and other problems will be easily fixed..

Link to comment
Share on other sites

I checked your installation to see. you've installed v2.2rc1

 

just replace your html_output.php if u haven't installed anything else and other problems will be easily fixed..

 

 

if you edit the html_output.php while installing these contributions or just copied them into your shop those contributions may have these errors by default

Link to comment
Share on other sites

Good - you had me worried that I may have installed an old version! So, you are suggesting it may be best to just get the original html_output.php from the 2.2rc1 download and upload that over the one that I have?

Kindly,

 

Andrea Fahy

Link to comment
Share on other sites

Good - you had me worried that I may have installed an old version! So, you are suggesting it may be best to just get the original html_output.php from the 2.2rc1 download and upload that over the one that I have?

 

 

I think so. but I don't know much about those contributions you've installed. I can't guarantee that the'll work properly after you install the stock html_output.php..

Link to comment
Share on other sites

All seems fine in the MVS section. I still have other issues - but you may see those threads as you browse the forum:

 

Image Directory issue

http://www.oscommerce.com/forums/index.php?showtopic=273762

 

then it looks like there are just two more things to fix after that - with my backup database and my cache directory...

Kindly,

 

Andrea Fahy

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...