03-25-2012, 04:35 AM
Lost in an Install Loop
|
Eric ...no I haven't
Originally I thought I needed to edit the conf.Settings.php file Other files I also edited were those that had references to "local host" because my server is not a "localhost" but has a specific "name" When things went off the rails I trashed the lot and began again just editing the settings.xml file ------ edit ----- I just ran check and get Parse error: syntax error, unexpected '{' in letodms/check.php on line 374 Also test.php and get Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /adodb/adodb.inc.php on line 465 FYI Quote: <server
The error message suggests a very fundamental problem, with syntax.
Looking at each of the errors.... check.php, line 374 is the beginning of a try/catch block. inc.ClassSettings, line 847 is the beginning of a try/catch block I suspect this will fail to parse on line 1. Code: <?php What version of PHP are you running? Code: <?php (03-25-2012, 04:49 AM)yerg Wrote: Parse error: syntax error, unexpected '{' in letodms/check.php on line 374
03-26-2012, 03:13 AM
(03-25-2012, 05:46 PM)EricM Wrote: What version of PHP are you running? Was running 5.3.10 Downgraded it to 5.2.17 /letodms/install/install.php now throws the following Code: Warning: include(/languages/English/lang.inc) [function.include]: failed to open stream: No such file or directory in /letodms/inc/inc.Language.php on line 41 Sheez this is like trying to extract hens teeth
03-26-2012, 07:42 PM
I'm running 5.3.10, and have no problem with the try/catch code. Did the sample code I posted fail for you? I don't know, but perhaps there's a way to enable/disable PHP exceptions, and it's just a config setting somewhere.
As far as the new problems with PHP 5.2.17, I have to poke around the sources a bit more to understand the expected paths. The code at line 41 is Code: include $settings->_rootDir . "languages/" . $settings->_language . "/lang.inc"; Is this a hosted server you are working on? (03-26-2012, 03:13 AM)yerg Wrote: Was running 5.3.10
03-27-2012, 12:23 AM
Yes on a hosted server
Code: <?php Exception caught: Throw this error My oh my something worked <LOL>
03-27-2012, 07:16 PM
So, try/catch is OK with 5.2.17, but not 5.3.10? If I were you, I'd submit a ticket with the host with the try/catch code and ask why it does not work with 5.3.10.
About the path errors... this is where you are stuck at this time... Code: Warning: include(/languages/English/lang.inc) [function.include]: failed to open stream: No such file or directory in /letodms/inc/inc.Language.php on line 41 This is bizarre because install.php should be checking the sanity of the paths in settings.xml. You have rootDir = "/nfs/c02/h04/mnt/24728/domains/domain.com/html/letodms/" in settings.xml? I think this is going to require a deeper dive into the code to sort it out.
03-29-2012, 03:11 AM
(03-27-2012, 07:16 PM)EricM Wrote: So, try/catch is OK with 5.2.17, but not 5.3.10? Dunno ... never tested try/catch with 5.3.10 I'm off for 18 days overseas so any action is a dead issue till I get back ![]() Will need to review my preparedness to continue with this issue upon return, given an inability to achieve any meaningful outcome or use of the code. Most disappointed. ![]()
06-24-2012, 09:03 PM
OK.... I finally got the thing to install... I downloaded all 3 packages and started installing from scratch.
Here are the findings. The titles on the installation page are misleading... but first things first: Assuming that you have downloaded the packages your Core and Lucene folders are in your root folder (DMS installation folder) 1. Put the latest adodb in the root folder of your LetoDMS installation (http://sourceforge.net/projects/adodb/files) 2. Name it "adodb" (watch the case as on *nix systems it is important) 3. Put Pear Log (http://pear.php.net/package/PEAR/download) in the same directory as Core and name it "Log" 4. Edit the \inc\inc.LogInit.php line 21 to read "include("Log/Log.php");" 5. Edit \Core\inc.DBAccess.php line 18 to have the FULL path - i.e. "require_once "/home/xxxx/public_html/LetoDMS/adodb/adodb.inc.php";" 6. Edit \conf\settings.xml to have all necessary paths but watch out.... some titles are misleading... i.e. in this case the AdoDB path WILL be the same as root of your DMS installation, then Core directory will actually be also a root directory since the script will be looking for the Core.php.... same goes for the Lucene directory... so these 2 paths will be the same as root... I thinks this is all I did... try running the installation again and see if your error_log will have any new hints... |
« Next Oldest | Next Newest »
|
Users browsing this thread: 1 Guest(s)