Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When displaying all php errors on screen I get
Undefined variable: extras in weblinks_content_extra_fields()
Line 68 of weblinks.cck.inc
This just needs a initialising line for $extras. Identical code change in 7.x and 6.x. Patch coming right up.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2172019_1.undefined_variable_extras.patch | 429 bytes | jonathan1055 |
Comments
Comment #1
jonathan1055 CreditAttribution: jonathan1055 commentedPatch attached. Identical for 7.x and 6.x
I see this error after clearing the cache.
Comment #2
GStegemann CreditAttribution: GStegemann commentedThanks.
I will take care about it.
Gerhard
Comment #3
GStegemann CreditAttribution: GStegemann commentedApplied and commited.
I would mention two things regarding this this issue:
Comment #4
NancyDruHow many changes are in 6.x; what are their severity; is the release well tested?
Comment #5
GStegemann CreditAttribution: GStegemann commentedHere is a list of all changes appled to 6.x-dev since November 2013:
[Sun, 19 Jan 2014 16:05:41 +0000] Issue #2172019 by jonathan1055: Undefined variable: extras in weblinks_content_extra_fields().
[Fri, 22 Nov 2013 22:56:18 +0000] Issue #2089245 by jonathan1055: Weblinks_cron() does nothing and can be deleted.
[Fri, 22 Nov 2013 16:26:01 +0000] by GStegemann: contribs/weblinks_blocks: several PHP notices fixed.
[Wed, 20 Nov 2013 22:19:19 +0000] by GStegemann: Patch for untranslated string backported from D7 version.
[Fri, 15 Nov 2013 22:48:53 +0000] Issue #2030337 by GStegemann: Sub Module Links Package Converter re-added.
[Fri, 15 Nov 2013 22:38:23 +0000] Issue #1964312 by GStegemann: Pageranks are not updated by cron. Var. pralexa_cron_last initialized.
[Fri, 15 Nov 2013 22:20:36 +0000] Issue #2089201 by jonathan1055: Undefined index warnings in _weblinks_checker_fix_url().
[Fri, 15 Nov 2013 21:55:12 +0000] Issue #1964324 by GStegemann: Google pagerank queries return error 403. URL fixed.
[Fri, 15 Nov 2013 13:43:01 +0000] Issue #2089231 by jonathan1055: Undefined property: stdClass::/ in weblinks_get_tree().
[Thu, 14 Nov 2013 23:23:56 +0000] Issue #2089443 by jonathan1055: Undefined index: #value in weblinks_checker_form_alter().
[Thu, 14 Nov 2013 22:40:17 +0000] Issue #2089235 by jonathan1055: Undefined variable: min in weblinks_checker_settings() fixed.
[Thu, 14 Nov 2013 22:11:01 +0000] Issue #2089139 by jonathan1055: Typos in /->promoted and /->moderated fixed.
Half of them are PHP notices fixes. The remaining ones do fix rendering issues. Especially the change in contribs/weblinks_blocks fixes a "Fatal error: [] operator not supported for strings in includes/theme.inc".
Regarding testing: jonathan1055 discovered most of the issues and I assume he tested them accordingly. Second a few changes are backports from the D7 version which were rolled out many months ago. Third I have tested all the changes before I committed them on my test site. And you are invited to review these changes.
Gerhard
Comment #6
NancyDruSounds like it could be time. i'll leave it to your discretion.
Comment #7
jonathan1055 CreditAttribution: jonathan1055 commentedYes, I have tested all the changes made by my patches. I discovered some on a D7 site, but also checked D6 if the fault and fix was the same. I can re-check if you'd like me to.
Jonathan
Comment #8
GStegemann CreditAttribution: GStegemann commented@Nancy: yes, it's time to release a new version. But I will wait a while since a new issue was reported by Jonathan this morning.
@Jonathan: I think there is no need to re-test the changes. I've done also a lot of testing. One question: did you also test my changes?
Gerhard
Comment #9
NancyDruShould we punish Jonathan by making him a maintainer? ;)
Comment #10
GStegemann CreditAttribution: GStegemann commentedGreat idea!
Gerhard
Comment #11
NancyDruDone
Comment #12
GStegemann CreditAttribution: GStegemann commentedOK. Do I still have commit rights?
Gerhard
Comment #13
NancyDruYes
Comment #14
jonathan1055 CreditAttribution: jonathan1055 commentedhey, what? I've been at work and did not have any say in this ;-)
oh, OK. I've not got any git account yet, so wont be doing any commits just yet. But thanks.
Jonathan
Comment #15
jonathan1055 CreditAttribution: jonathan1055 commented@Gerhard from #8 No I have not tested any other changes, only my own before I made the patches, then checked the commit was as intended from the patch.
Comment #16
NancyDruApply to the webmasters for a git account. If you need me to, I'll endorse your application. I thought it would only allow me to add people with a git account, but I guess I was wrong.
Comment #17
GStegemann CreditAttribution: GStegemann commented@Jonathan: #14: I thought you might be surprised.
Anyway, you don't need a specific git account really. You still use your drupal.org account for git access, but you need to setup git access in your profile. How to do this is documented quite well.
#15: about testing: I assumed you have a test site running where you are using an up-to-date Web Links dev package downloaded from drupal.org. Or did you apply only your own changes to your test site?
Gerhard
Comment #18
NancyDruAt the top of the project page, you'll see "Version control". That will show you the git commands for each branch. When you do a git clone, you'll have everything that has been committed.
Comment #19
jonathan1055 CreditAttribution: jonathan1055 commentedThank you both for the git notes and hints. I will follow up on a new issue if needed.
Back to the testing...
To Gerhard in #17 - yes I have test site running the full latest weblinks dev of both 6.x and 7.x downloaded from D.O. at various points. Usually I upgrade after a patch of mine has been committed, not for every relase. I have not explicitly tested any changes you have made. But equally I have not noticed any problems either.
Comment #20
jonathan1055 CreditAttribution: jonathan1055 commentedThis issue can be marked fixed, as the commits are done in http://drupalcode.org/project/weblinks.git/commit/51d668d