Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal error: Call to undefined function tep_image_submit


bnby

Recommended Posts

Posted

i just installed a template and got this error in the Your Account box on the site:

 

 

Fatal error: Call to undefined function tep_image_submit() in .../public_html/templates/theme146/boxes/loginbox.php on line 82

 

 

how do I fix and is there any code missing in loginbox.php? please help!

 

here's line 81-84

 

<tr>

<td class=\"infoboxContents\" align=\"center\">

" . tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN, 'SSL') . "

</td>

</tr>

 

 

THANKS!!!

Posted

are you using SSL? That is do you have a SSL cert installed and working?

 

I am thinking the ,SSL is the problem but I'm not an expert. Maybe somebody else can shed some light.

Posted

In stock osC that function is in /includes/functions/html_output.php which gets included via /includes/application_top.php like this:

 

// define general functions used application-wide
 require(DIR_WS_FUNCTIONS . 'general.php');
 require(DIR_WS_FUNCTIONS . 'html_output.php');

Looks like you're the proud owner of yet another broken template....

:o

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
In stock osC that function is in /includes/functions/html_output.php which gets included via /includes/application_top.php like this:

 

// define general functions used application-wide
 require(DIR_WS_FUNCTIONS . 'general.php');
 require(DIR_WS_FUNCTIONS . 'html_output.php');

Looks like you're the proud owner of yet another broken template....

:o

 

 

Thank you. I am a REAL NEWBIE. I know html ok but not php. I attempted...

 

in /includes/functions/html_output.php there is a function called "tep_image"

 

so in .../public_html/templates/theme146/boxes/loginbox.php, I changed "tep_image_submit" to "tep_image" and the Your Account box showed up but still without the submit button (button_login.gif).

 

I am tired of my template problems. :-(

Posted

The file doesn't have this code:

 

////
// The HTML form submit button wrapper function
// Outputs a button in the selected language
 function tep_image_submit($image, $alt = '', $parameters = '') {
global $language;

$image_submit = '<input type="image" src="' . tep_output_string(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image) . '" border="0" alt="' . tep_output_string($alt) . '"';

if (tep_not_null($alt)) $image_submit .= ' title=" ' . tep_output_string($alt) . ' "';

if (tep_not_null($parameters)) $image_submit .= ' ' . $parameters;

$image_submit .= '>';

return $image_submit;
 }

:unsure:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

Thanks. I haven't tried your 2nd suggestion yet... BUT

 

I found another function being used called tep_template_image_submit so I

 

 

changed:

" . tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN, 'SSL') . "

 

to:

 

" . tep_template_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN, 'SSL') . "

 

 

in file .../public_html/templates/theme146/boxes/loginbox.php

 

It's fixed. The Your Account box displays with correct login button and the login works. Thanks for giving me some direction! :-)

 

 

Now on to the rest of the fatal error messages, ugh!

Archived

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

×
×
  • Create New...