• Resolved henkboersema

    (@henkboersema)


    I’m having two problems with the Relevanssi plugin.

    First problem: I can’t seem to index pages, the indexing of the posts did work.
    I get stuck at a blank page if I try to index only pages or pages and posts.

    Second problem: If I search my website for a certain term Relevanssi brings me to the correct post, but after 1 second it jumps to a different page showing only the image of one of the posts from the previous page…:s The image is a javascript.

    Can somebody help me with this?

    Thanks in advance!

Viewing 15 replies - 1 through 15 (of 24 total)
  • Strange problems. Relevanssi can definitely index pages, so this is about something else. Are you perhaps using another plugin that might cause a conflict here? Blank pages when indexing sound like a plugin conflict to me.

    Your second problem sounds even stranger. Frankly I’ve got no idea what could cause this. Is there something special in that post? Is it caused by the term, or does the same thing happen with the same posts but different terms?

    Could you point me to the site and tell me how the problem is reproduced, I’d like to see it myself. If you want to be private, you can contact me at mikko at mikkosaari.fi.

    Thread Starter henkboersema

    (@henkboersema)

    Thanks for your quick response,

    it could be another plugin causing the conflict but I’ve got no idea which one. I’m using the following plugins:
    -Contact Form by ContactMe.com
    -Customized Recent Comments
    -Display widgets
    -Flexi Pages Widget
    -GD Star Rating
    -Google XML Sitemaps
    -JJ NextGen Image List
    -JJ NextGen JQuery Carousel
    -NextGEN Gallery
    -NoSpamNX
    -Platinum SEO Pack
    -Relevanssi
    -Strx Zurb CSS3 Awesome Buttons
    -WP Hide Pages

    About the second problem, you can have a look for yourself: https://www.verzekeraars-vergelijken.nl

    The site is in dutch, but if you search for: aansprakelijkheidsverzekering

    you will notice my problem.

    Greetings

    Lovely word that ‘aansprakelijkheidsverzekering’. Almost as good as ‘ep?j?rjestelm?llisyydett?myydell?ns?k??n’.

    I tried searching with that word and got no funny behaviour, just regular search results. Could it be something local on your computer, or does it only happen to users who are logged in?

    I’ve used several of your plugins with Relevanssi and nothing stands out… Does any of those plugins use shortcodes that would appear on pages alone and not on posts? If so, try deactivating that plugin and indexing then.

    Thread Starter henkboersema

    (@henkboersema)

    I noticed that the “image” problem only occurs when i’m using Chrome(google). With IE noting strange happens.

    The plugin tip helped! The GD star rating plugin conflicted, I deactivated it and indexing went just fine afterwards. Thanks you!

    Good, and good to know there’s a conflict with GD Star Rating.

    I tried the search with Chrome (OS X), and nothing odd happens.

    I’m having the same problem (with a twist).
    Indexing used to bring up a blank page, but since I last updated, I now get a statement telling me Indexing Complete, even though the page has

    Documents in the index:
    Highest post ID indexed:

    Nothing seems to get indexed.
    The Dashboard still says that I need to build my index.
    I played around with the options, to see if I could do anything allowing the plugin to go through and index but nothing I tried helped in any way.
    FYI, it’s on https://www.actinbiotech.com/

    What other plugins are active? Indexing works for me in 2.7.4, so it’s not a general bug, but something local. Hard to say what’s causing the problem, if it isn’t a plugin conflict.

    I have a bunch indeed. I need to check on that.
    – Akismet
    – Auto-hyperlink URLs
    – bdp-comments
    – Contact Form 7
    – Get recent comments
    – Google Analyticator
    – Obfuscate e-mail
    – Optimize DB
    – Post-Plugin Library
    – reCAPTCHA
    – Relevanssi (obviously)
    – ShareThis
    – Similar Posts

    (later)
    I deactivated everything but Relevanssi and she I select Build Index, I get to the blank page I used to see before.
    Going back to the setting page still mentions that 0 documents are indexed.

    Corentin

    Can you access server error logs? There might be a clue of what’s causing the problem. Lack of mbstring functions used to be a problem, but Relevanssi should warn about that these days.

    I can’t access the server logs (very) unfortunately, but I made tests with another blog on the same server and didn’t experience any issue, so I”m not so sure it’s a server issue :-\

    Corentin

    Well, without more information it’s hard to say. There’s something that’s breaking Relevanssi, and it’s either something general or in the very first document Relevanssi tries to index.

    I’m having a similar issue. I just installed the plugin on WordPress 3.1 on our development site.

    I click to Build the Index and Relevanssi says, “Indexing complete!” Nothing is listed for the State of the Index.

    State of the Index

    Documents in the index:
    Highest post ID indexed:

    Any search I try comes up with 0 results. I’ve tried deactivating every plugin outside of Relevanssi. Same issue. We are using a TwentyTen Child Theme, so I tried removing all of the search files in our child theme (so it just used TwentyTen’s theme) and same issue.

    Some things you can try… On line 1815 or so is this:

    foreach ($content as $post) {
    		$n += relevanssi_index_doc($post, false, $custom_fields);
    		// n calculates the number of insert queries
    	}

    Change it to

    foreach ($content as $post) {
    var_dump($post->ID);
    		$n += relevanssi_index_doc($post, false, $custom_fields);
    		// n calculates the number of insert queries
    	}

    Do you get a list of all your post ID’s?

    Yes, I received a list of post IDs.

    Ok, so the indexing goes through documents. Would you say the list has all your posts and pages or not?

    Next step in debugging this would be to put some var_dump()s in relevanssi_index_doc() to see what happens in the indexing of a single document.

    For example, find this in relevanssi_index_doc():

    $wpdb->query("INSERT INTO $relevanssi_table (doc, term, tf, title)
    			VALUES ($post->ID, '$content', $count, 0)");

    and change it to

    echo $wpdb->query("INSERT INTO $relevanssi_table (doc, term, tf, title)
    			VALUES ($post->ID, '$content', $count, 0)") . '<br>';

    Possible results:
    – nothing: posts are not processed properly
    – FALSE: saving data to the database gives an error
    – 1: term is stored properly in the index

    I’d also take a look at the database – are the database tables present? Maybe they’re missing, for some reason.

Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘Relevanssi: index and imageproblem’ is closed to new replies.