Closed (fixed)
Project:
e-Commerce
Version:
6.x-4.x-dev
Component:
store
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
5 Dec 2008 at 12:30 UTC
Updated:
9 Mar 2009 at 23:50 UTC
Jump to comment: Most recent file
When opening ecommerce in phpeclipse, there are several warnings and one error (see other issue). Warnings are mostly uninitialsied variables:
and many, many more.
HnLn
| Comment | File | Size | Author |
|---|---|---|---|
| #23 | ecommerce-343197-23_6.4.patch | 1.66 KB | darren oh |
| #20 | ecommerce-343197-19_6.4.patch | 4.41 KB | darren oh |
| #18 | ecommerce-343197-18_6.4.patch | 3.38 KB | darren oh |
| #13 | ecommerce.patch | 2.95 KB | darren oh |
| #8 | ecommerce-343197-8_6.4.patch | 18.2 KB | darren oh |
Comments
Comment #1
gordon commentedThanks for the information, but I use and IDE, so unless I see if in the logs or I see errors being displayed in the testing they will not be fixed.
If you can please either provide a patch or more specifics on where the patches are.
I do try to find all the bugs and have all errors displayed, but also a lot of IDE's are over picky sometimes and display errors that are not there.
Thanks for the information.
Gordon.
Comment #2
hnln commentedHey,
tnx for the reply and my apologies for maybe being a bit crude.
Below a list of the yellow explanation marks I get when opening ecommerce 6.x-4.dev (05/12). Note most of these might not have any effects and I'm just providing them FYI (as normally I don't get these when opening drupal modules). As this is not a real case, this can be closed.
No effect (I think)
Might have undesired effects:
Comment #3
hnln commentedTwo more :-)
ec_store.module
Comment #4
recidive commentedAttached patch fixes issues above, but ec_paypal.module ones, and the ones listed bellow:
theme_ec_cart_display_block_title() doesn't use $item_count at all, this should be removed.
Yes, this is wrong, $key is not defined, but this argument in ec_checkout_validate_item() is $type (Purchase type). Don't know where to get this argument from yet.
$view_transaction is not defined, not sure what this should be.
Comment #5
gordon commentedHi,
This patch no longer applies.
Gordon.
Comment #6
recidive commentedSorry, I have checked out HEAD instead of 6.4 branch.
This one should apply now.
Comment #7
gordon commentedThanks, this has now been committed
Comment #8
darren ohA lot got missed. Marked issue 375755 as duplicate.
Comment #9
gordon commentedThanks I have now committed this.
Comment #10
Phillip Mc commentedjust wondering if this patch has anything to do with all the error messages from today's dev version? I'm unable to install it. Lots of constant errors. Like this:
notice: Constant SAVED_NEW already defined in ec_common.module on line 14.
notice: Constant SAVED_UPDATED already defined in ec_common.module on line 15.
notice: Constant SAVED_NEW already defined in ec_common.module on line 14.
notice: Constant SAVED_UPDATED already defined in ec_common.module on line 15.
I'm using drupal 6.10 and the 6.x-4.x-dev
Philk.
Comment #11
darren ohNo need to change the status just to ask a question. The problem you mention was reported in issue 375744.
Comment #12
dublin drupaller commentedI'm getting the same error messages Philk. I think it's related to this http://drupal.org/node/375744
Comment #13
darren ohI found more. It appears that constants defined in the module file aren't available while it is being installed, and theme_textfield() require #autocomplete_path to be defined.
Comment #14
gordon commentedI don't like the fact that the constants are being removed in the .install file.
Comment #15
darren ohDefining the constants in the install file causes duplicate constant definition errors on the module administration page.
Comment #16
gordon commentedBut shouldn't the .module file be loaded at the time of installation anyway, so shouldn't the system know about these contants?
Comment #17
darren ohMaybe it should be loaded, but it isn't. I haven't had time to investigate.
Comment #18
darren ohOK: the module is not loaded during hook_install(), but it is loaded during hook_enable().
Comment #19
gordon commentedI have now committed. I did replace one more with the constant that was missed.
Comment #20
darren ohFound more bad variables.
Comment #21
gordon commentedI just committed some more stuff so it doesn't apply anymore.
Comment #22
darren ohRe-rolled patch. I've found more in the checkout process, but I'm making sure I understand the code before I make a patch.
Comment #23
darren ohForgot to attach file.
Comment #24
gordon commentedThanks. I have committed this, Please open a new issue if you find any more.