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
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
Comment #1
nancydruHmm, 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?
Comment #2
invalidreality commentedI've seen this happen before when you run PHP5 code on a PHP4 setup.
Comment #3
nancydruI 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.
Comment #4
Dr Jay commentedTo 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 :(
Comment #5
nancydruWell, 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.
Comment #6
nancydruComment #7
nancydruCommitted to -dev.
Comment #8
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.