Hi,
I think I found out the issue. The autoload.php file uses __DIR__ directive on top and that is supported only from PHP v 5.3.0. Reference :
http://php.net/manual/en/language.constants.predefined.php. However I have checked phpinfo() on my shared hosting and the version supported with my provider is 5.2.9.
I have adjusted that line. However there are other issues in vendor/composer/autoload_real.php file. The error states
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in ../dokuwiki/vendor/composer/autoload_real.php on line 23
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in ../dokuwiki/vendor/composer/autoload_real.php on line 23
Parse error: syntax error, unexpected T_STRING in ../dokuwiki/vendor/composer/autoload_real.php on line 23
I think that is because of the line "$loader = new \Composer\Autoload\ClassLoader()" is having a "\" character. If I start fixing such errors, I am afraid it may go endless.
In summary, is there a latest dokuwiki version for lesser versions of PHP? If not, how do I revert (downgrade) my dokuwiki to the previous version where it was?
Thanks.