Script is having difficulty finding hesk_settings.inc.php

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
mcrawford
Posts: 4
Joined: Fri May 27, 2011 5:15 am

Script is having difficulty finding hesk_settings.inc.php

Post by mcrawford »

Script URL: No longer needed
Version of script: 2.2
Hosting company: Storm (Liquidweb)
URL of phpinfo.php: No longer needed
URL of session_test.php: No longer needed
What terms did you try when SEARCHING for a solution:
failed to open stream, require, Fatal error

Write your message below:

This is the error I receive when I try to access admin/index.php
"Warning: require(../hesk_settings.inc.php) [function.require]: failed to open stream: No such file or directory in /home/onesourc/test/hesk/admin/index.php on line 39

Fatal error: require() [function.require]: Failed opening required '../hesk_settings.inc.php' (include_path='.:/usr/local/lib/php:/usr/local/Zend/lib/ZendFramework-1.11.6/library') in /home/onesourc/test/hesk/admin/index.php on line 39"

It looks to be that the index.php is having issues finding the hesk_settings.inc.php. I'm unsure as to how to get this working. I've tried to set the path manually but that would require changing every single file and then it doesn't end up working anyhow.
Last edited by mcrawford on Sat May 28, 2011 6:50 pm, edited 1 time in total.
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Script is having difficulty finding hesk_settings.inc.ph

Post by Klemen »

It looks like your host has some very strange PHP setup - something I haven't seen before. The PHP files seem to be redirected internally somehow and they don't recognize the "../" path.

From what it seems you will indeed need to manually edit paths in files.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
mcrawford
Posts: 4
Joined: Fri May 27, 2011 5:15 am

Re: Script is having difficulty finding hesk_settings.inc.ph

Post by mcrawford »

Ahh ok that's what I was afraid of. I wanted to make sure I wasn't crazy before I went down that path. I was able to successfully set it up locally with xampp though.

I'm going to contact our host providers and the company that originally created our website to see if I can track down the issue. If I'm able to get it resolved I'll come back and update this thread.

Thank you for your response!
mcrawford
Posts: 4
Joined: Fri May 27, 2011 5:15 am

Re: Script is having difficulty finding hesk_settings.inc.ph

Post by mcrawford »

After much searching about apache and php settings I finally came across information on the .htaccess file.

In the parent directory from where my hesk script is located I had a htaccess file that has these lines in it :

Code: Select all

Options +FollowSymlinks
RewriteEngine on
RewriteRule ^filename/([A-Za-z0-9_%\s\.-]+)/([0-9]+)/([0-9]+)/oneSOURCE\.html$ /functions/download2.php?file=$2&filename=$1&key=$3 [L]
RewriteCond %{REQUEST_URI} "/userfiles/documents/"
RewriteRule (.*) index.html [L]
RewriteCond %{REQUEST_URI} "/functions/download2.php"
RewriteRule (.*) $1 [L]
RewriteCond %{REQUEST_URI} "/functions/databaseDump.php"
RewriteRule (.*) $1 [L]
RewriteCond %{REQUEST_URI} "/functions/queryResults.php"
RewriteRule (.*) $1 [L]
RewriteCond %{REQUEST_URI} "/functions/checkForDocs.php"
RewriteRule (.*) $1 [L]
RewriteCond %{REQUEST_URI} "/reports/"
RewriteRule (.*) $1 [L]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule \.(php)$ index.php/$1 [L]
RewriteRule \.(html)$ index.php/$1 [L]
RewriteRule (.*) - [L]
RewriteRule (.*) index.php/$1 [L]
I created a .htaccess file with "RewriteEngine off" in it and uploaded to the hesk directory. Now the relative paths from the original script are working just fine.
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Script is having difficulty finding hesk_settings.inc.ph

Post by Klemen »

Glad to hear you found the problem and thanks for sharing!
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply