PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

Search result page not visible

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Search result page not visible

    Hi,

    I have integrated Zoom search with Drupal by following the tutorial at http://www.wrensoft.com/zoom/support/tutorial_drupal.html

    When I browse search.php file it works as suggested with the search form and results.

    However when I view page alias as described in the tutorial, page body only shows [zoomsearch] shortcode. Shortcode does not convert to the actual form and results just like in the search.php file.

    Can someone please help me on this?

    Thanks.

  • #2
    Can anyone please let me know if this (integrating search inside Drupal) is possible or not?

    Comment


    • #3
      Is the site accessible online and can you provide an URL to it? If you wish the address to remain private, you can email us the link.

      A couple things to check:
      -You have enabled the module within Drupal
      -The path to the search files is correct within the Drupal Zoom configuration
      -Try turning off other modules to see if they are interfering with Zoom
      -Check the page alias is correct. Also check that the page is of type "Plain text" and only has [zoomsearch] in the body.

      Comment


      • #4
        Hi Richard,

        Unfortunately this is our intranet which we don't have access from outside.

        I have enabled the module and path is correct to the search files. Also page is type of "Plain text" and only has [zoomsearch] as you mentioned. Please see below screenshots.

        Below are the settings inside Drupal module - https://gallery.mailchimp.com/f445c1...051.1437965849

        As you can see, zoom works when I visit search.php file inside search files (I have customised the look of the page to look similar to Drupal pages)- https://gallery.mailchimp.com/f445c1...051.1437965849

        But when I go to search page alias (this page is is built from Drupal) it doesn't work and just show [zoomsearch] in the body area - https://gallery.mailchimp.com/f445c1...051.1437965849

        Thanks

        Comment


        • #5
          What version of Drupal are you using? What other modules do you have installed or enabled? We will try to set up an environment similar to yours to see if we can reproduce the issue.

          If you have not tried, can try turning off other modules to see if they are interfering with Zoom.

          Comment


          • #6
            Hi,

            We use Drupal 7.41 and below are the main modules that are enabled.

            - backup_migrate - 7.x-3.0
            - ldap - 7.x-2.0-beta8
            - gmap - 7.x-2.9
            - backup_migrate - 7.x-3.0
            - honeypot - 7.x-1.17
            - google_analytics - 7.x-2.1
            - workbench - 7.x-1.2
            - workbench_access - 7.x-1.2
            - workbench_email - 7.x-3.4
            - workbench_moderation - 7.x-1.4

            Thanks

            Comment


            • #7
              I've setup Drupal 7.41 on a test server and played around with the various other modules you listed but cannot reproduce the issue. We are not avid users of Drupal or very familiar with all the different modules and settings that you have enabled on your site.

              Sorry, at this moment we cannot provide much further help as we cannot reproduce the issue. You can still use Zoom by linking to your search page.

              What we can tell you is that the Zoom Search Drupal module implements "hook_node_view()" function to display the search related contents when the view mode is "full" and the node's id is the same as the page specified at the time you set up Zoom in Drupal.

              If you are familiar with PHP, you can take a look/modify the function zoom_search_node_view(...) in zoom_search.module file. Perhaps a simple echo statement to see if the function is even being called when you land on the search page in Drupal.

              Comment


              • #8
                Hi Richard,

                Sorry for taking so long to reply.

                I have had a look at the code in zoom_search_node_view() function and it was previously calling the wrong page id.

                When I now do a search, page body [zoomsearch] shortcode is replaced with "Unauthorized".

                Can you please let me know what could be causing for this?

                Thanks

                Comment


                • #9
                  When I print variable "$res->data" it says "HTTP Error 401.2 - Unauthorized"

                  Comment


                  • #10
                    We have enabled "Windows Authentication" for our intranet but if I disable that and just enable "Anonymous", everything works fine and search results are displayed.

                    So It looks like in zoom module, drupal_http_request is not smart enough to cater windows authentication pages. How can I fix this issue? Please advice.

                    Comment


                    • #11
                      You will probably need to edit zoom_search_node_view() function. You will need to send your credentials with your request. I do not know much about drupal_http_request with authentication. From the API for drupal_http_request() and the following comment, you may be able to modify the submitted URL to pass in your username and password.

                      Not tested, but around line 71 edit to something like:
                      Code:
                       $zoom_url = $root . "username:password" . "@" . $search_url . '/search.php';
                      Alternatively if drupal_http_request() doesn't work, you can try using CURL, stub code is already in zoom_search_node_view() function, you will need to enable it and add additional curl_setopt options (e.g. CURLOPT_USERPWD).

                      Comment


                      • #12
                        I'm trying to integrate with Node/Meteor.js. Did you get it to work with Drupal?

                        Comment


                        • #13
                          Originally posted by marcin11 View Post
                          I'm trying to integrate with Node/Meteor.js. Did you get it to work with Drupal?
                          It isn't linked to Drupul support, but yes robot.txt files are supported (if you select the option in the user interface).

                          Comment

                          Working...
                          X