Just got this error after updating to 6.2 and your latest version of quotes.

Parse error: syntax error, unexpected '=', expecting ')' in /home/tulefog/public_html/sites/all/modules/quotes/quotes.module on line 136

Comments

nancydru’s picture

Hmm, on my system, line 136 is a function statement and I don't get this.

Can you, please, copy and paste the $ID line from the top of the module?

invalidreality’s picture

I've seen this happen before when you run PHP5 code on a PHP4 setup.

nancydru’s picture

Status: Active » Postponed (maintainer needs more info)

I try to write everything so that it conforms to Drupal's minimum standard of PHP 4.3.5.

However, it's time people started forcing their hosts to upgrade, because Drupal 7 will require at least PHP 5.2.5 and MySql 5 or Postgres 8. My host is already there, but my test sites need an upgrade to PHP.

Dr Jay’s picture

To clarify, it is on line 142 of quotes.module, not 136 (at least in Alpha 1 & 2). Erasing the '=NULL' fixes the problem, though I'm not sure if that will have any unintended consequences.

BTW, I am indeed running this on PHP4 because I can't seem to migrate to PHP5 without killing my production site :(

nancydru’s picture

Well, looking at the code, which doesn't use the parameter, and the APIs, it doesn't seem that there's any danger. I will go ahead and make that change in the next commit. I'm puzzled as to why this is a problem, but I'll do it anyway.

nancydru’s picture

Status: Postponed (maintainer needs more info) » Patch (to be ported)
nancydru’s picture

Assigned: Unassigned » nancydru
Status: Patch (to be ported) » Fixed

Committed to -dev.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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