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! |
Try this:
$include_directory = "xrms/include/"; |
I've tried all combinations with " but still doesn't work...
|
did you actually have a /xrms/include/ directory. Maybe you need to create it first. Just a guess
|
Quote:
The default: Code:
// This path should be the full filesystem path to the include directory for XRMS For a hosted server account, you will either need to log into your shell account and type Code:
pwd Regards, - Brian |
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/"; |
xrms setup
hi,
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 $include_directory = "/html/xrms/include/"; with : $include_directory = "/home/iplus3/public_html/projects/lead/xrms/include/"; _______________________________________________________________ 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 so am waiting for their feed back on this |
All times are GMT -5. The time now is 12:19 PM. |