return FALSE; $r = well_tag_thread__update(array('id' => $id), $update); return $r; } function well_tag_thread_find($tagid, $page, $pagesize) { $arr = well_tag_thread__find(array('tagid' => $tagid), array('id' => -1), $page, $pagesize); return $arr; } function well_tag_thread_find_by_tid($tid, $page, $pagesize) { $arr = well_tag_thread__find(array('tid' => $tid), array(), $page, $pagesize); return $arr; } ?>Search results - 404 error after hitting enter
最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Search results - 404 error after hitting enter

programmeradmin0浏览0评论

So I am using a theme from envato and there's extremely poor response from the support team and I hate not trying things on my own.

On the website I am working on right now there's a problem with search page and search results.

When going into search and typing, you can clearly see that there are some matches (let's say "sport") but when hitting an enter/search button the page goes straight into 404 error.

I when you perform search on the 404 page, the search is available but the result page goes bollocks!

Any advice on how to work on it without access to search.php (blocked by the owner of the theme)

page address: / theme used: Kleo

So I am using a theme from envato and there's extremely poor response from the support team and I hate not trying things on my own.

On the website I am working on right now there's a problem with search page and search results.

When going into search and typing, you can clearly see that there are some matches (let's say "sport") but when hitting an enter/search button the page goes straight into 404 error.

I when you perform search on the 404 page, the search is available but the result page goes bollocks!

Any advice on how to work on it without access to search.php (blocked by the owner of the theme)

page address: https://youthtalkedinburgh.co.uk/ theme used: Kleo

Share Improve this question asked May 7, 2020 at 15:59 KlaudiaKlaudia 1
Add a comment  | 

1 Answer 1

Reset to default 0

It appears your search is going to https://youthtalkedinburgh.co.uk/?post_type[]=&s=sport instead of the (more proper) https://youthtalkedinburgh.co.uk/?s=sport, which works. Looking at the source, it appears your search form looks like this (simplified):

<form  ... >
<input type="hidden" name="post_type[]" value="">
<input name="s"... >
...
</form>

That <input type="hidden" name="post_type[]" value=""> input field doesn't seem to belong. I suspect either your theme or a plugin is inserting it, but I couldn't begin to guess which one.

You may still have to take this up with the theme's support team (or a plugin's support team), but at least you've got a place to start looking.

发布评论

评论列表(0)

  1. 暂无评论