Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Lost in an Install Loop
#1
Sad 
Tried automatically installing and the checking system refuses to acknowledge all the php settings and pear components installed so I did a manual set up

Going to the site URL all I get is .....

Quote:Warning: require_once(LetoDMS/Core.php) [function.require-once]: failed to open stream: No such file or directory in /nfs/c02/h04/mnt/24728/domain.com/html/inc/inc.DBInit.php on line 27

Fatal error: require_once() [function.require]: Failed opening required 'LetoDMS/Core.php' (include_path='/home/24728/data/pear/php') in /nfs/c02/h04/mnt/24728/domain.com/html/inc/inc.DBInit.php on line 27

inc/inc.DBInit.php line 25 and 27 refer to Core.php

A file of that name doesn't exist in letoDMS-3.3.0 or any other install code.

What needs to be done?
Where are these files?

--- edit -----
Been doing some more work using check.php

I get the following error...
Quote:settings->_coreDir : Error

Current value : /nfs/c02/h04/mnt/24728/domainsdomain.com/html/Core
Suggestion value : /nfs/c02/h04/mnt/24728/domains/domainsdomain.com/html/Core
This is understandable as there is no Core folder on the server

Checked the tar extracted locally and nothing there either.

Yikes what have I missed?

Any thoughts anywhere?
Huh
Reply
#2
(03-18-2012, 11:18 AM)yerg Wrote: Tried automatically installing and the checking system refuses to acknowledge all the php settings and pear components installed so I did a manual set up

Going to the site URL all I get is .....

Quote:Warning: require_once(LetoDMS/Core.php) [function.require-once]: failed to open stream: No such file or directory in /nfs/c02/h04/mnt/24728/domain.com/html/inc/inc.DBInit.php on line 27

Fatal error: require_once() [function.require]: Failed opening required 'LetoDMS/Core.php' (include_path='/home/24728/data/pear/php') in /nfs/c02/h04/mnt/24728/domain.com/html/inc/inc.DBInit.php on line 27

inc/inc.DBInit.php line 25 and 27 refer to Core.php

A file of that name doesn't exist in letoDMS-3.3.0 or any other install code.

What needs to be done?
Where are these files?

--- edit -----
Been doing some more work using check.php

I get the following error...
Quote:settings->_coreDir : Error

Current value : /nfs/c02/h04/mnt/24728/domainsdomain.com/html/Core
Suggestion value : /nfs/c02/h04/mnt/24728/domains/domainsdomain.com/html/Core
This is understandable as there is no Core folder on the server

Checked the tar extracted locally and nothing there either.

Yikes what have I missed?

Any thoughts anywhere?
Huh

The files you are looking for are all in LetoDMS_Core.

Uwe
Reply
#3
I've installed heaps of php code from all sorts over the years but am finding this most frustrating

There is no consistency in file structure naming

Why cannot it be possible to have all the code in one .tar so that the inconsistencies don't occur.

Alternatively is there anywhere a completed file structure so that things work as they should?

Apologies if I offend but this has taken way beyond the norm to install and get functional
Reply
#4
Rainbow 
Ok so I figured I'd go back trash the lot and begin again

I have the two files LetoDMS_Core-3.3.0.tgz and LetoDMS-3.3.0.tar.gz
I extract them both into the root folder
Visiting domain.com/install/install.php gives the following errors

Quote:letoDMS Installation for version 3.3.0

Error
Pear package : Log : Not found
=> Install Pear package 'Log'

Warning
Pear package : HTTP_WebDAV_Server : Not found
=> Install Pear package 'HTTP_WebDAV_Server', if you intend to use the webdav interface

Warning
Zend Framework : Not found
=> Install Zend Framework, if you intend to use the full text search engine

Zend is installed server wide and Pear Log is installed and even though I don't wish to use Webdav or the search engine I check via SSH just in case. All is installed and functioning

So I now set up the database and run the sql and install the tables

Edit conf.Settings and settings.xml files

Browse to install directory and get

Quote:Warning: require_once(LetoDMS/Core.php) [function.require-once]: failed to open stream: No such file or directory in domain.com/folder/inc/inc.DBInit.php on line 27

Fatal error: require_once() [function.require]: Failed opening required 'LetoDMS/Core.php' (include_path='/home/24728/data/pear/php') in domain.com/folder/inc/inc.DBInit.php on line 27
Ok so I edit that file and replace LetoDMS/Core.php with the full path to the Core.php file

