English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Hi Guys,

I know there are some genuises around here that are great with PHP

I was hoping one of you might give me 10 mins and help me with an error I'm getting:

Fatal error: Call to undefined function: tep_image() in /home/sites/www.jewelleryfountain.co.uk/public_html/catalog/includes/header.php on line 57

I just cant work it out. Please message me if you can help - I would really really appreciate it!

Thanks Kelly.

2007-03-20 04:23:39 · 4 answers · asked by angelicakelly 2 in Computers & Internet Programming & Design

i think this is the bit it is referring to:

' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . ''; ?>

2007-03-20 04:33:20 · update #1

could it be the FILENAME_DEFAULT bit?
and if so - would you have any clue as to what I would put there?

lol- I'm not thick honestly... just a newbie to PHP

P.s thanks for the answer duds

2007-03-20 04:36:19 · update #2

4 answers

The function tep_image is not declared. Perhaps you have it misspelled (temp_image ?)or just have it left out. tep_image is not a predefined PHP function you have to tell the program what it is supposed to do when it tep_image is called.

A function declaration looks like this...

function tep_image( ASSIGN VARIABLE PASSED TO FUNCTION)
{
DO STUFF

return($something); (IF NEEDED)
}

2007-03-20 04:29:30 · answer #1 · answered by Duds331 5 · 1 0

Hi Kelly,

Actually the script which you are running (.php file) is calling an external function tep_image() which seems to display the images into html output. However may be due to path settings or the chmod settings it is not accessable.
Check out for include("somefile.php") in your script. If you still face problems, copy and paste your source code here. I will rectify the error.

shishirmba@yahoo.com
www.naukrisalah.com

2007-03-21 13:27:19 · answer #2 · answered by Shishir Gupta 1 · 0 0

above is great, but may I add the following:

I am assuming you are working with someone elses code, because otherwise you would know the name of your function and how to include it.

The function may be declared in a file of of its own that is included into your page source. check for "include" statements and ensure the files all exist in the correct place and are readable. a failed include statement only raises a "notice" and not a fatal error, so could be missed.

2007-03-20 11:36:04 · answer #3 · answered by Fabian 2 · 1 0

The function tep_href_link([paremeter]) is not declared. Please have a look on all of your files. If you find some statement following to similar
function tep_href_link([paramters])
{
//Some statement;
}

Then you have to include that file in your above mentioned source.

2007-03-21 03:52:04 · answer #4 · answered by Atif Majid 3 · 0 0

fedest.com, questions and answers