Jump to content

Upgraded to 5.2.13 - now search box doesn't work in top right corner


sahostking

Recommended Posts

Thanks I tested and it's now working.

 

Ok so I am not getting this fix.

 

I have a folder called templates_c in the remote server. In that folder is one file called index.php. There is no cached file in that folder to delete or clear. Can someone please clarify what you mean by clearing the templates_c file?

 

Thanks

Link to comment
Share on other sites

Not for me. I have cleared the cache in the browser and search box does not work. What about the clearing of the templates_c folder? I have one folder with an index.php file in it with one line of code in it. Am I suppose to delete the index.php file? How do you clear the cache of a folder? What am I missing here? Can someone please answer me?

 

Thanks :)

Link to comment
Share on other sites

If you have created a custom "Admin" template based on the V4 template then you need to copy over the new V4 "head.js" to your custom template folder. You also need to replace the old search box code in your "header.tpl" from a previous version with the new code that matches that head.js code.

 

For me I replaced this in the "header.tpl" file in my custom admin template:

 

<input type="text" id="intellisearchval" />

<img src="images/icons/delete.png" alt="Cancel" width="16" height="16" class="absmiddle" id="intellisearchcancel" />

</div>

 

with:

 

 

<form id="frmintellisearch">

<input type="hidden" name="intellisearch" value="1" />

<input type="hidden" name="token" value="{$csrfToken}" />

<input type="text" id="intellisearchval" name="value" />

</form>

<img src="images/icons/delete.png" alt="Cancel" width="16" height="16" class="absmiddle" id="intellisearchcancel" />

 

Which I found in the new V4 template -

Link to comment
Share on other sites

OK, it turns out the intellisearch issue is a swiftmodders issue for me. Moved away from sm to v4 theme until there is a fix. Thanks for this thread. Was doing my head in.

 

I opened a ticket to alert them about it, so hopefully a quick fix can be done.

Link to comment
Share on other sites

 

I have a folder called templates_c in the remote server. In that folder is one file called index.php. There is no cached file in that folder to delete or clear. Can someone please clarify what you mean by clearing the templates_c file?

 

Thanks

 

That sounds like you are looking at the wrong templates_c folder.

For security it is recommended that the templates_folder is moved outside of the main public structure.

See here

However, the default install puts one in the whmcs/templates folder which could be confusing and is probably the one you are looking at.

 

However, your problem does not stop there.

The facility to empty the template cache (which would have emptied the correct one) got broken in the upgrade to 5.2.13 so you have to empty the cache manually :(

 

Trevor

Link to comment
Share on other sites

I found the templates_c folder in the root directory above the public_html.. but clearing that still did not fix the issue. The search box says invalid token. Also when you go to submit an answer to a support ticket it says that there is already a response to that ticket when there isn't. When will WHMCS start testing this stuff before they post a patch? Everytime we patch something it breaks other things.

Link to comment
Share on other sites

Oddly, I have 2 sites running 5.2.13 and one has this issue, the other doesn't. I'm getting "invalid token" when using the search box at the top right of the header (in both blend and V4) and also when trying to insert a predfined reply in a support ticket. Emptied templates_c, cleared cache and still no luck.

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.

Guest
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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated