WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] My search page is messed up (9 posts)

  1. Caleb Withers
    Member
    Posted 3 years ago #

    My search page is all messed up for some queries, you can see it in action at:
    http://djsilkworm.com/?s=ocarina or http://djsilkworm.com/?s=poll+results

    Some searches don't however:
    http://djsilkworm.com/?s=remix

    Any ideas why this might be happening?

  2. Emil Uzelac
    Theme Review Admin
    Posted 3 years ago #

    I would start with:

    <script type="text/javascript" src="http://djsilkworm.com/wp-content/plugins/scripts-gzip/gzip.php?js=wp-content%2Fplugins%2Faudio-player%2Fassets%2Faudio-player.js%3Fver%3D2.0.4.1%2Cwp-content%2Fplugins%2Fwp-cumulus%2Fswfobject.js%2Cwp-content%2Fplugins%2Fwp-polls%2Fpolls-js.js%3Fver%3D2.50%2Cwp-content%2Fthemes%2Fmystique%2Fjs%2Fjquery.mystique.js%3Fver%3D2.4.2%2Cwp-content%2Fplugins%2Fsexybookmarks%2Fjs%2Fsexy-bookmarks-public.js%3Fver%3D3.2.6"></script>

    This is generated by /scripts-gzip/ plugin. I can name few things wrong with this "picture" and starting by the wrong place where the plugin is inserting scripts. Deactivate this plugin and try again.

    There's also something else as well. If for instance I don't type any search and simply hit on go button where "Search" text is already in the field, this page comes up http://djsilkworm.com/?s=Search where you have the same problem.

    Now on "ocarina" example do you see the printed message in top left corner as well?

    // search search-no-results col-2-right fixed browser-chrome">

    Another thing, try looking at the view source on regular pages and go back to problem pages, you will see that the plugin "destroys" every possible link around.

  3. Caleb Withers
    Member
    Posted 3 years ago #

    I've disabled the plugin, the problem's still there :/

  4. Emil Uzelac
    Theme Review Admin
    Posted 3 years ago #

    let me check now :)

  5. Emil Uzelac
    Theme Review Admin
    Posted 3 years ago #

    Now your JS files look in order, however whatever detects the browsers in theme doesn't load properly.

    For example take a look at this class in your body, javascripts is being loaded in.

    <body class="   <script type="text/javascript">

    it should be i.e.

    <body class="search search-results col-2-right fixed browser-ie">

    http://wordpress.pastebin.com/Tnjuee1Q

    It's either one of other plugins in conflict, or gzip needs to be deleted completely and/or this is theme bug. From my end I can show you where to look for the issue.

  6. Caleb Withers
    Member
    Posted 3 years ago #

    I've disabled all the plugins I think could possibly cause it, any ideas apart from disabling all the plugins to check or trying a different theme?

  7. Emil Uzelac
    Theme Review Admin
    Posted 3 years ago #

    Was there an update to theme? if yes try that first. Honestly I am not sure what else you can try to this. The last suggestion is switching back to default WordPress theme and try the search feature from there. If all is ok, than the theme is buggy.

    We ruled out all possible, plugins and JS. I do see in jquery.mystique.js that there's something that does browser detection. However I can't debug it from here.

  8. Caleb Withers
    Member
    Posted 3 years ago #

    I've done a bit of searching, and it seems that Mystique had issues with embedded code in search results due to some poorly coded highlighting. I'll probably go with an alternative search plugin for now, but thanks for your help :)

  9. Caleb Withers
    Member
    Posted 3 years ago #

    I've done some investigating, and discovered what causes the problem, so hopefully this will be of use to someone to narrow down what the problem is, the error occurs when searching for a word or phrase that occurs right at the start of a longish (sorry for not being able to be more specific) post title, that appears as the most relevant result. For example,
    http://djsilkworm.com/?s=poll
    http://djsilkworm.com/?s=six+outstanding
    Any ideas why this would be? I've done some searching, and apparently the search page of Mystique is less than ideally coded.
    My search.php is at http://codepad.org/GnxkvUsF if you want to have a look.

Topic Closed

This topic has been closed to new replies.

About this Topic