Menu

Query fails, upload signals problem

Support
2005-10-05
2013-03-22
  • Nobody/Anonymous

    On any query request I am getting this:

    "Fatal error: Cannot redeclare createfindnav() (previously declared in /srv/www/htdocs/doc/modules/center/find/function.php:4) in /srv/www/htdocs/doc/modules/common/search_function.inc.php on line 1172".

    This is most anoying, since I have to make it work by tomorrow afternoon.

    Also, when I try to upload a file, the upload works, but I receive this message:

    "Warning: Invalid argument supplied for foreach() in /srv/www/htdocs/doc/modules/center/file/upload/display.php on line 25".

    Any help? I am running ver 0.53.3 on Suse 9.3

    Otherwise it is a great program.

    Rade

     
    • Nobody/Anonymous

      I deleted all lines that pertain to createfindnav() declaration in search_function.inc.php. After that, search worsk, giving the following error message:

      "Warning: Invalid argument supplied for foreach() in /srv/www/htdocs/doc/modules/center/find/search_form.inc.php on line 53".

      Search would not accept wildcards, but otherwise works regularly.

      Any idea?

      Rade

       
    • Eric Lawman

      Eric Lawman - 2005-10-07

      Did you by chance overwrite your old installation with a newer one?  The find/function.php file doesn't exist in 0.53.3.  I'd delete your modules directory and recopy from a fresh tarball.

      Sorry for the late reply.

      Eric.

       
    • Nobody/Anonymous

      I started again with fresh installation, but now I am getting following errors:

      1. on Search: "Warning: Invalid argument supplied for foreach() in /srv/www/htdocs/doc/modules/center/find/search_form.inc.php on line 53"

      2. On Upload: "Warning: Invalid argument supplied for foreach() in /srv/www/htdocs/doc/modules/center/file/upload/display.php on line 25"

      I suspect that it has something to do with my php.ini and Apache settings. Could you tell me is there anything special that I should be aware of? Also, what version of PHP you recommend?

      Overal, you made a great and very usefull program, and I am realy annoyed that I cannot make it work. I will try with other Linux distro (now I am running SuSe 9.3 default installation), in the hope that it will work. Also, I will send you Serbian latin localization.  If you can tell me that it will work with cyrillic coding, I will prepare that one too.

      Radomir Boskovic

       
    • Nobody/Anonymous

      This is related to keyword definitions.  For some reason DocMGR thinks you have keywords, but isn't loading them properly.  What does your config/keywords.xml file look like?

      Eric.

       
    • Nobody/Anonymous

      Eric, you nailed it! I did not modify keywords.xml file and REMOVE ME lines were causing the problem. Probably I didn't read installation notes carefully, and probably there was no notes on modifying xml file.

      Both problem maniofestation disapeared: upload works, search works.

      Again, thank you.

      Best regards,

      radomir Boskovic

       
    • Nobody/Anonymous

      Eric, sorry, but after some testing I have still one problem left: Search still reports "Warning: pg_query(): supplied argument is not a valid PostgreSQL link resource in /srv/www/htdocs/doc/include/postgresql.inc.php on line 53". Interesting thing is that this message is not present when the search returns no data, but when there is a hit on  "normal" or "keyword" search. Found file is displayed, but with. a.m. message on the top of the screen.

      My keywords.xml file is like this:

      BEGIN keywords.xml
      -------------------------------
      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      <data>

          <keyword>
          <title>Keyword 1</title>
          <name>field1</name>
          <type>text</type>
          </keyword>

          <keyword>
          <title>Keyword 2</title>
          <name>field2</name>
          <type>text</type>
          </keyword>

          <keyword>
          <title>Keyword 3</title>
          <name>field3</name>
          <type>text</type>
          </keyword>

          <keyword>
          <title>Keyword 4</title>
          <name>field4</name>
          <type>text</type>
          </keyword>

          <keyword>
          <title>Keyword 5</title>
          <name>field5</name>
          <type>text</type>
          </keyword>

          <keyword>
          <title>Keyword 6</title>
          <name>field6</name>
          <type>text</type>
          </keyword>
         
      </data>

      -------------------------------------
      END keywords.xml

      Radomir Boskovic

       
      • Nobody/Anonymous

        Could you set DEV_MODE=1 in your config.inc.php file, then run the search again?  When you see the error, you should see the query that's being run when you get the error.  Just post that query to here.

        Thanks.

        Eric.

         
    • Nobody/Anonymous

      This is the response I got:

      "Warning: pg_query(): supplied argument is not a valid PostgreSQL link resource in /srv/www/htdocs/doc/include/postgresql.inc.php on line 53
      ERROR_SQL=SELECT id,name,parent_id,object_type FROM dm_view_collections".

      Sorry to bother you on Saturday night.

      Radomir Boskovic

       
    • Eric Lawman

      Eric Lawman - 2005-10-08

      Not a problem.  There is a very specific circumstance which is triggering this problem, I'm just not quite sure what that is!.  I created a diff for search_function.inc.php, and put it in patches.  Apply that to your search_function.inc.php file  (copy the file to modules/common/ and type "patch -p0< search_function.diff" (0.53.3 only) and see how that treats you.

      Sorry for the troubles and the slow reply.

      Eric.

       
    • Nobody/Anonymous

      I tried the pach this morning and the problematic message is gone. I will experiment today and tomorrow and see if anything pops up.

      It would be interesting to try the program under different distros and see what is happening. I am presently dowloading SuSe 10, and will try it under RedHat 9.0 too, but I cannot promise how soon it will be.

      If anything goes well, I will advice my company to devote one machine to the role of document and groupware server, using your program and eGroupware. I will also improve my translation to Serbian, as I saw that several messages are still in English - probably comming from other modules outside lang directory.

      I will inform you of the resuts.

      Best regards,
      Radomir Boskovic

       

Log in to post a comment.

MongoDB Logo MongoDB