I wanted to fix weburl to have the field display its label, but then I noticed the module was not fully up-to-date with the latest CCK hooks. Here is my attempt at updating it. This fixes the labelling as well. ;-)
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | weburl_1.patch | 11.86 KB | David Lesieur |
| #3 | weburl_update_0.patch | 9.31 KB | David Lesieur |
| weburl_update.patch | 9.25 KB | David Lesieur |
Comments
Comment #1
coupet commentedupdated to latest weburl cvs then applied patch:
$ patch -p0 -u < weburl_update.patch
patching file weburl.module
patch unexpectedly ends in middle of line
Hunk #2 FAILED at 93.
1 out of 2 hunks FAILED -- saving rejects to file weburl.module.rej
Comment #2
coupet commentedpatching file weburl.module
patch unexpectedly ends in middle of line
Hunk #2 FAILED at 93.
1 out of 2 hunks FAILED -- saving rejects to file weburl.module.rej
Comment #3
David Lesieur commentedI'm not sure what when wrong... Sorry for that. Here is a re-rolled patch.
Comment #4
coupet commentedapplied patch, ok; entered 'http://www.google.com' in weburl field; submit and the messages are displayed:
* user warning: Unknown column 'field_web_url_value' in 'field list' query: UPDATE node_content_painting SET field_web_url_value = 'http://www.google.com' WHERE vid = 33 AND nid = 33 in /usr/local/apache/htdocs/sitename.com/dpa/includes/database.mysql.inc on line 120.
* user warning: Unknown column 'field_web_url_value' in 'field list' query: SELECT field_web_url_value AS value FROM node_content_painting WHERE vid = 33 in /usr/local/apache/htdocs/sitename.com/dpa/includes/database.mysql.inc on line 120.
Note: Label is displayed coorectly but the value field is empty.
Comment #5
David Lesieur commentedIs that happening with a pre-existing weburl field? There might be an upgrade problem here.
Comment #6
coupet commentedyes, is happened with pre-existing weburl field?
I deleted the field and obtain error message (sorry did not record message!) unable to delete web_url_field ?
Created a new Web URL field and works fine.
Comment #7
David Lesieur commentedI'll try to fix that in weburl.install. Thanks for the testing!
Comment #8
David Lesieur commentedHere's a patch that includes both weburl.module and the updated weburl.install. Make sure to backup your db before testing this upgrade. ;-)
Comment #9
coupet commentedApplied latest patch weburl_1.patch to cvs weburl.module and weburl.install files.
I had to specify name of files to patch
Works great.
I selected multiple values and can only enter a maximum of 3 URL address.
Unable to add more than 3 URL address.
Comment #10
David Lesieur commentedThe limit of 3 urls was there before. IMHO it is a separate issue from this one.
Thanks again for the testing! I hope this patch can be committed.
Comment #11
robertdouglass commentedWell, since I wrote the weburl filed I guess I should patch it too, eh? =) Will review and get it updated. I've also improved the regexps.
Comment #12
coupet commentedref: cck cvs; weburl.module,v 1.8 2006/06/12 19:36:54
patch result follows:
$ patch -u -p0 < weburl_1.patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- /f/projects/drupal/cvs/contributions/modules/cck/weburl.install 2006-05-23 18:38:24.234375000 -0400
|+++ modules/cck/weburl.install 2006-05-23 18:28:19.906250000 -0400
--------------------------
File to patch: weburl.install
patching file weburl.install
can't find file to patch at input line 64
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- /f/projects/drupal/cvs/contributions/modules/cck/weburl.module 2006-05-23 18:38:24.343750000 -0400
|+++ modules/cck/weburl.module 2006-05-23 18:28:19.890625000 -0400
--------------------------
File to patch: weburl.module
patching file weburl.module
Hunk #2 FAILED at 93.
1 out of 2 hunks FAILED -- saving rejects to file weburl.module.rej
$
Comment #13
coupet commentedtry again!
ref: cck cvs; weburl.module,v 1.8 2006/06/12 19:36:54
patch result follows:
Comment #14
treksler commented1) always add --dry-run to your patch command to see if there are no errors
2) you need to adjust your -p0 parameter ; try -p5
Comment #15
David Lesieur commented@Robert: Yes, if you could review/update/commit the patch, that would be great! :-)
Comment #16
marcoBauli commentedi manually applied the patch:
Removing the infamous "_" [content_fields();] got the upgrade to proceed.
user warning: Duplicate entry '428' for key 1 query: INSERT INTO node_content_spot (vid, nid, field_url_forecasts_value) SELECT vid, nid, field_weburl FROM node_field_weburl_data WHERE field_name = 'field_url_forecasts' in /home/mysite/public_html/drupal/includes/database.mysql.inc on line 120.of course when loading a node with a previously filled weburl field a warning is thrown out again:
Unknown column 'field_url_forecasts_value' in 'field list' query: SELECT field_url_forecasts_value AS value FROM node_content_spot WHERE vid = 461 in /home/kiteatla/public_html/drupal/includes/database.mysql.inc on line 120.Deleting and creating the weburl field again removes the error and shows output, but
thx
Comment #17
David Lesieur commentedComment #18
David Lesieur commentedThere is now a link module.