Parse error: parse error, unexpected '/' - can anyone see the error in this code?
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Parse error: parse error, unexpected '/' - can anyone see the error in this code?
Sorry this is probably a very stupid question but I've been trying for about 3 hours to install xrms - an open source CRM. I uploaded all the files but before installing you must edit this particular file to the correct path. I keep getting this error: Parse error: parse error, unexpected '/' in /etc...
The particular folder they ask for is in /xrms/include
I must be missing something... Here is the code:
// This path should be the full filesystem path to the include directory for XRMS
// include trailing slash in path $include_directory = xrms/include/;
// Report all errors except E_NOTICE
// This is the default value set in php.ini
I have tried /xrms/include/; /xrms/include; etc... Still no luck. Any tips really appreciated!
Sorry this is probably a very stupid question but I've been trying for about 3 hours to install xrms - an open source CRM. I uploaded all the files but before installing you must edit this particular file to the correct path. I keep getting this error: Parse error: parse error, unexpected '/' in /etc...
The particular folder they ask for is in /xrms/include
I must be missing something... Here is the code:
// This path should be the full filesystem path to the include directory for XRMS
// include trailing slash in path $include_directory = xrms/include/;
// Report all errors except E_NOTICE
// This is the default value set in php.ini
I have tried /xrms/include/; /xrms/include; etc... Still no luck. Any tips really appreciated!
Well, you definitely need quotes.
The default:
Code:
// This path should be the full filesystem path to the include directory for XRMS
// include trailing slash in path
$include_directory = "/var/www/html/xrms/include/";
would be true for most stand-alone linux installations where the apache webroot was "/var/www/html/"
For a hosted server account, you will either need to log into your shell account and type
Code:
pwd
or you will need to call your hosting provider. This is a filesystem path, so it's not relative to the webroot.
Thanks for the reply. I called them up and got the full path, but still doesn't work. I get the same error message:
"The include directory variable has not been set correctly.
It is currently set to '/hsphere/local/home/ivancastro/tuilingua.com/xrms/include/', which does not exist.
Please open the include-locations.inc file which is located at the top level of the xrms installation. Change the value of the $include_directory variable to the correct path.
Then run this installation again."
I'm sure the directory exists, I can see it in the web shell and in my filezilla
I'm starting to think that this is happening because of a compatibility issue between the php site I'm trying to install and the php version installed in the server. Could that be the problem?
Hi, you might have solved the problem yourself by now. I installed xrms on a OpenBSD 4.3 and ran into the same problem. So this might help others who want to install xrms on Linux/Unix Apache Mysql Php Environment. As a newbie I didn't know what chrooted means. This is important since Apache is chrooted. In other words the Apache root folder is different from the root folder of the Linux/Unix machine. If /var/www/ is the root folder of my Apache server, this path is invisible to XRMS. XRMS only "sees" what is inside. Apparently when XRMS is asking for the full filesystem path this starts in the root folder of you Apache server:
// This path should be the full filesystem path [OF YOUR APACHE SERVER] to the include directory for XRMS
// include trailing slash in path
$include_directory = "/html/xrms/include/";
Last edited by P. Crespi; 06-07-2008 at 03:35 AM.
Reason: typing mistake
i am using Lunar pages, as the hosting company, and they solved this problem for me.
_______________________________________________________________
Seems like during install you have supplied the wrong info regarding your install and the following changes must be made :
the vars.php file : /home/iplus3/public_html/projects/lead/xrms/include/vars.php
//where is the application in the filesystem (no trailing slash)
$xrms_file_root = "domainname/projects/lead/xrms";
with :
//where is the application in the filesystem (no trailing slash)
$xrms_file_root = "/home/iplus3/public_html/projects/lead/xrms";
and the includes path : /home/iplus3/public_html/projects/lead/xrms/include-locations.inc
however, after moving to the next step, i get a mysql error
Catchable fatal error: Object of class ADODB_mysql could not be converted to string in /home/iplus3/public_html/projects/lead/xrms/include/utils-misc.php on line 1752
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.