hi
i try to update from 6x .1.12 beta 9 to last dev this shows me this error on update.php

warning: preg_match_all() expects at least 3 parameters, 2 given in .modules/nodewords/nodewords_basic/nodewords_basic.install on line 129.

all others updates works fine

thanks

Comments

AlexisWilke’s picture

Assigned: Unassigned » AlexisWilke
Priority: Normal » Critical
Status: Active » Needs review
StatusFileSize
new537 bytes

There is a patch.

Note that the preg_match_all() will NOT have done its work right. If you are missing the 3rd parameter is always returns FALSE and thus the code within the if() block was ignored.

For your information, that means the ROBOT flags are lost.

Thank you.
Alexis

P.S. By the way, I'm glad to report that this upgrade did not otherwise destroy any data and since all of those were undefined on the site I first upgraded, it did not make any difference.

eule’s picture

hi alex i put the fix in it. no error and no update

AlexisWilke’s picture

eule,

"no update" ?!

Do you mean that your update worked without any problem?

Thank you.
Alexis

eule’s picture

after the fix i try update ..but nothing effects, he say it is nothing to update

AlexisWilke’s picture

eule,

Ah! That's because my fix doesn't add an update. It fixes an existing update which you already applied.

If you used ROBOT flags, then you lost them. (i.e. ROBOT flags are those used to "hide" some pages from robot indexes, etc.) If you had a backup you can restore your website and then apply the update again.

Thank you.
Alexis

dave reid’s picture

Status: Needs review » Needs work

I cannot review .tar.gz files.

AlexisWilke’s picture

StatusFileSize
new537 bytes

The brain works funny once in a while... 8-)

I noticed that the system added an underscore but did not look further... It is a patch file albeit with the wrong extension.

Resubmitting.

Thank you.
Alexis

AlexisWilke’s picture

Status: Needs work » Needs review

Changing the status back to needs review. 8-)

dave reid’s picture

Status: Needs review » Fixed

Thanks, that makes sense. I renamed it to $matches just to match the php default parameter name, even though its not used. Committed to CVS!
http://drupal.org/cvs?commit=432082

Status: Fixed » Closed (fixed)

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