Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error after installation
#1
Question 
Hello,
I have this error message after instalation on Centos.

Code:
Warning: require_once(LetoDMS/Core.php): failed to open stream: No such file or directory in /var/www/html/letoDMS-3.4.0RC3/inc/inc.DBInit.php on line 24 Call Stack: 0.0013 405660 1. {main}() /var/www/html/letoDMS-3.4.0RC3/out/out.ViewFolder.php:0 0.0108 827916 2. include('/var/www/html/letoDMS-3.4.0RC3/inc/inc.DBInit.php') /var/www/html/letoDMS-3.4.0RC3/out/out.ViewFolder.php:23 Fatal error: require_once(): Failed opening required 'LetoDMS/Core.php' (include_path=':.:/usr/share/pear:/usr/share/php:/usr/local/share/php/') in /var/www/html/letoDMS-3.4.0RC3/inc/inc.DBInit.php on line 24 Call Stack: 0.0013 405660 1. {main}() /var/www/html/letoDMS-3.4.0RC3/out/out.ViewFolder.php:0 0.0108 827916 2. include('/var/www/html/letoDMS-3.4.0RC3/inc/inc.DBInit.php') /var/www/html/letoDMS-3.4.0RC3/out/out.ViewFolder.php:23

Does anybody can provide some help?
I appreciate any advice.

Kamil
Reply
#2
(11-13-2012, 03:35 PM)kamilk Wrote: Hello,
I have this error message after instalation on Centos.

Code:
Warning: require_once(LetoDMS/Core.php): failed to open stream: No such file or directory in /var/www/html/letoDMS-3.4.0RC3/inc/inc.DBInit.php on line 24 Call Stack: 0.0013 405660 1. {main}() /var/www/html/letoDMS-3.4.0RC3/out/out.ViewFolder.php:0 0.0108 827916 2. include('/var/www/html/letoDMS-3.4.0RC3/inc/inc.DBInit.php') /var/www/html/letoDMS-3.4.0RC3/out/out.ViewFolder.php:23 Fatal error: require_once(): Failed opening required 'LetoDMS/Core.php' (include_path=':.:/usr/share/pear:/usr/share/php:/usr/local/share/php/') in /var/www/html/letoDMS-3.4.0RC3/inc/inc.DBInit.php on line 24 Call Stack: 0.0013 405660 1. {main}() /var/www/html/letoDMS-3.4.0RC3/out/out.ViewFolder.php:0 0.0108 827916 2. include('/var/www/html/letoDMS-3.4.0RC3/inc/inc.DBInit.php') /var/www/html/letoDMS-3.4.0RC3/out/out.ViewFolder.php:23

Does anybody can provide some help?
I appreciate any advice.

Well, the error msg is pretty obvious. LetoDMS/Core.php cannot be found. Is it installed? Is the path to the Core set propperly in the settings?

Uwe
Reply
#3
[/quote]

Well, the error msg is pretty obvious. LetoDMS/Core.php cannot be found. Is it installed? Is the path to the Core set propperly in the settings?

Uwe
[/quote]

Thank you for your answer.
LetoDMS Core is in directory LetoDMS_Core-3.4.0RC3. I set path to this directory in installation process and I finished installation without any error message.

I try copy Core.php to LetoDMS directory, but nothing happened.

