Menu

maximum 2 characters in search box

2017-03-07
2017-03-07
  • Victoria Lomuntad

    Hi!

    I have a problem encounter, the OS I am using is Centos 5. I testing the search box above but it didn't work if more more than 2 characters. I check the error log of web server and this is what it says:

    PHP Parse error: syntax error, unexpected '[' in /opt/lampp/htdocs/seeddms/pear/vendor/sabre/uri/lib/functions.php on line 45

    Please help.

     
  • Daniel

    Daniel - 2017-03-07

    When you type into the search box, what do you see? Just some empty fields with a magnifier in front of it?

     
    • Victoria Lomuntad

      Yes! just empty fields with a magnifier in front...

       
  • Victoria Lomuntad

    Yes! just empty fields with a magnifier in front...

     
  • Daniel

    Daniel - 2017-03-16

    OK, that means it can't find Slim which is located within the pear/vendor folder. You may need to check if your pear folder is at the proper place and can be found by PHP.

     
    • Victoria Lomuntad

      Hi Daniel, Thanks for the replay.

      I checked the pear folder and the located of the slim is pear/vendor/slim/slim. Then my extra path in settings.xml is extraPath="/opt/lampp/htdocs/seeddms/pear/", so i assumed that it will access the slim.

      I tried also to find other pear folder on my lampp, and it located on /opt/lampp/lib/php/PEAR.
      In php.ini located at /opt/lampp/etc, then i uncomment the include_path and modify as
      include_path = "/opt/lampp/lib/php/PEAR". Then restart web server.

      But error occured.

      Warning: require_once(PEAR.php) [function.require-once]: failed to open stream: No such file or directory in /opt/lampp/htdocs/seeddms/pear/Mail.php on line 46

      Fatal error: require_once() [function.require]: Failed opening required 'PEAR.php' (include_path='/opt/lampp/htdocs/seeddms/:/opt/lampp/htdocs/seeddms/pear/:/opt/lampp/lib/php/PEAR/') in /opt/lampp/htdocs/seeddms/pear/Mail.php on line 46

      How come it didn't work?

       

      Last edit: Victoria Lomuntad 2017-03-17
  • Daniel

    Daniel - 2017-03-18

    Hi Victoria,

    PHP include path may already have been configured before you changed the setting. Best to check this if you create a phpinfo file and check for the include path setting in there.

    If you don't want to alter the configuration again you may use the Extra PHP include Path setting in SeedDMS. This can be found in settings -> advanced. There you can specify your custom path (e.g. the one you mentioned) and give it another try.

     

Log in to post a comment.

MongoDB Logo MongoDB