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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
When you type into the search box, what do you see? Just some empty fields with a magnifier in front of it?
Yes! just empty fields with a magnifier in front...
Yes! just empty fields with a magnifier in front...
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.
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
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.