InMotion Hosting Support Center

Error in Search Tab

Category: Opencart

2014-06-27 4:06 pm EST

Hits: 73
I am using Opencart & getting an error in search tab of my site.The Error is
<b>Notice</b>: Undefined variable: search in <b>/home/kmbazzar00/public_html/catalog/view/theme/dolarshoppe/template/common/header.tpl</b> on line <b>85</b>

and i am using the below script for search :
<div id="search">
<div class="button-search"></div>
<input type="text" name="search" placeholder="<?php echo $text_search; ?>" value="<?php echo $search; ?>" />
This error is coming in my all theme that is have used.
Can you please to inform me that where is the issue.
Please reply me i am waiting for your valuable revert.

You must login before you can ask a follow up question.

You must login before you can submit an answer.

Best answer chosen by User


9,968 Points
2014-06-27 4:29 pm EST
Hello akki01, and thanks for your question.

It looks like the error you're getting is on line 85 of that header.tpl file.

It seems you are possibly trying to get it to echo out the variable $search, but it's telling you that variable is undefined.

Make sure that variable is getting defined somewhere higher up in your script, or you might want to possibly try using the other $text_search variable instead.

- Jacob

You must login before you can post a comment about this answer.

Thanks Jacob,
the issue has been resolved thanks a ton for your support..........
16 Points
2014-06-28 11:47 am EST
Like this Question?

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!