Viewing 15 replies - 16 through 30 (of 39 total)
  • Plugin Author WPSolr free

    (@wpsolr)

    On those 6 documents, are there some which contain attachments ?

    Thread Starter oblamine

    (@oblamine)

    of course there is

    Plugin Author WPSolr free

    (@wpsolr)

    Please try this on your WP database:

    select ID, post_modified, post_parent, post_type from wp_posts
    where ( post_status='publish' OR post_status='inherit' ) AND post_type='attachment'

    It should detect your attachments

    Thread Starter oblamine

    (@oblamine)

    i have 13 attachments.
    here is a copy of table content:
    (10, ‘2015-02-27 12:23:45’, 8, ‘attachment’),
    (18, ‘2015-02-27 12:23:45’, 8, ‘attachment’),
    (19, ‘2015-02-27 12:23:45’, 8, ‘attachment’),
    (20, ‘2015-02-27 12:23:45’, 8, ‘attachment’),
    (21, ‘2015-02-27 12:23:45’, 8, ‘attachment’),
    (22, ‘2015-02-27 12:23:45’, 8, ‘attachment’),
    (23, ‘2015-02-25 16:04:11’, 13, ‘attachment’),
    (24, ‘2015-02-25 16:04:14’, 13, ‘attachment’),
    (25, ‘2015-02-27 12:23:45’, 8, ‘attachment’),
    (35, ‘2015-02-27 12:23:45’, 8, ‘attachment’),
    (40, ‘2015-02-27 12:23:45’, 0, ‘attachment’),
    (43, ‘2015-02-26 17:14:36’, 45, ‘attachment’),
    (44, ‘2015-02-27 10:18:49’, 45, ‘attachment’);

    Plugin Author WPSolr free

    (@wpsolr)

    Everything looks all right.

    Thread Starter oblamine

    (@oblamine)

    i have french version of wordpress

    Plugin Author WPSolr free

    (@wpsolr)

    The next step is debugging.

    If you’re willing to do so, I’ll tell you were to look in the code.

    Thread Starter oblamine

    (@oblamine)

    let’s go

    Plugin Author WPSolr free

    (@wpsolr)

    Let’s check that attachments are retrieved first.

    In class-wp-solr.php, function get_attachment_body: set a debug breakpoint in first line in the try section.

    Tell me what happens.

    Thread Starter oblamine

    (@oblamine)

    excuse me but how can i add this debug BreakPoint, i m using notepad++.

    Thread Starter oblamine

    (@oblamine)

    after running in debug mode, i add new page or load documents in the index?

    Plugin Author WPSolr free

    (@wpsolr)

    You’ll ned a php IDE with debug capability.

    Then, run a full re-index from WPSOLR.

    Thread Starter oblamine

    (@oblamine)

    some bad news :
    27/02/2015 16:37:25: Fatal error: Call to undefined function plugin_dir_path()
    27/02/2015 16:37:25: Xdebug server stopped C:\wamp\www\wordpress\wp-content\plugins\wpsolr-search-engine\class-wp-solr.phpScript break in file 3 at
    27/02/2015 16:37:25: Session “phpd” started: file:///C:/wamp/www/wordpress/wp-content/plugins/wpsolr-search-engine/class-wp-solr.php

    Thread Starter oblamine

    (@oblamine)

    public function get_attachment_body( $extractQuery, $post )
    both of extractQuery and post are null, is that normal?

    Plugin Author WPSolr free

    (@wpsolr)

    Is your debugger ok now ? can you debug and watch some variables values ?

Viewing 15 replies - 16 through 30 (of 39 total)
  • The topic ‘Problem indexing PDF’ is closed to new replies.