to: jkn
It is to my understanding that the error came after you made the changes that theoracle specified...
I tested theoracles changes and unfortunately, it doesn't work, instead it gives me a similar syntax error
when you get an error which is not written onto the page, this means that the error is not a php error. Therefore, when the error specified line 4, you should have looked into the source of the loaded page and looked for line 4 from there.
If you did so, you would probably found that the error was in the change that theoracle specified.
Unfortunately, theoracle did not realise that the part he told you to change was not written in php, instead it was written in javascript.
WHAT TO DO You should revert the file back to how it was before... this will cure all of your errors in the upload2.php file.
1) find
define('ROOT_PATH', './');
change back to
define('ROOT_PATH', './../');
2) find
top.location=''.$site_sess->url(ROOT_PATH.'checkandgo.php?sid=".$sid."&cat_id=".$cat_id.").''
change to
top.location='./../checkandgo.php?sid=<?php print "$sid" ?>&cat_id=<?php print "$cat_id" ?>'
However, as I mentioned before, the previous error has nothing to do with the upload process, only the checkandgo process and if anything, the problem lies in there.
Unfortunately, as I said before, i only used the checkandgo mod, so I cant give support for this, i reccomend that you reinstall the checkandgo mod but if this doesnt work, you should try and post your question at the checkandgo (allinone) forum.