The latest dev version of potx (and maybe some of the earlier versions too) require a PHP version that supports anonymous functions AKA closures, namespaces as well as the magic constant __DIR__. These are all PHP 5.3.0 or later.

I noticed after having installed the module to no avail on a PHP 5.2.

The .info file says
php = 5.1.2
PHP 5.1.2 will not cut it.

The .info file should be updated, eliminating fatal errors when enabling or using the module?
php = 5.3
in potx.info would do the trick and disallow the module on older PHP installs.

Martin

CommentFileSizeAuthor
#2 2521630-2.patch225 bytesshashwat purav

Comments

shashwat purav’s picture

Assigned: Unassigned » shashwat purav
shashwat purav’s picture

Assigned: shashwat purav » Unassigned
Status: Active » Needs review
StatusFileSize
new225 bytes

Added patch.

alonaoneill’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me.
Patch applied.

  • Gábor Hojtsy committed 90eb991 on 7.x-3.x
    Issue #2521630 by Shashwat Purav, alonaoneill, vertikal.dk: Wrong PHP...
gábor hojtsy’s picture

Status: Reviewed & tested by the community » Fixed
Issue tags: -

Goo find, thanks!

Status: Fixed » Closed (fixed)

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