Closed (duplicate)
Project:
Web Links
Version:
7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Mar 2011 at 18:14 UTC
Updated:
16 Apr 2012 at 13:52 UTC
I have "Fatal error: Call to undefined function db_resultl() in weblinks.module on line 761" when i open http://www.mysite.org/?q=weblinks
I replace:
$unclassed_count = db_result(_weblinks_get_query(0, 'count'));
by
$unclassed_count = db_query(_weblinks_get_query(0, 'count'))->fetchField();
Is it ok ?
Comments
Comment #1
ballombert commentedComment #2
Starminder commentedFatal error: Call to undefined function db_result() in /home/hoslot5/public_html/sites/all/modules/weblinks/weblinks.module on line 761
Comment #3
Starminder commentedAlso getting this when trying to check for updates:
An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: /batch?render=overlay&id=591&op=do StatusText: OK ResponseText: {"status":true,"percentage":"14","message":"Trying to check available update data ...\u003cbr \/\u003eChecked available update data for \u003cem class=\"placeholder\"\u003eLibraries\u003c\/em\u003e."} Fatal error: Call to undefined function db_fetch_object() in /home/hoslot5/public_html/sites/all/modules/weblinks/contribs/weblinks_checker/weblinks_checker.module on line 323
Comment #4
LarryTX commentedI'm getting a similar result in:
Fatal error: Call to undefined function db_result() in F:\xampp\htdocs\memehope\sites\all\modules\weblinks\weblinks.module on line 192I notice that db_result is used multiple times in weblinks.module. It appears that it's removed in Drupal 7 (http://api.drupal.org/api/drupal/includes--database.pgsql.inc/function/d...) and replaced by:
$val = db_query({...})->fetchField();I'd love to post a patch, but (a) I want to be sure I'm on the right track and (b) I'm not up on how to do such things. (If anyone can give a resource for learning about creating and using patches in the Windows environment, it would help me along toward doing such things!)
Just a bit later
Actually, I tried replacing db_result() with db_query() in the way suggested above. It's clearly not as simple as that because it produced the following error message:
Oh well, Drupal has a way of humbling those of us who think they've go it wired.
Comment #5
nancydruLarryTx: go to the project page and click on "Version control".
Comment #6
nancydruAt the moment there is no real "D7 build" - it is just a non-functional branch. Therefore, this issue is a duplicate of #1362878: Port Weblinks to D7.