Hello NogDog,
Yes the lines numbers displayed are from utils.inc.php.
I kind of figured that the issue was related to either me leaving something open or maybe closing something twice.
Further update.
If I delete all the code in utils.inc.php so that it's only contents are
<?php
?>
Then I get a different error in a different file, this file is below utils.inc.php
Here is the full list of include files and their order
REQUIRE_ONCE( SCRIPT_DIR_CLASS . 'utils.class.php' ); #passive class utilities
REQUIRE_ONCE( SCRIPT_DIR_INC . 'utils.inc.php' ); #active function utilities
REQUIRE_ONCE( SCRIPT_DIR_INC . 'cookies.inc.php' );
REQUIRE_ONCE( SCRIPT_DIR_INC . 'languages.inc.php' );
REQUIRE_ONCE( SCRIPT_DIR_CLASS . 'template.engine.class.php' );
REQUIRE_ONCE( SCRIPT_DIR_INC . 'db.inc.php' );
exit('here');
with the above modification to utils.inc.php I now get and error "unexpected TELSE on line 91 in languages.inc.php
IF( $langF ) { #get current language from a previously set cookie
$currentLanguage = $CookieLang;
91->>> }ELSE{
$currentLanguage = LANG_DEFAULT; # set current language to default one
}
Then if I remove the whole IF else and re upload the languages.inc.php I get
Parse error: syntax error, unexpected $end in /home/languages.inc.php on line 217
/*
FUNCTION _t_err_echo( $str, $arg0='', $arg1='', $arg2='', $arg3='', $arg4='', $arg5='', $arg6='' )
217->>> {
ECHO '<DIV class="err">'._t( $str, $arg0, $arg1, $arg2, $arg3, $arg4, $arg5, $arg6 ).'</DIV>';
}
*/
Notice the code is actually Rem'd...lol....
Anyway I may have fixed it by mistake 😕 just now I did a file upload via the cPanel rather than my normal FTP and everything started working again?
So, I'm not totally sure but maybe something keeps failing in the FTP with a specific file, because I uploaded the file originally with 50 or so other files, then tried to upload the three files that seem to be the culprits
languages.inc.php
utils.inc.php
and the template engine file individually 20-30 times each with the problem still there.
Today I use the cPanel file manager to upload all three files and bam everthing starts working....the only mods to the files where ctrl->z undo's so there was no changes to the actual code.
I'm thinking maybe something wrong with the ftp server or maybe filezilla?