Now I get the error

Quote:Warning: require_once(path/domain.com/Core) [function.require-once]: failed to open stream: Success in path/domain.com/folder/inc/inc.DBInit.php on line 27

Fatal error: require_once() [function.require]: Failed opening required 'path/domain.com/Core' (include_path='/home/24728/data/pear/php') in path/domain.com/folder/inc/inc.DBInit.php on line 27

So again I place the full path in line 27

Now I get

Quote:Warning: require_once(path/domain.com/folder/Core/Core.php) [function.require-once]: failed to open stream: No such file or directory in path/domain.com/folder/inc/inc.DBInit.php on line 25

Fatal error: require_once() [function.require]: Failed opening required 'path/domain.com/folder/Core/Core.php' (include_path='/home/24728/data/pear/php') in path/domain.com/folder/inc/inc.DBInit.php on line 25

Ok inc.DBInit.php on line 25 is

Quote:require_once($settings->_coreDir.'/Core.php');

So I go back to the conf.Settings file and check line 61

Quote:var $_coreDir = "path/domain.com/folder/Core";
All is well

But now I'm stuck .... cannot move forward in any way
All I have is
Quote:Warning: require_once(path/domain.com/Core) [function.require-once]: failed to open stream: Success in path/domain.com/folder/inc/inc.DBInit.php on line 27

Fatal error: require_once() [function.require]: Failed opening required 'path/domain.com/Core' (include_path='/home/24728/data/pear/php') in path/domain.com/folder/inc/inc.DBInit.php on line 27

Obviously I'm a dumb sod with all these errors Sad
What haven't I done/not done that is causing this?

I really would love to get this happening but hell its hard at this end Confused

Reply
#5
Ran check.php and all is well Smile

Figured I may have a database miss-connection and ran this
Code:
<?php
include('adodb/adodb.inc.php');

$db = ADONewConnection($driver); # eg. 'mysql' or 'oci8'
$db->debug = true;
$db->Connect($server, $user, $password, $database);
$rs = $db->Execute('select * from some_small_table');
print "<pre>";
print_r($rs->GetRows());
print "</pre>";
?>
All is well. Smile

Went through all the config files and put full path to everything I could find.

Quote:Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /path/domain/html/folder/adodb/drivers/adodb-mysql.inc.php on line 365

Warning: join() [function.join]: Invalid arguments passed in /path/domain/html/folder/Core/inc.ClassDMS.php on line 223

Warning: include(languages/English/lang.inc) [function.include]: failed to open stream: No such file or directory in /path/domain/html/folder/inc/inc.Language.php on line 41

Warning: include() [function.include]: Failed opening 'languages/English/lang.inc' for inclusion (include_path='/home/24728/data/pear/php') in /path/domain/html/folder/inc/inc.Language.php on line 41

Warning: Cannot modify header information - headers already sent by (output started at /path/domain/html/folder/adodb/drivers/adodb-mysql.inc.php:365) in /path/domain/html/folder/inc/inc.Authentication.php on line 20

Any thoughts?
Huh
Reply
#6
Trying another server
Now this error
Quote:Warning: include(languages/English/lang.inc) [function.include]: failed to open stream: No such file or directory in /home/brett/public_html/folder/inc/inc.Language.php on line 41

Warning: include(languages/English/lang.inc) [function.include]: failed to open stream: No such file or directory in /home/brett/public_html/folder/inc/inc.Language.php on line 41

Warning: include() [function.include]: Failed opening 'languages/English/lang.inc' for inclusion (include_path='/home/brett/public_html/folder/adodb/:.:/usr/lib/php:/usr/local/lib/php') in /home/brett/public_html/folder/inc/inc.Language.php on line 41

Warning: Cannot modify header information - headers already sent by (output started at /home/brett/public_html/folder/inc/inc.Language.php:41) in /home/brett/public_html/folder/inc/inc.Authentication.php on line 20

Any thoughts or recomendations to contribute to my ravings would be gratefully appreciated.
Reply
#7
(03-20-2012, 12:42 PM)yerg Wrote: Trying another server
Now this error
Quote:Warning: include(languages/English/lang.inc) [function.include]: failed to open stream: No such file or directory in /home/brett/public_html/folder/inc/inc.Language.php on line 41

Warning: include(languages/English/lang.inc) [function.include]: failed to open stream: No such file or directory in /home/brett/public_html/folder/inc/inc.Language.php on line 41