I try set path (var/www/html/LetoDMS_Core-3.4.0RC3) to Core in LetoDMS/conf/settings.xml - error again :-(

Kamil
Reply
#4
Can you provide a copy of your config file? Just remove user name and password out of the MySQL section, may make it easier to find the problem.

Thanks
Reply
#5

Well, the error msg is pretty obvious. LetoDMS/Core.php cannot be found. Is it installed? Is the path to the Core set propperly in the settings?

Uwe
[/quote]

Thank you for your answer.
LetoDMS Core is in directory LetoDMS_Core-3.4.0RC3. I set path to this directory in installation process and I finished installation without any error message.

I try copy Core.php to LetoDMS directory, but nothing happened.

I try set path (var/www/html/LetoDMS_Core-3.4.0RC3) to Core in LetoDMS/conf/settings.xml - error again :-(

Kamil
[/quote]

Put the Core.php and it's folders into LetoDMS root directory.
Reply
#6
(11-15-2012, 01:02 AM)kafran Wrote:
(11-14-2012, 01:25 PM)kamilk Wrote:
Quote:Well, the error msg is pretty obvious. LetoDMS/Core.php cannot be found. Is it installed? Is the path to the Core set propperly in the settings?

Uwe

Thank you for your answer.
LetoDMS Core is in directory LetoDMS_Core-3.4.0RC3. I set path to this directory in installation process and I finished installation without any error message.

I try copy Core.php to LetoDMS directory, but nothing happened.

I try set path (var/www/html/LetoDMS_Core-3.4.0RC3) to Core in LetoDMS/conf/settings.xml - error again :-(

Put the Core.php and it's folders into LetoDMS root directory.

The clean way is still to put LetoDMS_Core into its own directory and set the path in settings.xml.

Uwe
Reply
#7
(11-14-2012, 11:05 PM)Daniel Wrote: Can you provide a copy of your config file? Just remove user name and password out of the MySQL section, may make it easier to find the problem.

Thanks

Hello,
Sorry for my late reply. Here is the my config file settings.xml (I guess it was generated with installation tool).

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<site>
<!-- siteName: Name of site used in the page titles. Default: letoDMS
- footNote: Message to display at the bottom of every page
- printDisclaimer: if true the disclaimer message the lang.inc files will be print on the bottom of the page
- language: default language (name of a subfolder in folder "languages")
- theme: default style (name of a subfolder in folder "styles")
-->
<display
siteName = "letoDMS"
footNote = "letoDMS free document management system - www.letodms.com"
printDisclaimer="true"
language = "English"
theme = "clean"
>
</display>
<!-- strictFormCheck: Strict form checking. If set to true, then all fields in the form will be checked for a value. If set to false, then (most) comments and keyword fields become optional. Comments are always required when submitting a review or overriding document status.
- viewOnlineFileTypes: files with one of the following endings can be viewed online (USE ONLY LOWER CASE CHARACTERS)
- enableConverting: enable/disable converting of files
- enableEmail: enable/disable automatic email notification
- enableUsersView: enable/disable group and user view for all users
- enableFullSearch: false to don't use fulltext search
- enableFolderTree: false to don't show the folder tree
- expandFolderTree: 0 to start with tree hidden
- 1 to start with tree shown and first level expanded
- 2 to start with tree shown fully expanded
- stopWordsFile: path to stop word file for indexer
- sortUsersInList: how to sort users in lists ('fullname' or '' (default))
-->
<edition
strictFormCheck = "false"
viewOnlineFileTypes = ".txt;.text;.html;.htm;.pdf;.gif;.png;.jpg;.jpeg"
enableConverting = "true"
enableEmail = "true"
enableUsersView = "true"
enableFullSearch = "true"
enableFolderTree = "true"
expandFolderTree = "1"
stopWordsFile = ""
sortUsersInList = ""

>
</edition>
<!-- enableCalendar: enable/disable calendar
- calendarDefaultView: calendar default view ("w" for week,"m" for month,"y" for year)
- firstDayOfWeek: first day of the week (0=sunday, 6=saturday)
-->
<calendar
enableCalendar = "true"
calendarDefaultView = "y"
firstDayOfWeek = "0"
>
</calendar>
</site>

<system>
<!-- rootDir: Path to where letoDMS is located
- httpRoot: The relative path in the URL, after the domain part. Do not include the
- http:// prefix or the web host name. e.g. If the full URL is
- http://www.example.com/letodms/, set $_httpRoot = "/letodms/".
- If the URL is http://www.example.com/, set $_httpRoot = "/".
- contentDir: Where the uploaded files are stored (best to choose a directory that
- is not accessible through your web-server)
- stagingDir: Where partial file uploads are saved
- luceneDir: Where the lucene fulltext index iѕ saved
- logFileEnable: set false to disable log system
- logFileRotation: the log file rotation (h=hourly, d=daily, m=monthly)
-->
<server
rootDir = ""
httpRoot = "/letoDMS-3.4.0RC3/"
contentDir = ""
stagingDir = ""
luceneDir = ""
logFileEnable = "true"
logFileRotation = "d"
enableLargeFileUpload = "true"
partitionSize = "2000000"
>
</server>

<!-- enableGuestLogin: If you want anybody to login as guest, set the following line to true
- note: guest login should be used only in a trusted environment
- enablePasswordForgotten: Allow users to reset their password
- restricted: Restricted access: only allow users to log in if they have an entry in the local database (irrespective of successful authentication with LDAP).
- enableUserImage: enable users images
- disableSelfEdit: if true user cannot edit his own profile
- passwordStrength: minimum strength of password, set to 0 to disable
- passwordExpiration: number of days after password expires
- passwordHistory: number of remembered passwords
- passwordStrengthAlgorithm: algorithm used to calculate password strenght (simple or advanced)
- encryptionKey: arbitrary string used for creating identifiers
-->
<authentication
enableGuestLogin = "false"
enablePasswordForgotten = "false"
restricted = "true"
enableUserImage = "false"
disableSelfEdit = "false"
passwordStrength="0"
passwordExpiration="0"
passwordHistory="0"
passwordStrengthAlgorithm="simple"
loginFailure="0"
encryptionKey=""
>
<connectors>
<!-- ***** CONNECTOR LDAP *****
- enable: enable/disable connector
- type: type of connector ldap / AD
- host: hostname of the authentification server
- URIs are supported, e.g.: ldaps://ldap.host.com
- port: port of the authentification server
- baseDN: top level of the LDAP directory tree
-->
<connector
enable = "false"
type = "ldap"
host = "ldaps://ldap.host.com"
port = "389"
baseDN = ""
>
</connector>
<!-- ***** CONNECTOR Microsoft Active Directory *****
- enable: enable/disable connector
- type: type of connector ldap / AD
- host: hostname of the authentification server
- port: port of the authentification server
- baseDN: top level of the LDAP directory tree
- accountDomainName: sample: example.com
-->
<connector
enable = "false"
type = "AD"
host = "ldap.example.com"
port = "389"
baseDN = ""
accountDomainName = "example.com"
>
</connector>
</connectors>
</authentication>
<!-- ADOdbPath: Path to adodb. This is the directory containing the adodb directory
- dbDriver: DB-Driver used by adodb (see adodb-readme)
- dbHostname: DB-Server
- dbDatabase: database where the tables for letodms are stored (optional - see adodb-readme)
- dbUser: username for database-access
- dbPass: password for database-access
-->
<database
ADOdbPath = ""
dbDriver = "mysql"
dbHostname = "localhost"
dbDatabase = ""
dbUser = ""
dbPass = ""
>
</database>
<!-- smtpServer: SMTP Server hostname
- smtpPort: SMTP Server port
- smtpSendFrom: Send from
-->
<smtp
smtpServer = "localhost"
smtpPort = "25"
smtpSendFrom = "letodms@localhost"
/>
</system>


<advanced>
<!-- siteDefaultPage: Default page on login. Defaults to out/out.ViewFolder.php
- rootFolderID: ID of root-folder (mostly no need to change)
- titleDisplayHack: Workaround for page titles that go over more than 2 lines.
-->
<display
siteDefaultPage =""
rootFolderID = "1"
titleDisplayHack = "true"

>
</display>
<!-- guestID: ID of guest-user used when logged in as guest (mostly no need to change)
- adminIP: if enabled admin can login only by specified IP addres, leave empty to avoid the control
- NOTE: works only with local autentication (no LDAP)
-->
<authentication
guestID = "2"
adminIP = ""
>
</authentication>
<!-- enableAdminRevApp: false to don't list administrator as reviewer/approver
- versioningFileName: the name of the versioning info file created by the backup tool
-->
<edition
enableAdminRevApp = "false"
versioningFileName = "versioning_info.txt"
>
</edition>
<!-- enableNotificationAppRev: true to send notifation if a user is added as a reviewer or approver
-->
<notification
enableNotificationAppRev = "true"
>
</notification>
<!-- coreDir: Path to LetoDMS_Core (optional)
- luceneClassDir: Path to LetoDMS_Lucene (optional)
- contentOffsetDir: To work around limitations in the underlying file system, a new
- directory structure has been devised that exists within the content
- directory ($_contentDir). This requires a base directory from which
- to begin. Usually leave this to the default setting, 1048576, but can
- be any number or string that does not already exist within $_contentDir.
- maxDirID: Maximum number of sub-directories per parent directory. Default: 0, use 31998 (maximum number of dirs in ext3) for a multi level content directory.
- updateNotifyTime: users are notified about document-changes that took place within the last "updateNotifyTime" seconds
-->
<server
coreDir = ""
luceneClassDir = ""
contentOffsetDir = "1048576"
maxDirID = "0"
updateNotifyTime = "86400"
>
</server>
<converters>
<converter mimeType="application/pdf">
pdftotext -nopgbrk %s - | sed -e 's/ [a-zA-Z0-9.]\{1\} / /g' -e 's/[0-9.]//g'
</converter>
<converter mimeType="application/msword">
catdoc %s
</converter>
<converter mimeType="application/vnd.ms-excel">
ssconvert -T Gnumeric_stfConfusedtf_csv -S %s fd://1
</converter>
<converter mimeType="audio/mp3">
id3 -l -R %s | egrep '(Title|Artist|Album)' | sed 's/^[^:]*: //g'
</converter>
<converter mimeType="audio/mpeg">
id3 -l -R %s | egrep '(Title|Artist|Album)' | sed 's/^[^:]*: //g'
</converter>
<converter mimeType="text/plain">
cat %s
</converter>
</converters>

</advanced>

</configuration>
Reply
#8
(11-19-2012, 01:38 PM)kamilk Wrote:
(11-14-2012, 11:05 PM)Daniel Wrote: Can you provide a copy of your config file? Just remove user name and password out of the MySQL section, may make it easier to find the problem.

Thanks

<server
rootDir = ""
httpRoot = "/letoDMS-3.4.0RC3/"
contentDir = ""
stagingDir = ""
luceneDir = ""
logFileEnable = "true"
logFileRotation = "d"
enableLargeFileUpload = "true"
partitionSize = "2000000"
>
</server>

<database
ADOdbPath = ""
dbDriver = "mysql"
dbHostname = "localhost"
dbDatabase = ""
dbUser = ""
dbPass = ""
>
</database>

<server
coreDir = ""
luceneClassDir = ""
contentOffsetDir = "1048576"
maxDirID = "0"
updateNotifyTime = "86400"
>
</server>

You are missing most of the directories that need to be configured (rootDir, contentDir, ADOdbPath, coreDir, ...)

Uwe
Reply
#9
Hi,
I config Settings.xml (server and database sections) and I still get the error message.

<server
rootDir = "/var/www/html/letoDMS-3.4.0RC3/"
httpRoot = "/letoDMS-3.4.0RC3/"
contentDir = "/letoDMS-3.4.0RC3/data/"
stagingDir = "/letoDMS-3.4.0RC3/data/staging/"
luceneDir = "/LetoDMS_Lucene-1.1.0/"
logFileEnable = "true"
logFileRotation = "d"
enableLargeFileUpload = "true"
partitionSize = "2000000"
>
</server>

<database
ADOdbPath = "/var/www/html/letoDMS-3.4.0RC3/adodb/"
dbDriver = "mysql"
dbHostname = "localhost"
dbDatabase = "letodms"
dbUser = ""
dbPass = ""
>
</database>

Error message:
Warning: require_once(LetoDMS/Core.php): failed to open stream: No such file or directory in /var/www/html/letoDMS-3.4.0RC3/inc/inc.DBInit.php on line 24 Call Stack: 0.0002 330104 1. {main}() /var/www/html/letoDMS-3.4.0RC3/out/out.ViewFolder.php:0 0.0040 363088 2. include('/var/www/html/letoDMS-3.4.0RC3/inc/inc.DBInit.php') /var/www/html/letoDMS-3.4.0RC3/out/out.ViewFolder.php:23 Fatal error: require_once(): Failed opening required 'LetoDMS/Core.php' (include_path='/var/www/html/letoDMS-3.4.0RC3/adodb/:.:/usr/share/pear:/usr/share/php:/usr/local/share/php/') in /var/www/html/letoDMS-3.4.0RC3/inc/inc.DBInit.php on line 24 Call Stack: 0.0002 330104 1. {main}() /var/www/html/letoDMS-3.4.0RC3/out/out.ViewFolder.php:0 0.0040 363088 2. include('/var/www/html/letoDMS-3.4.0RC3/inc/inc.DBInit.php') /var/www/html/letoDMS-3.4.0RC3/out/out.ViewFolder.php:23



Any ideas?

Thanks in advance :-)
Kamil
Reply
#10
(11-19-2012, 05:16 PM)kamilk Wrote: Hi,
I config Settings.xml (server and database sections) and I still get the error message.

<server
rootDir = "/var/www/html/letoDMS-3.4.0RC3/"
httpRoot = "/letoDMS-3.4.0RC3/"
contentDir = "/letoDMS-3.4.0RC3/data/"
stagingDir = "/letoDMS-3.4.0RC3/data/staging/"
luceneDir = "/LetoDMS_Lucene-1.1.0/"
logFileEnable = "true"
logFileRotation = "d"
enableLargeFileUpload = "true"
partitionSize = "2000000"
>
</server>

Any ideas?

contentDir, stagingDir, luceneDir, coreDir are the directories on the disk. BTW, unless you protect /letoDMS-3.4.0RC3/data/ with a .htaccess file your installation is highly insecure. Just read the README.

Uwe
Reply


Forum Jump:


Users browsing this thread: