Closed (fixed)
Project:
PayPal Node
Version:
5.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
17 Jan 2008 at 16:26 UTC
Updated:
29 Aug 2008 at 23:22 UTC
Jump to comment: Most recent file
Hi, when I install the module Drupal reports "PayPal Node tables installed". However that's not the case and viewing the Content Fees page gives me the following error:
warning: rsort() expects parameter 1 to be array, string given in /home/thesecr2/public_html/beta/sites/all/modules/paypalnode/paypalnode-admin.inc on line 186.
warning: Invalid argument supplied for foreach() in /home/thesecr2/public_html/beta/sites/all/modules/paypalnode/paypalnode-admin.inc on line 188.
user warning: Table 'thesecr2_olcdrupalb.paypalnode_prices' doesn't exist query: SELECT * FROM paypalnode_prices WHERE price != 0 ORDER BY pid in /home/thesecr2/public_html/beta/includes/database.mysql.inc on line 172.
Please advise
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | paypalnode-install.patch | 1.99 KB | nedjo |
Comments
Comment #1
apt94jesse commentedExact same problem.
Bump.
Comment #2
apt94jesse commentedI have installed the tables manually (through phpmyadmin) and the module seems to work now. It appears to just be a problem with the install file.
Comment #3
buddaThe first error:
is caused by you not setting up any vocabularies that will contain terms that can have a fee associated with them. See the modules settings page. I have added a check for this and a helpful message now.
The second error:
I'm not sure on the cause - i've just run the install on a fresh Drupal 5 site running on a PHP5 and Mysql server. Had no problems.
Comment #4
ricky7524 commentedsorry, but the problem is not fixed...
i have his error now when i try to put a content fees:
"user warning: Table 'Sql179696_1.paypalnode_prices' doesn't exist query: SELECT * FROM paypalnode_prices WHERE price != 0 ORDER BY pid in /web/htdocs/www.xbass.org/home/includes/database.mysql.inc on line 172."
i've mad every modification in paypalnode.install, ecc and i have already set a taxonomy vocabulary
Comment #5
nedjoThe problem is in
paypalnode_install(). This function needs to be updated each time there is a change in the schema. _update_x functions are not run on new installs but only on existing installs that need to be updated (e.g., to a new schema version). The _install function must always create the latest version of the schema.Here's a quick untested patch.
Comment #6
JLJLJLJL commentedSame problem here. No tables created.
Comment #7
budda@nedjo
I'm not sure what your patch is supposed to achieve as the .install file already defines all the required tables. See http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/paypalnode/...
Comment #8
wallbay1 commentedAnd what are we suppose to do with that patch exactly ?
where do i upload it , in which folder?
Comment #9
nedjoYes, the table creation is not in the 5.x branch. You just need to issue another stable release, as the stable release is not usable for new installs.
Comment #10
Tpainton-1 commentedSame problem what is the fix here? Great module that seems to have a huge bug.
Comment #11
ashiwebi commentedCreate the tables manually inside the database.
Comment #12
Tpainton-1 commentedok. What a pain.
Comment #13
buddarelease 1.3 includes the fixed install file.
Comment #14
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.