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.
I'm getting two warning messages when i try to configure the stock module after installation for both 6.x-1.0 and the dev...
warning: Missing argument 1 for drupal_get_form() in /mnt/local/home/...dir.../includes/form.inc on line 69.
and
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '' was given in /mnt/local/home/...dir.../includes/form.inc on line 366.
Just curious if anyone else had this problem and any possible solutions...
thanks
Comments
Comment #1
ephman CreditAttribution: ephman commentedI as well am having the same issue. :( i currently running drupal 6.6 any help would be really really appreciated.
i am also being asked to run the database update script, and when i do so, another error shows up:
An error occurred. http://localhost/news/update.php?id=4&op=do
Fatal error: Call to undefined function _system_update_utf8() in /var/www/news/modules/stock/stock.module on line 377
thanks,
ephraim.
Comment #2
Büke Beyond CreditAttribution: Büke Beyond commentedThat is because Stock 6.x release is not really 6.x compatible.
I have fixed these issues;
http://drupal.org/node/314720
try the fixed file there.
I will create a patch for the main developer to integrate into a release when I get the chance.
Comment #3
nicolaik CreditAttribution: nicolaik commentedhere is what i did to fix this problem, probably more than what was necessary, but none the less i got it working
using stock 6.x 1.0
- I uninstall both modules
- took them off the server
- downloaded the zip from here http://drupal.org/node/314720
- unzipped the file and replaced the stock module file in my directory sites/all/modules/stock
- uploaded both stock and stock api
- enabled both modules
when i went to configure i got the same error
- then ran the update.php
- set the stock module to no available updates
- finished the update and went back to configure the stock module and it worked
I'm new to drupal and not a troubleshooter by any means. I just happened to screw around and get it to work. So i guess you can try this if you want...if it isn;t working what else have you got to lose
take care
Comment #4
kbahey CreditAttribution: kbahey commentedI committed a fix to the -dev version.
Please wait for 12 hours before downloading it.
If a couple of people test and find it is good, I will create a stable version.
Comment #5
ephman CreditAttribution: ephman commentedthank you so much for your effort. alright now i can select stocks and the module seems to be working. however, i am still being instructed to run the database update script, and continue to get this error when i run it:
An error occurred. http://localhost/update.php?id=4&op=do
Fatal error: Call to undefined function _system_update_utf8() in /var/www/modules/stock/stock.module on line 379
thanks,
ephman
Comment #6
kbahey CreditAttribution: kbahey commentedThis call is from the 4.6/4.7 days, and I removed it.
Again, wait for 12 hours, then download the -dev tarball and test it.
Comment #7
ephman CreditAttribution: ephman commentedthank you again. all is good now, the error doesn't show.
be well,
ephman
Comment #8
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #9
ClearXS CreditAttribution: ClearXS commentedWell, same error, with the fix, I suppose (latest version):
So just uncheckign and then uninstallign for the second time.
I have another error of another new install (think its unrelated): "No Solr instance available during indexing"
And my cron.php was acting strange and takes too much time and cancells often (partly related to Solr, but also befor that).
Just add this data to be sure & for the "stock" programmers insight!