Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Live support help please


Recommended Posts

Just installed the latest version 1.31

Every is working except I get this error when I try to open the chat from the main site

Fatal error: Call to undefined function: tep_db_prepare_input() in /home/virtual/site4/fst/var/www/html/live_support.php on line 23


On Line 23 I have the following

  $guest = tep_db_prepare_input($HTTP_POST_VARS['login']);


What can I do to fix it?

Link to comment
Share on other sites

Anyone know how to fix it?

No :cry:


Try to debug saying

echo $HTTP_POST_VARS['login']; // make sure it is not blank.


In my code:

function tep_db_prepare_input($string) { // is the last function

in /catalog/functions/database.php

This needs to be visible in your /html/live_support.php

My presumption is that database.php is included by the line


- which may not be including that file into your code.

- If you cannot trace the problem back then I suggest

you include


/catalog/functions/database.php just below the line



and see if you get other errors.


This problem may not be related to live_help so that is why (I guess)

you did not get any answers.



Link to comment
Share on other sites

It seems that the function is not in my database.php

i tried replacing the database.php and sessions.php from a newer version, it works for live support but it causes problems with logging in etc. anyone know how to get the new functions in without effecting the store?

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.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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...