A commit from earlier today has rendered Node Words unusable:
http://drupalcode.org/project/nodewords.git/commitdiff/e87f516bc52c3f7fd...
This line has a syntax error in it:
+ $value = empty($content['value']) ? '' : (empty($options['default']['description']['value']) ? : $options['default']['description']['value']);
Specifically the ? : part.
Comments
Comment #1
malancheril commentedI got the same error and had to pull nodewords off completely in order to get my site back online. Is this version compatible with Drupal 6.20?
Comment #2
quicksketchThis change is baffling. The value of $content['value'] will never be used at all. This could probably use a code-comment, because I'm not sure what we're actually trying to accomplish. Is this supposed to be doing "if the manually defined meta tag is empty, use the default?"
Right now it's actually saying "if the manually defined meta tag is empty, leave it empty. otherwise use the default if it's not empty. Never use the manually defined meta tag."
Comment #3
Ela commentedsubscribing
Comment #4
ayukko commentedgot the error too
Comment #5
preper commentedsame problem I can not update the module. And I have 65.000 node limit problem.. I think this should be fixed as soon as possible...
Comment #6
drupalgideonDitto
So I changed the line to
but then got
Fatal error: Call to undefined function nodewords_unique_values() in /sites/all/modules/contrib/nodewords/nodewords_tokens/nodewords_tokens.module on line 187
And looking at a diff file it appears that this function has been renamed in nodewords.module -
Comment #7
mikeytown2 commentedsubscribe
Comment #8
sparkymark commentedsubscribe - me too on drupal 6.20 when upgrading from the non dev version.
Comment #9
Ela commentedanyone found a solution yet?
Would changing to 6.x-2.0-alpha1 fix this?
Comment #10
damienmckenna@Ela, if you have not already changed to one of the older 6.x-1.12 alpha/beta releases it is recommended to avoid the 6.x-2.0 releases.
Comment #11
Ela commentedThank you. I Have not changed it. I'm using 1.x dev version from April 19th and it's working fine... Waiting for solution before using the new 1.x-dev version from May 4th
Comment #12
davethedruper commentedsubscribing
Comment #13
Anonymous (not verified) commentedSame here, as of May 26th on Drupal 6.20
Comment #14
camaraderie commentedI have this issue as well, it just came up for seemingly no reason. I recently updated to Drupal 6.22, but I don't know if that has anything to do with it.
Can anyone advise whether it's best to disable nodewords, use a different version, or alter the code? Thanks.
Comment #15
venusrising commentedSame issue here
Comment #16
venusrising commented@Ela do you have a copy of April 19th version or where to get it?
Comment #17
mattcasey commentedSame issue, just downloaded the 6.x-1.x-dev however like #6 adding the '' worked for me. I did not get any errors after that.
Comment #18
xjmTracking.
(Help fix "+1 subscribe" posts: see http://drupal.org/node/34496 and http://3281d.com/2009/03/27/death-to-subscribe-comments)
Comment #19
Ela commented@venusrising ... I had it on my computer. If you still need it, contact me though my profile contact form, and I can email it to you
Comment #20
bcobin commentedSubscribing - this is really critical. 1.11 does not generate meta tags from content AFAICS, 2.x isn't recommended and 1.x-dev results in WSOD.
If there's an earlier dev version that works or a patch to 1.11, that would be a really good thing insofar as it looks like there's a bunch of us dead in the water here - thanks!
Comment #21
dave reidDuplicate of #1200210: Parse error: syntax error, unexpected ':' in nodewords_basic.module on line 321 which has been re-applied.