Closed (fixed)
Project:
Link
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Apr 2011 at 22:33 UTC
Updated:
3 May 2011 at 21:31 UTC
Jump to comment: Most recent file
I get this PHP notice
Notice: Use of undefined constant LINK_URL_MAX_LENGTH - assumed 'LINK_URL_MAX_LENGTH' in link_field_schema() (line 16 of /srv/example.com/sites/all/modules/link/link.install).
This happens only on first pageload after I clear Drupal's cache. It seems the install function does not have access to the constant definition in the .module-file. On subsequent page loads, this warning goes away - presumably because the necessary constant is properly defined/cached by then.
This is on a clean D7 installation.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 1125384.patch | 403 bytes | robloach |
Comments
Comment #1
achtonIt turns out I had Link disabled. When uninstalled or installed, this error does not occur.
Issue title changed accordingly.
Comment #2
robloachYup... Doesn't know what LINK_URL_MAX_LENGTH is since it doesn't run through link.module.
Comment #3
jcfiala commentedA simple enough fix - I've applied the patch.