Closed (fixed)
Project:
Link checker
Version:
6.x-2.4
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Oct 2010 at 16:55 UTC
Updated:
14 Apr 2012 at 21:01 UTC
Jump to comment: Most recent file
Comments
Comment #1
Shiny commentedAre you using the resulting code as a installation profile within the drupal installer?
Comment #2
alfthecat commentedHi Shiny,
No I'm using it to generate the code for my own profile. I've just copied the entire section dealing with the implementation of my nodes.
Thanks!
Comment #3
Shiny commenteddb_query() is a function within drupal. If you run the code outside drupal it won't find that function.
Comment #4
alfthecat commentedHi Shiny,
Thanks for that reply. Could you help me on interpreting it? If I run it inside an installation profile, how does that make that run outside of drupal? I just copied the code from the generated installation profile into another installation profile, based on the same website. If I understand your reply correctly, the code generated by the installation profile generator wouldn't work anyway?
Thanks again!
Comment #5
msmethurst commentedI'm having this same problem.
I have generated an install profile using the tool.
Have then made a file and folder for the profile and put it into the profiles directory.
When I install and choose the generated profile, I get this error.
Call to undefined function db_query() ...... bootstrap.inc line 609
The code has worked before so I'm thinking its something happening as part of the .profile file being generated.
CHanged the file to .txt for upload purpose.
Comment #6
Shiny commentedCurious -- if you replace all instances of db_query with update_sql, does it work then?
Comment #7
alfthecat commented@msmethurst did you find out if #6 from @Shiny worked?
Comment #8
lucidus_neil commentedI did try replacing all of the db_query's with update_sql's to no avail. It would seem that the problem was before my profile actually called db_query. However, I was able to line by line check the modules that are included and determined that linkchecker module was causing the issue. Removed that module from my module install list and it worked!
Comment #9
Shiny commentedexcellent.
Comment #10
kinosura commentedThe same issue. After I include Link checker into the list of modules to enable, I get the above error during installation process.
Comment #11
hass commentedNo idea what this should have to do with linkchecker. You need to find out yourself.
Comment #12
hass commentedComment #13
bladeduSame issue here on d6. To reproduce the bug, create a new simple profile and add linkchecker module in the list of required module. Try to install a new drupal site with this profile and you'll get the error.
Comment #14
hass commentedAre you running pgsql?
Comment #15
bladeduNo, I'm using mysql.
Comment #16
hass commentedThis is a core function. I have no idea why it should be missing. You need to debug it to the source.
Comment #17
bladeduThe only way I found to solve the issue is to move the module from the required list to the optional one. Otherwise is always complaining about the db_query function.
Comment #18
hass commentedAs I know, only core modules are in the required list. Every other contrib modules are optional. I guess linkchecker is installed before core is ready. This cannot supported.