SteveGee Posted April 3, 2012 Share Posted April 3, 2012 Hi everyone .. i am having a major issue with the "Search" field on a website I am putting together, can someone please tell me what is wrong in the following :- Fatal error: Call to undefined function cleanSameArg2() in /includes/modules/sideboxes/viwolf/search_categories.php on line 39 In this file starting at line 39 is the following :- echo '<a href="'.cleanSameArg2('min_price','max_price').'&min_price='.floor($priceListArray[$totalNum*$i/$priceListRowNum]).'&max_price='.floor($priceListArray[$totalNum*($i+1)/$priceListRowNum-1]).'">'; echo $currencies->display_price($priceListArray[$totalNum*$i/$priceListRowNum],zen_get_tax_rate($_GET['products_tax_class_id'])).' - '.$currencies->display_price($priceListArray[$totalNum*($i+1)/$priceListRowNum-1],zen_get_tax_rate($_GET['products_tax_class_id'])); echo '</a>'; echo '</li>'; Can anyone explain what is the error or what is missing please ??? It is driving me crazy as the web guys cant work it out either !! Greatly appreciate any advice ... you can email me if you wish .. Regards SteveGee Quote Link to comment https://forums.phpfreaks.com/topic/260246-call-to-undefined-function-cleansamearg2/ Share on other sites More sharing options...
trq Posted April 3, 2012 Share Posted April 3, 2012 cleanSameArg2 is not a built in PHP function, have you defined it somewhere and included it so it can be used? Quote Link to comment https://forums.phpfreaks.com/topic/260246-call-to-undefined-function-cleansamearg2/#findComment-1333862 Share on other sites More sharing options...
SteveGee Posted April 3, 2012 Author Share Posted April 3, 2012 Hi Thorpe. Wouldnt it be that it is defined already ? Reason is that it is the main "search" area on the home (if not all) pages. No matter where on the site I search for something, this is the error that comes up ... all be it on a new page. It is almost like the search field is not capable of gathering any information from the rest of the entire site. It is so tempting to remove the search field altogether but unfortunately it is a much needed thing. Appreciate any advice as the people who uploaded and set up the site have left me high and dry !! Regards Steve Quote Link to comment https://forums.phpfreaks.com/topic/260246-call-to-undefined-function-cleansamearg2/#findComment-1333872 Share on other sites More sharing options...
trq Posted April 3, 2012 Share Posted April 3, 2012 Wouldnt it be that it is defined already ? Obviously not. I would search the project for the definition, then include whatever file it's in where it is needed. Quote Link to comment https://forums.phpfreaks.com/topic/260246-call-to-undefined-function-cleansamearg2/#findComment-1333874 Share on other sites More sharing options...
SteveGee Posted April 3, 2012 Author Share Posted April 3, 2012 Hi Thorpe, How can I go about finding the problem ? I need to fix up the web site "search" part ... where do I start looking ? Regards Steve Quote Link to comment https://forums.phpfreaks.com/topic/260246-call-to-undefined-function-cleansamearg2/#findComment-1333973 Share on other sites More sharing options...
trq Posted April 3, 2012 Share Posted April 3, 2012 Start by searching through all the code for the function definition. Quote Link to comment https://forums.phpfreaks.com/topic/260246-call-to-undefined-function-cleansamearg2/#findComment-1333975 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.