1 (edited by N3twork2 2012-01-15 10:40)

Topic: Bug T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION

Dear,

I have integrate punbb in my website, I have upgrade ma site, but i have an error in the index of my site

Index
index/forum

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /homepages/21/dxxxx/htdocs/xxxx/forums/include/loader.php on line 23

the forum works correctly but not the website with punbb intégration

Can you help me smile

Regards

Re: Bug T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION

At a guess: you're using an obsolete version of PHP, i.e. something prior to PHP5.0.

Just upgrade your PHP to version 5 (5.3 is preferred).

Re: Bug T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION

Thanks for your reply

But i have the lastest version

Environnement
    Os : Linux
    PHP: 5.2.17 - Voir les infos
    MySQL Standard 5.0.91

Re: Bug T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION

Maybe forum use PHP5, but your site not. Many hostings supports both version of PHP.

Re: Bug T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION

Hello,

I have make an phpinfo()

PHP Version 4.4.9

sad

I don't understand whe site is PHP Version 4.4.9 and forum is PHP: 5.2.17

Re: Bug T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION

I have add this in .htacess

AddType x-mapp-php5 .php

Is works ! smile