PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

error: Warning: unpack(): Type v: not enough input, need 2, have 0 in /home/micuk/pub

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

  • error: Warning: unpack(): Type v: not enough input, need 2, have 0 in /home/micuk/pub

    Its been working fine (PHP version). Now I get error message:

    Warning: unpack(): Type v: not enough input, need 2, have 0 in /home/micuk/public_html/search.php on line 1766


    Line 1766 in search.php is coded as:
    $pageinfo[$i] = unpack("vrecsize/Vdataoffset/CextraByte/Vfilesize/Vdatetime/cboost/Cfiletype", $bytes_buffer);


    Any ideas of how I fix this.

    Search engine is at: http://www.mic-uk.info

    mol

  • #2
    additional

    Page reports :
    Zoom config error: The zoom_pageinfo.zdat file is invalid or not up-to-date. Please make sure you have uploaded all files from the same indexing session.

    But I have uploaded the correct diles.

    Originally posted by molsmith View Post
    Its been working fine (PHP version). Now I get error message:

    Warning: unpack(): Type v: not enough input, need 2, have 0 in /home/micuk/public_html/search.php on line 1766


    Line 1766 in search.php is coded as:
    $pageinfo[$i] = unpack("vrecsize/Vdataoffset/CextraByte/Vfilesize/Vdatetime/cboost/Cfiletype", $bytes_buffer);


    Any ideas of how I fix this.

    Search engine is at: http://www.mic-uk.info

    mol

    Comment


    • #3
      I had a look at your site. I did a few searches, but didn't see any errors. So maybe you have already corrected the problem?

      In any case the most common cause for errors like this is corruption of the index. This can happen in many way.
      - Uploading files from two different indexing sessions.
      - Upload just some of the index files
      - Corruption during the FTP process as a result of not using BINARY mode in FTP.
      - Disk corruption
      - Creating an index for the CGI option, but then using the PHP script.

      Comment

      Working...
      X