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

ephman’s picture

I 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.

Büke Beyond’s picture

That 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.

nicolaik’s picture

here 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

kbahey’s picture

Version: 6.x-1.0 » 6.x-1.x-dev
Status: Active » Fixed

I 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.

ephman’s picture

thank 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

kbahey’s picture

This 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.

ephman’s picture

thank you again. all is good now, the error doesn't show.

be well,

ephman

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

ClearXS’s picture

Status: Closed (fixed) » Active

Well, same error, with the fix, I suppose (latest version):

Updating
An unrecoverable error has occurred. You can find the error message below. It is advised to copy it to the clipboard for reference.
Please continue to the error page
An error occurred. .../update.php?id=30&opCall to undefined function _system_update_utf8() in .../modules/stock/stock.module on line 377

The update process was aborted prematurely while running update #1 in stock.module. All errors have been logged. You may need to check the watchdog database table manually.

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!