The paypal_framework module cannot be installed at this time, because the paypal_payer table definition has a SQL typo, and therefore is not created.
Also, the table definition is out of sync with updates. E.g., VARCHAR fields are created with fewer characters than the updates specify, and FLOAT columns are created rather than DECIMAL columns.
| Comment | File | Size | Author |
|---|---|---|---|
| paypal.install.patch.txt | 2.69 KB | mfb |
Comments
Comment #1
AjK commentedThanks for the typo report (fixed by this commit: http://drupal.org/cvs?commit=41977)
Please note, I did not apply your patch as the column updates where added at update level 3 (run update.php).
These updates were made here:
http://cvs.drupal.org/viewcvs/drupal/contributions/modules/paypal_framew...
However, I have found there are a number of issues regarding the paypal_framework module that need attention. It appears Paypal's IPN specification has moved on significantly but this module has not (I just recently aquired maintainership). So, it's needing alot of work to fix these problems (main problem is ppf cannot handled multiple IPN messages, esp for {'txn_type'} = 'subscr_signup' which lacks an txd_id, used by ppf for it's primary key). The upshot of this is paypal_subscription.module cannot function (and anything else expecting multiple IPN data packets)
I'm working through these at the moment.
Comment #2
mfbWhat I am seeing is that when I install paypal_framework for the first time, I get FLOAT columns instead of DEC columns. It seems like the update functions do not run when you first install a module?
Comment #3
mfbSee also http://drupal.org/node/73269#comment-137844
Comment #4
AjK commentedCorrect, updates don't get run at install time. You must run "update.php" to pull in updates.
I admit, that's rather mad. I normally (in my install files) put in "schema detection" and run updates if I need to. The problem with Paypal_framework (PPF) is I have only just taken over maintainership of the module so I haven't put much effort into it yet.
However, there are more pressing issues regarding PPF:-
In order to address these main points/bugs (not really bugs, just PPF hasn't moved with the times as though to say) will require a substantial database review. I did some prelimiary work today and my new code works just fine.
But, as they say, is this worth it? If you take a look at this thread you will see that Lee has put alot of effort into an alternative Paypal solution. Given this exists already and PPF requires alot of work it may well be best to retire PPF (esp for Drupal 5) and point people to Lee's new module (yet to be posted as a project).
These are my current thoughts, I'm a big believer in not duplicating work and Lee is well ahead, so why try to catch him?
Comment #5
mfbNo, running update.php will not work. The module is installed as patch-level 3, because install.inc figures out what is the highest-numbered install function at install time, and records that in the system table as the module's version number. However, install.inc does not actually run the update functions. Nor will update.php, because the module is recorded as version 3, meaning there are no update functions which need to be run (there is not yet an update 4 function).
So, the only way I can run update.php is to manually hack the paypal_framework row in the system table. It's a little much to ask drupal admins to hack their system table and then run update.php when installing a module ;)
I've not yet looked at LM Paypal so can't comment on it, yet. Paypal framework was working fine for my needs (just need to be able to calculate the sum of paypal donations received in the past month).
Comment #6
Anonymous (not verified) commentedHi,
I have installed the papypal framework module without checking the pending bugs.
I have desactivated it of now as I get the SQL error mentionned here.
I am planning to use the ecommerce module for the simple paypal transaction that should have been provided byt the framework module.
Do you think there will be any problem with that, I mean is my SQL DB damaged?
Or should I wait for the bug to be fixed?
Thanks much.
Comment #7
AjK commentedI'm going to be recommending that people needing simple paypal support that don't want the heavy weight ECommerce module should look to the new lm_paypal module
Comment #8
dbr commentedThis should be fixed in revision 1.5 (HEAD). Upgrading to that version should make your tables up-to-date in all situations.
Testing is welcome.
Comment #9
AjK commented