You are here:  » PT in a subfolder

Support Forum



PT in a subfolder

Submitted by jonny5 on Sun, 2008-08-24 10:47 in

i have installed PT in a sub folder and on the upper page of the website i want to include the PT searchform.php

i have done this but when i check the front page i can see the search bar with the below error

<input type='submit' value='
Fatal error: Call to undefined function: translate() in /home/sites/website/public_html/property/shopping/html/searchform.php on line 3

any ideas what im doing wrong

cheers

Submitted by support on Sun, 2008-08-24 11:26

Hi Jonny,

That sounds like you have copied the PHP from Price Tapestry in order to make a search form on your home page which will have 2 problems - 1 being the error you are seeing, and the other is that the form will not submit to the correct place (the code uses $config_baseHREF).

instead, the thing to do is to browse to your Price Tapestry normal home page, then use View > Source in your web browser's menu; copy the search form HTML, between and including the <form ... > tags; and then paste this into your top level home page HTML...

Cheers,
David.

Submitted by jonny5 on Sun, 2008-08-24 13:29

cheers