Actually it isn't, I just wanted to get your attention.
Could a few volunteers please test the latest (4.2 beta) version of checkout:
New features: records a "special instructions" field along with each order, from the order page, so customers can input some free text that will be included in the order record
Has a "View Cart" system link, and an "Admin Orders" one (for administrators).
Records and displays the times that orders were cleared/completed/etc.
The upgrade involves some dicking about with the checkout transaction tables in the db, so I'd appreciate it if a few people could try the upgrade first, preferably on a disposable installation or one for which you have a backup. I've upgraded my (live) installation, and it works in tests, but ... wouldn't like any hidden glitches to catch anyone unprepared. (The worst outcome is that you have to uninstall/reinstall checkout.)
Oh, and because of the new Special Instructions field, a few of the templates have changed. So don't forget to re-make anything in your local/ directories.
Please report here problems with (only) this 4.2 beta release.
Thanks
Posts: 4342
Attention checkout users: it's *really* important that I get some testing and feedback on this - otherwise I'm just going to upload the code as-is to the repository, and you're all going to be f*cked if there's a problem with it.
Posts: 214
Hallo Alec,
Argl, gulp...!...okay (this sounds like a serious threat) I will test it today substantially (never had I thought you would use such *words) and report after that, immediately. I have to upgrade Gallery first (I guess, I should) to 2.3.
Until later, nice greetings, Dirk.
---------------------------
www.galerie-der-fotos.de
Posts: 32
I installed 4.1 ok, but 4.2 gives me the following error:
Database Error
An error has occurred while interacting with the database.
The exact nature of database errors is not captured unless Gallery debug mode is enabled in config.php. Before seeking support for this error please enable buffered debug output and retry the operation. Look near the bottom of the lengthy debug output to find error details.
Back to the Gallery
Error Detail -
Error (ERROR_STORAGE_FAILURE)
* in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 959 (GalleryCoreApi::error)
* in modules/core/classes/GalleryStorage.class at line 507 (GalleryStorageExtras::execute)
* in modules/checkout/module.inc at line 563 (GalleryStorage::execute)
* in modules/core/classes/GalleryModule.class at line 175 (CheckoutModule::upgrade)
* in modules/core/PluginCallback.inc at line 230 (GalleryModule::installOrUpgrade)
* in modules/core/PluginCallback.inc at line 67 (PluginCallbackView::handleCallback)
* in main.php at line 450 (PluginCallbackView::renderImmediate)
* in main.php at line 104
* in main.php at line 88
System Information
Gallery version 2.3
PHP version 5.2.6 cgi-fcgi
Webserver Apache/2.0.63 (FreeBSD) DAV/2 SVN/1.5.2 mod_python/3.3.1 Python/2.5.1 PHP/5.2.6 with Suhosin-Patch mod_ssl/2.0.63 OpenSSL/0.9.7e-p1 mod_fastcgi/2.4.6 mod_perl/2.0.3 Perl/v5.8.8
Database mysqli 5.0.51a-log
Toolkits SquareThumb, Gd
Operating system FreeBSD ash.34sp.com 6.3-RELEASE-p5 FreeBSD 6.3-RELEASE-p5 #2: Thu Oct 16 09:27:47 BST 2008
:/usr/obj/usr/src/sys/PAE i386
Browser Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4
Posts: 214
Yes, the same with me, after uploading the checkout folder, this, checkout-4-2.png (see below), is shown in the admin section, clicking "upgrade" opens a page displaying this:
Nice greetings, Dirk.
---------------------------
www.galerie-der-fotos.de
Posts: 4342
ok chaps, thanks for trying... back to work on this one for me then.
Posts: 214
Okay, great Alec,
(oops, error: Alec`s last posting is gone, try again) I have uploaded the checkout folder and overwritten the existing checkout 4.2, because I couldn`t find any buttons, links to deinstall. When clicking on "upgrade" (to 4.2) the (may be exactly) same error messages came like I posted before.
Then deleting the checkout folder before uploading 4.2 and clicking "upgrade" went wrong, also, same messages.
Then installed 4.1, uninstalled 4.1, installed 4.1, 4.1 seemed to be running well, uploaded 4.2 folder, refreshed "Plugins" page or went to "Plugins" page, clicked "upgrade", this displayed:
Do not know, what I might be missing.
Nice greetings, Dirk.
---------------------------
www.galerie-der-fotos.de
Posts: 4342
Hi Dirk,
I'm rewriting portions of the code, so standby for another version - probably about 20 minutes from now.
Posts: 214
Okay Alec,
I`ll wait here, take your time.
Posts: 4342
Here it is...
Posts: 4342
Couple of code changes mean that an update to checkoutdownload is probably required:
Posts: 214
Hmmm, just to upload the 4.2 folder won`t be enough? It doesn`t work, same error messages. Should I install 4.1 and deinstall?
Installed 4.1 again, seems to work well, uploaded 4.2 (and checkoutdownload): the same error messages.
Posts: 4342
Hi Dirk,
I think you have to copy the old version back, uninstall, reinstall, then upgrade with the new code.
Posts: 214
...done, Alec...it stays all the same, no changes, same messages...
...after uploading 4.2 I have just refreshed the "Plugin" page and "Version" 4.1 turned into 4.2. (see shot)...
Posts: 4342
hi Dirkii,
You have to uninstall checkout completely. Then delete the checkout directory. Then refresh the get-more-plugins page. Then download 4.1. Then configure and activate it. Then download the new code. Then hit the upgrade button.
Posts: 214
Yes, I had done it among other things exactly that way more than one time, Alec,
Don`t know what I could have been missed...okay, I try again.
---------------------------
www.galerie-der-fotos.de
Posts: 4342
Hi Dirkii,
I've run it through that procedure twice on each of two installations now, and I think the upgrade works ok. But I'd still like someone else to try it - thanks for having another go.
Posts: 214
Yes Alec,
Sounds like it is anything wrong on my system or the way I do it: next try, another failure. 4.1 always worked fine each time I installed it, but 4.2...
By this you mean download the checkout 4.2 zip file from this page and then upload the unzipped folders and files; so I have done it.
Nice greetings, Dirk.
Posts: 4342
Hi Dirkii
Please post the error message that you get (don't just say "same as last time")
thanks
Posts: 214
Ah yes, sorry Alec,
Here it is:
Posts: 37
Hi Alec,
Just installed the 4.2beta and it is running smoothly... The only problems i seem to have is, I can't configure the paper and postage options? I have attached a screenshot of the Checkout Configuration page..
Many Thanks
Posts: 37
Another issue aswell, I can't edit the email notification options either? Is it something I've done wrong? Does anyone else have this problem? When I try to view AdminTransactions by click either Checkout Orders or Admin Orders I get the attached error.
Posts: 37
Sorry I think I was receiving those errors because I hadn't upgraded correctly, but now when I try to upgrade I receive the following error:
Error Detail -
Error (ERROR_STORAGE_FAILURE)
* in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 959 (GalleryCoreApi::error)
* in modules/core/classes/GalleryStorage.class at line 507 (GalleryStorageExtras::execute)
* in modules/checkout/module.inc at line 561 (GalleryStorage::execute)
* in modules/core/classes/GalleryModule.class at line 175 (CheckoutModule::upgrade)
* in modules/core/PluginCallback.inc at line 230 (GalleryModule::installOrUpgrade)
* in modules/core/PluginCallback.inc at line 67 (PluginCallbackView::handleCallback)
* in main.php at line 450 (PluginCallbackView::renderImmediate)
* in main.php at line 104
* in main.php at line 88
Posts: 4342
Hi Photosinaflash,
Can you post the details of you gallery installation (version, db type, webserver) as requested?
Posts: 4342
I've found a minor defect with the 4.2 code. Anyone using it will need to add the following:
checkout/classes/CheckoutTransactionEventHelper.class, line 288: from
to:
Posts: 8
I've been running 4.2b for the last few days now.
Didn't have any problems upgrading.
No issues so far ...
Posts: 4342
Hi Steven,
Hurrah. Thanks for letting me know.
Please make the mod in the post above though - otherwise emails go wrong.
Additional point: it may be necessary to clear the template cache on upgrade, as the admin page template has changed. Otherwise the email and postage/paper options don't appear.
Posts: 37
That was the issue I was getting before, just installed 4.2 on a test site and it works perfectly!
Posts: 4342
4.2 is fine, as a new install. It's the upgrade from an existing 4.1 installation to 4.2 that I want people to test. The upgrade code creates some new table columns, copies data into them then deletes the old columns. It also transfers the email addreses, paper details and postage settings into new formats. Because of the template change, a template cache delete is required.
The 4.2 code is now in the repository, so no need to download it from this thread (I'm removing it). I'm starting work on 4.3, which will have a new 'accessories' feature that you can use to offer things like frames and mounts with every order.
Posts: 214
Hallo Alec,
Very well done, indeed: it seems to work fine after updating, new to me was this message: "after-clicking-download.png".
Nice greetings, Dirk.
---------------------------
www.galerie-der-fotos.de
Posts: 4342
Yes, that's fine. Might be a template glitch on the module - have you deleted your template cache?
Posts: 214
Before installing only, Alec. The "Cache Maintenance" on lib/support.
I tried a new installation, not an update, on another Gallery and all works very well, also.
How can I switch the language used in the "checkout" modules to German? It does not switch automatically according to the language used in Gallery, obviously as I would have thought. My default language in Gallery is German.
Nice greetings, Dirk.
---------------------------
www.galerie-der-fotos.de
Posts: 4
I tried to upgrade from 0.2.1 to 0.4.1 and now I get nothing but errors AND now my uninstall option is gone. My hope was that I could do a manual install of 0.4.2 and clear up the problem, but I don't see a link for it anywhere on this page. HELP! My checkout is hosed and it seems like my hands are tied. Replacing the directory with the original 0.2.1 doesn't work either. The only other thing I can think to try is to restore my entire site from backup, but that would undo my gallery 2.3 upgrade. I can successfully update, configure and install checkoutpaypal and I have tried installing that fixed CheckoutPaypalHelper class, but none of that affects checkout.
Any help would be greatly appreaciated.
Here are my errors in case that's helpful:
Error (ERROR_STORAGE_FAILURE) : Error trying to run query: ALTER TABLE g2_CheckoutTransaction ADD g_security NVARCHAR(32) NOT NULL
in C:\Inetpub\wwwCIGAC\gallery2\modules\core\classes\GalleryStorage\GalleryStorageExtras.class at line 1707 (GalleryCoreApi::error)
in C:\Inetpub\wwwCIGAC\gallery2\modules\core\classes\GalleryStorage\GalleryStorageExtras.class at line 1363 (GalleryStorageExtras::_executeSql)
in C:\Inetpub\wwwCIGAC\gallery2\modules\core\classes\GalleryStorage.class at line 768 (GalleryStorageExtras::configureStore)
in C:\Inetpub\wwwCIGAC\gallery2\modules\checkout\module.inc at line 370 (GalleryStorage::configureStore)
in C:\Inetpub\wwwCIGAC\gallery2\modules\core\classes\GalleryModule.class at line 175 (CheckoutModule::upgrade)
in C:\Inetpub\wwwCIGAC\gallery2\modules\core\PluginCallback.inc at line 230 (GalleryModule::installOrUpgrade)
in C:\Inetpub\wwwCIGAC\gallery2\modules\core\PluginCallback.inc at line 67 (PluginCallbackView::handleCallback)
in C:\Inetpub\wwwCIGAC\gallery2\main.php at line 450 (PluginCallbackView::renderImmediate)
in C:\Inetpub\wwwCIGAC\gallery2\main.php at line 104
in C:\Inetpub\wwwCIGAC\gallery2\main.php at line 88
System Information
Gallery version 2.3
PHP version 5.2.5 isapi
Webserver Microsoft-IIS/6.0
Database ado_mssql Microsoft SQL Server 2005 - 9.00.3068.00 (Intel X86) Feb 26 2008 18:15:01 Copyright (c) 1988-2005 Microsoft Corporation Standard Edition on Windows NT 5.2 (Build 3790: Service Pack 2)
Toolkits ImageMagick, Thumbnail, NetPBM, Gd
Operating system Windows NT EPWS1 5.2 build 3790
Browser Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)
Posts: 18
I have tried to upgrade to 4.2 but i got errors so i did an uninstall and did a complete new install of 4.2 but i am having a few problems the download no longer works and the delete order sessions does not work any help to get these working please
Thanks
Swampy
Gallery version = 2.2.6 core 1.2.0.8
PHP version = 5.2.4 cgi
Webserver = Apache
Database = mysql 5.0.67-community, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, ImageMagick, Thumbnail, LinkItemToolkit, Gd, NetPBM
Acceleration = none/21600, none/21600
Operating system = Linux xxxxx.xxxxxxx.co.uk 2.6.9-42.0.3.ELsmp #1 SMP Fri Oct 6 06:21:39 CDT 2006 i686
Default theme = ebony
gettext = enabled
Locale = en_GB
Browser = Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506)
Rows in GalleryAccessMap table = 20
Rows in GalleryAccessSubscriberMap table = 28325
Rows in GalleryUser table = 3
Rows in GalleryItem table = 28319
Rows in GalleryAlbumItem table = 1161
Rows in GalleryCacheMap table = 0
Posts: 4342
Hi Softco,
As you're upgrading to 4.1, not to 4.2, can you open a new thread with this issue and I'll try to help there.
Hi Swampy:
I need to know about the errors on your upgrade to 4.2 - but it's too late now, as you've uninstalled.
checkoutdownload has also been updated, please download new code for this. Also please be specific about the problem with the delete orders - describe in detail what you do, and what happens (or doesn't happen) and what you see on screen. Thanks.
Posts: 122
Alec,
Upgraded from 4.1 to 4.2
Also upgraded gallery to 2.3
All seems to work fine in upgrading & testing - no errors seen.
I note though that on the 'Checkout::Order Administration' page the entry for 'Invoice (PDF Format)' section appears twice (one after the other).
Posts: 4342
Hi Paul,
Thanks for the update. Hmmm... 2 versions of the PDF section? I'd ask if you have the module installed twice, but (and I've had to to go through this myself) that won't work unless you change quite a lot of the code. Let me think about that one.
Posts: 18
Thanks for your reply
These are the modules i have installed downloaded them early this morning
Checkout 0.4.2
Checkout Downloads 0.1.3
Checkout by Paypal 0.4.0
In the checkout config there is a section that says
Remove orphan transactions older than (days): 2
(Example sessions
9671c… admin Mon 01 Dec 2008 21:13:05 UTC 87.194.140.194
36f00… admin Sun 09 Nov 2008 15:59:57 UTC 86.138.160.149)
i have set this to 2 days and i have saved the settings but when i go to checkout orders and go to show current sessions there are sessions still there and go back a couple of weeks i set the other setting (Remove all other transactions older than (days)to 2 days also and that setting worked an deleted all orders over 2 days old.
the older version of 4.1 worked with downloads.
thanks
swampy
Posts: 4342
Hi Swampy,
Sessions and transactions are not the same thing. Sessions are what's in people's carts, and handled by the Gallery session-handling code. If you start deleting them then people will have to log-in again (if they were logged in), lose their cart contents, language preferences (as if they'd had their browser's cookie cache deleted.) The "session" features of checkout are a bit cheeky, as far as I know checkout is the only module to allow you to alter other people's session contents. There's no checkout method for deleting sessions.
Transactions are created when you go to the final checkout page. They're entirely different to sessions, and entirely under the control of checkout. There's no change to the transaction-handling code between 4.1 and 4.2.
Also you should know that the version number doesn't tell you everything you need to know about the code - you need to look at the code revision number, in the plugins update page. Even if you have the latest 'version' number, you may still need to update.
Posts: 18
This is my revision date Currently Installed: version 0.1.3 (build 1704) i installed all the modules this morning a fresh install
thanks for the info on the sessions but is there any way to delete them all apart from admin are all guests as i do not have registered users
Thanks
for the reply
If you need admin access to have a look pm me please alec
Swampy
Posts: 4342
@sessions: no need to delete them, all gallery installations have a long session table. Gallery core has the code to remove them when they age - there's no point worrying about them. I have about 1000 sessions with carts in at any one time, all created by various search bots visiting random "add-to-cart" links. Don't sweat it.
What else is a problem?
Posts: 18
at the moment i am trying to set up the download module i have set it to free for now like i did in version 4.1 but when i add a photo to cart and click checkout no download button apears like there was in version 4.1 i am baffled
Thanks
Swampy
Posts: 4342
4.1 doesn't have a download button until after you complete the checkout process. That can be before you pay (if you tick the box in the checkoutdownload admin page) but you do need to go through the checkoutemail or checkoutpaypal or checkoutgoogle process first.
A long time ago there was an option for a download *before* checkout, but it was removed in, I think version 0.2.x.
Posts: 18
mine did i set it up for free download of watermarked image it must have been a code hack off the forum but i cant remember i am sorry for wasing your time i will have to set paypal up in sandbox mode to test
would this be somthing that you could may be add for a fee im willing to pay also do you have a donate any where to help fund your work
Thankyou
Swampy
Posts: 4342
Add this code to your confirm.tpl file:
Posts: 18
Thanks alec is there anything i need to add to this as it is allowing the image un watermarked
Thanks
Swampy
Posts: 4342
The last update to checkoutdownload changed the way downloads are created, by always building them from the original image so that they could be resized (so you can have different sized downloads at different prices.) That means, however, that there's no longer a way to have a watermark added to the downloaded image.
It would be possible in future to extend checkoutdownload so you can have a watermark added, including per-user watermarks, watermarks with the date of download, or other exciting stuff, but it would be a lot of work.
Posts: 18
Thanks again alec for your support this would be a good addon ps sent you a pm
Swampy
Posts: 122
Alec,
Maybe this is not specific to this version but,
I'm getting a regular number of orders where people opt to pay by cheque then enter no details (pressing a CR on the enter details page I assume. Is there any way to fool-proof this?
Posts: 4342
HI Paul,
As far as I remember at least the email field has be non-blank (actually it has to match a regexp for a valid email address) - you can sanity test the inputs by doing a bit of refactoring in Details.inc along these lines (I copied this from the checkoutnochex module):
and then putting this kind of thing in the template
So, yes, not hard, but I think the code needs a bit of refactoring to make it more obvious. I'll put it on the to-do list...
Posts: 17
Hello,
I installed checkout 0.4.2 and checkout e-mail 0.4.0 with 4 other languages but it remain alwais in english. In fact in modules/checkout/po there is no other languages. Where can I found this missing files? When I uninstall and install again nothing changes.
Thanks
maiaradis
URL di Gallery = http://maiaradis.ch/foto/main.php
Versione di Gallery = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
Versione PHP = 5.1.6 apache2handler
Webserver = Apache/2.2.3 (CentOS)
Database = mysqli 5.0.22, lock.system=flock
Strumenti = Exif, Gd, LinkItemToolkit
Accelerazione = partial/172800, partial/900
Sistema operativo = Linux I1.hightechbits.com 2.6.18-53.el5 #1 SMP Mon Nov 12 02:22:48 EST 2007 i686
Tema predefinito = carbon
gettext = abilitato
Locale = it_IT
Browser = Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; it-it) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1
Righe nella tabella GalleryAccessMap = 21
Righe nella tabella GalleryAccessSubscriberMap = 185
Righe nella tabella GalleryUser = 2
Righe nella tabella GalleryItem = 185
Righe nella tabella GalleryAlbumItem = 19
Righe nella tabella GalleryCacheMap = 8
www.maiaradis.ch
www.maiaradis.ch/foto