This is a discussion on Downloadable product error on checkout within the osCMax v2 Features Discussion forums, part of the osCMax v2.0 Forums category; Warning: unexpected error in date() in c:\ibserver\www\catalog\includes\modules\downloads .php on line 49 Expiry date: 3 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Warning: unexpected error in date() in c:\ibserver\www\catalog\includes\modules\downloads .php on line 49 Expiry date: 3 downloads remaining // LINE REMOVED: MOD - Downloads Controller Show Button // The download button comes up as it should but above it these error messages shows up, the unexpected error in date came when I set expire date to 0. I set it to 0 because else it said the expire date was Tuesday 07 December, 1999 so 7 days wasn't enoug to cover that. Dont know why it prints out Line removed... because it's only a comment in the download.php module line 75? |
|
#2
| |||
| |||
| Part of it was already a know bug, code below fixes it: 0000160: Comment showing up in download option Description /catalog/includes/modules/downloads.php About line 90 Change: Code: ?> // LINE REMOVED: MOD - Downloads Controller Show Button // </tr> to: Code: // LINE REMOVED: MOD - Downloads Controller Show Button // </tr> ?> |
|
#3
| |||
| |||
| Quick fix to the unexpected error in date() bug. The disadvantage is that you cannot have an expire date set for downloads or in product attributes but it's better than having ugly fault messages displayed to the customer. Just comment out line 49 in \catalog\includes\modules\downloads.php so it looks like below. // $download_expiry = date('Y-m-d H:i:s', $download_timestamp); |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Checkout error | proton318 | osCMax v1.7 Discussion | 4 | 08-13-2006 08:32 AM |
| Tax is lost at checkout if product weight is zero | NickW | osCMax v1.7 Installation | 4 | 08-10-2004 03:09 AM |
| Best way of controlling (max one product at checkout) | Anonymous | osCMax v1.7 Discussion | 2 | 03-30-2004 02:33 AM |
| Downloadable Product Setup | ativan | osCommerce 2.2 Installation Help | 7 | 03-11-2004 09:31 PM |
| Error on checkout | cfields | osCMax v1.7 Discussion | 2 | 11-16-2003 12:42 AM |