Warning: include() [function.include]: Failed opening 'languages/English/lang.inc' for inclusion (include_path='/home/brett/public_html/folder/adodb/:.:/usr/lib/php:/usr/local/lib/php') in /home/brett/public_html/folder/inc/inc.Language.php on line 41

Warning: Cannot modify header information - headers already sent by (output started at /home/brett/public_html/folder/inc/inc.Language.php:41) in /home/brett/public_html/folder/inc/inc.Authentication.php on line 20

Any thoughts or recomendations to contribute to my ravings would be gratefully appreciated.

Check if the error msg make sense. If the missing files are not at the place where they should be, then search for them and set the right path in the configuration.

Uwe
Reply
#8
Quote:Warning: include() [function.include]: Failed opening 'languages/English/lang.inc' for inclusion (include_path='/home/brett/public_html/folder/adodb/:.:/usr/lib/php:/usr/local/lib/php') in /home/brett/public_html/folder/inc/inc.Language.php on line 41
path in the configuration.

languages/English/lang.inc is in the right place

The bit in bold I'm lost over.
It appears to be referencing things twice for some reason

Thoughts?

hard coded language path .. why not have got them all over the place Big Grin

Now a 404 with the following URL
Code:
http://www.serverhost.com/letodms/out/out.Login.php?referuri=%2F~brettdi1%2Ffolder%2Fout%2Fout.ViewFolder.php

yay at least I'm getting a real URL Cool

But what is this error Shy
Wow I'm progressing with brute force here

Now I've really hit the wall
Quote:Warning: include(Log.php) [function.include]: failed to open stream: No such file or directory in /home/brettdi1/public_html/folder/inc/inc.LogInit.php on line 21

Warning: include(Log.php) [function.include]: failed to open stream: No such file or directory in /home/brettdi1/public_html/folder/inc/inc.LogInit.php on line 21

Warning: include() [function.include]: Failed opening 'Log.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/brettdi1/public_html/folder/inc/inc.LogInit.php on line 21

Fatal error: Class 'Log' not found in /home/brettdi1/public_html/folder/inc/inc.LogInit.php on line 281

So I'm thinking it's looking for this file here .... /php/Log.php
Also that double up again in bold?
Now where is that coming from?
Reply
#9
I have to say your endurance for pain is beyond my imagination. I would have given up long ago!

I'm not catching your meaning about "doubling up" or "referencing twice", the paths are /usr/lib/php and /usr/LOCAL/lib/php. I don't necessarily see that as a problem...

It appears that you've done a significant amount of hardcoding for require_once. I'm suspecting that the include_path is not aligned with the paths where the modules are actually installed.

When I hit a similar problem with require_once, I added the missing paths by editing include_path in inc/inc.Settings.php.

Since we already see the paths that include() is searching, can you tell us the paths where you have installed:
  • letoDMS_3.3.0
  • letoDMS_Core3.3.0
  • letoDMS_Lucene3.3.0
  • PEAR LOG
  • ZEND


(03-20-2012, 04:46 PM)yerg Wrote:
Code:
Warning: include() [function.include]: Failed opening 'languages/English/lang.inc' for inclusion (include_path='[b]/home/brett/public_html/folder/adodb/:.:/usr/lib/php:/usr/local/lib/php[/b]') in /home/brett/public_html/folder/inc/inc.Language.php on line 41
path in the configuration.

languages/English/lang.inc is in the right place

The bit in bold I'm lost over.
It appears to be referencing things twice for some reason

Reply
#10
Thanks EricM
(03-21-2012, 02:05 AM)EricM Wrote:
  • letoDMS_3.3.0
  • letoDMS_Core3.3.0
  • letoDMS_Lucene3.3.0
  • PEAR LOG
  • ZEND
Yeah I'm told I'm too slow to walk away ... I call it a mental mountain and I'm gonna win
  • letoDMS_3.3.0 - var $_rootDir = "/home/brettdi1/public_html/domain.com/";
  • letoDMS_Core3.3.0 - var $_coreDir = "/home/brettdi1/public_html/domain.com/Core";
  • letoDMS_Lucene3.3.0 - not installed as I don't want that
  • PEAR LOG - /php/Log
  • ZEND- is configured to work ok but am told to ensure it functions need to add this to the php.ini but have no access to this. So what format to use to add to .htaccess or is this a no go?

The Zend issue is most strange - you can configure it but you don't have access to do so
Reply


Forum Jump:


Users browsing this thread: