the error:
Parse error: syntax error, unexpected T_STRING in /home/bakpayev/public_html/paris.kz/emploi/sites/all/modules/g2/g2.module on line 29

I didn't have it on my localhost, could you please advise what's wrong.

Comments

fgm’s picture

Status: Active » Postponed (maintainer needs more info)

Do you really run on PHP 5.3 ? This is a requirement for G2 for D7, and it would explain the error if you hid the php = 5.3 requirement in g2.info

Line 29 is the first line of code in the module:

namespace g2 {

And this is something which will only work on PHP 5.3.x and above.

clashar’s picture

fgm, that's true, my hoster has PHP 5.2, will try to solve with them.
Thank you for quick reply.

fgm’s picture

This might help:

From http://www.php.net/archive/2011.php#id2011-08-23-1

All PHP users should note that the PHP 5.2 series is NOT supported anymore. All users are strongly encouraged to upgrade to PHP 5.3.8.

clashar’s picture

ok, thanks I've transferred this link to hosting provider. I hope it could persuade them.

fgm’s picture

Status: Postponed (maintainer needs more info) » Fixed

Marking fixed since the bug is actually in the hosting company, not the code.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.