Page 1 of 1

text.php not found errors

Posted: Fri Feb 12, 2010 5:39 pm
by tinym
Script URL: http://help.tinym.com/
Version of script: 2.1
Hosting company: Aushost
URL of phpinfo.php: http://help.tinym.com/info.php
URL of session_test.php: http://help.tinym.com/session_test.php

What terms did you try when SEARCHING for a solution:
blank index.php
Failed opening required 'language/en/text.php'
common.inc.php 217
common.inc.php
text.php errors
language files
failed to open text.php

Write your message below:

I have debug turned on. I have not modified core files.

Errors I see are posted below (absolute path directory names have been changed). I uploaded the original text.php file to language/en/ -- http://help.tinym.com/language/en/text.php and it did not make the errors go away.

Warning: require(language/en/text.php) [function.require]: failed to open stream: No such file or directory in /dir/dir/dir/tinym.com/public_html/help/inc/common.inc.php on line 217

Warning: require(language/en/text.php) [function.require]: failed to open stream: No such file or directory in /dir/dir/dir/tinym.com/public_html/help/inc/common.inc.php on line 217

Fatal error: require() [function.require]: Failed opening required 'language/en/text.php' (include_path='/usr/local/lib/php') in /dir/dir/dir/tinym.com/public_html/help/inc/common.inc.php on line 217

common.inc.php lines 215-219 look like this:

Code: Select all

function hesk_returnLanguage() {
	global $hesk_settings, $hesklang;
	require(HESK_PATH . 'language/' . $hesk_settings['languages'][$hesk_settings['language']]['folder'] . '/text.php');
    return true;
} // END hesk_returnLanguage()


Posted: Fri Feb 12, 2010 5:46 pm
by tinym
For anyone else having this issue, refer to this thread -- viewtopic.php?t=3015

Changing line 36 of index.php to the following is what worked for me.

Code: Select all

define('HESK_PATH','./');

Posted: Fri Feb 12, 2010 5:56 pm
by tinym
correction - it worked until I submitted a test ticket. The article suggest page from the knowledgebase showed the same errors.

Posted: Sat Feb 13, 2010 11:24 am
by Klemen
Like the topic you refer to suggest you need to make the change in all the files located in the main Hesk folder, not just index.php.