• Resolved 1g0r

    (@1g0r)


    Hi,

    I’m opening this thread after a discussion on the live chat on the site WPSOLR.

    When I configure the WPSOLR plugin for the connection to the Solr server installed locally (localhost), I get a 502 error, with a statement about the proxy of my institution. This means that curl is trying to make a request outside of the local network and is blocked by the institution’s proxy.

    Igor

    https://www.ads-software.com/plugins/wpsolr-search-engine/

Viewing 15 replies - 1 through 15 (of 31 total)
  • Plugin Author WPSolr free

    (@wpsolr)

    Can you test out the following fix ?

    Line 364 of file wp-content/plugins/wpsolr-search-engine/classes/solr/wpsolr-search-solr-client.php

    replace

    $config = array(
    endpoint' => array(
    				'localhost1' => array(
    					'scheme'   => $solr_index['index_protocol'],
    					'host'     => $solr_index['index_host'],
    					'username' => $solr_index['index_key'],
    					'password' => $solr_index['index_secret'],
    					'port'     => $solr_index['index_port'],
    					'path'     => $solr_index['index_path'],
    					'timeout'  => $timeout,
    				)
    			)
    		);

    with

    $config = array(
    			'adapteroptions' => array(
    				'proxy' => null,
    			),
    			'endpoint'       => array(
    				'localhost1' => array(
    					'scheme'   => $solr_index['index_protocol'],
    					'host'     => $solr_index['index_host'],
    					'username' => $solr_index['index_key'],
    					'password' => $solr_index['index_secret'],
    					'port'     => $solr_index['index_port'],
    					'path'     => $solr_index['index_path'],
    					'timeout'  => $timeout,
    				)
    			)
    		);

    Thread Starter 1g0r

    (@1g0r)

    I’m sorry, but I can’t find any 'endpoint' => array( in wpsolr-search-solr-client.php…

    Plugin Author WPSolr free

    (@wpsolr)

    Thread Starter 1g0r

    (@1g0r)

    It’s the 7.4 downloaded from the www.ads-software.com repository.

    Plugin Author WPSolr free

    (@wpsolr)

    My mistake.

    It’s wp-content/plugins/wpsolr-search-engine/classes/extensions/indexes/option-indexes.php

    Thread Starter 1g0r

    (@1g0r)

    Ok, found it ! I’ll tell you when I’m done.

    Thread Starter 1g0r

    (@1g0r)

    Unfortunately I still have the same error. But still, thank you for your help.

    Plugin Author WPSolr free

    (@wpsolr)

    You mentioned 2 Solr instances, for Drupal and WordPress. And also that the Drupal/Solr is working fine.

    What are the respective Solr ports ?

    What is your OS ?

    Thread Starter 1g0r

    (@1g0r)

    The server is running Ubuntu 12.04.

    For the ports, it’s a different one for each installation. For drupal, I’m using 9026 and for wp, it’s 8926. And other students are using other ports. All theses ports are open, but only locally.

    On the local network, I can reach the web admin of each of these solr installation.

    I’m using the 4.10 version of solr.

    Plugin Author WPSolr free

    (@wpsolr)

    Can you switch WPSOLR port to Drupal’s (9026) ?

    Just change the port, and save the index configuration. WPSOLR will test the connexion.

    Thread Starter 1g0r

    (@1g0r)

    I did, but I got the same error.

    Plugin Author WPSolr free

    (@wpsolr)

    Which Drupal Solr module do you use ?

    Thread Starter 1g0r

    (@1g0r)

    Plugin Author WPSolr free

    (@wpsolr)

    Do you use https ?

    Thread Starter 1g0r

    (@1g0r)

    No, we’re in http.

Viewing 15 replies - 1 through 15 (of 31 total)
  • The topic ‘How curl is connecting the plugin to the solr server ?’ is closed to new replies.