Jump to content

Recommended Posts

I recently had moved files from one server to another and now when I'm performing a 'Search' on a web page, the following error message appears:

--------------

Notice: Undefined index: query in E:\Inetpub\wwwroot\Intranet_Old\intranet\jha\jha_doc_results.php on line 62

 

Fatal error: Uncaught exception 'com_exception' with message 'Parameter 0: Type mismatch. ' in E:\Inetpub\wwwroot\Intranet_Old\intranet\jha\jha_doc_results.php:62 Stack trace: #0 E:\Inetpub\wwwroot\Intranet_Old\intranet\jha\jha_doc_results.php(62): unknown() #1 {main} thrown in E:\Inetpub\wwwroot\Intranet_Old\intranet\jha\jha_doc_results.php on line 62

--------------

Below is the code showing 'line 62'...

---

<?php

LIne 59 $Q = new COM("ixsso.Query");

Line 60 $util = new COM("ixsso.util");

Line 61 $Q->Catalog = "E:\GROUP\BIWeb\jha";

Line 62             $Q->Query = $_POST['query'];

$Q->Columns = "filename, rank, vpath, path, DocTitle, characterization, All";

$Q->SortBy = "rank[d]";

$Q->MaxRecords = 200;

$fileRS = $Q->CreateRecordSet("nonsequential");

if(!$fileRS->RecordCount == 0) {

$fileRS->MoveFirst();

}

while($i < $fileRS->RecordCount) {

?>

---

Not sure how to resolve this after searching the Forum for similar/related issues...

Your help is greatly appreciated...thanks in advance!

Link to comment
https://forums.phpfreaks.com/topic/169916-error-when-performing-a-search/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.