[Checkout] Page Cannot Be Displayed When Adding Photo/Album
JayKaps
Joined: 2005-06-25
Posts: 10 |
Posted: Sat, 2006-03-11 21:11 |
After a move to a new server, this feature just stopped working, and I have been spending forever trying to figure out the cause. I attempted to upgrade to the latest release, and upgrade / Reinstall the checkout module, however, this didn't solve the issue. When trying to add any album or photo to the cart, it always give a page cannot be displayed error - this was working prior to the server move, so I wonder if it is a PHP setting? You can view the error here: Just try adding any of the first 3 albums / pictures to the cart. Any suggestions on how to fix this would be greatly appreciated. Thank you! |
|
Posts: 18
the same problem is happening with my site and no one seems to answer this question, i hope someone can help us. it so fustrating
thanks
http://www.premiereshots.com/gallery2/main.php
Posts: 21
Hi both,
Can you check the versions of Gallery and the 3 checkout modules.
You should have:
Gallery 2.0.x (i.e. not 2.1.x as it's not migrated yet)
Checkout 0.1.12
Checkout by Email 0.0.6
Checkout by Paypal 0.1.8
They should all be installed and active.
Also, do you have the "redirect user to cart..." checkbox ticked when in Checkout admin page?
If not, try checking it to see if there is any diffence.
I can see the problem on the premiereshots site, but the publicsafetypictures site appears to be down.
d.
Posts: 10
I unchecked "redirect user to cart" as that was checked before, and that seems to have solved something (at least no error messages appear when adding an image to the cart.) I can't figure out, however, where to actually view the cart once images are added. I have all the versions you mentioned, and this was working prior to the site move. Is there a PHP setting that may be causing this problem? If there is a way to add a "View Cart" or "Checkout" link somewhere, then I believe we will be all set. Thanks for the help!
Posts: 431
Sorry for the delay in getting to these - I hope dazza's answers have been of some help. Dazza, thanks very much for chipping in!
The "redirect" feature uses the same redirection techniques as are used everywhere else in Gallery, so I can't see why it wouldn't work in the checkout if it works elsewhere. What else has changed in your server move? Are you on the same version of PHP, same OS, etc? Have you checked the permissions on the module directories? Are you able to see a copy of your php.ini, or is it something your hosting provider manages? If so, is PHP safe mode turned on?
Regarding viewing the cart from the main gallery, there is a sidebar block you should activate in your chosen theme to allow this. Have a look in Site Admin -> Themes, then go to the tab for the theme you have installed (Matrix or whatever), then in "Blocks to show in the sidebar" make sure that "Shopping Cart Info" is added into the list somewhere. Now scroll down and save your changes, and all should be working.
Posts: 10
Thanks so much for your reply! I got the cart info added to the sidebar - that worked great. However, now the same thing as described happens when viewing the cart. The two servers are both running the same OS, however, PHP versions may be different (I believe the old server was running the latest 4.x version of PHP, and this one has 5.) Here is a PHP info page for you to look at: http://www.publicsafetypictures.com/info.php - safe mode is turned off (should it be on?) Permissions on the modules directory and all subfolders/files appear to be 755 - let me know if this should be something different.
Thanks again for the help! If you want to take a look at the account, let me know and I can send you the login info.
Posts: 431
I've just logged into your gallery and tried, but I can't see this error anywhere. The things I did to test are:
What are you doing that causes the error to occur?
Posts: 10
Very very strange - I sware this wasn't working when I last posted. I guess the error just went away...or maybe there was an update on the server that cleared this up? I have no idea, but thank you so much for your help!! Glad this is back to working again (just wish I knew how for future people that have this problem...oh well.)
Posts: 18
well, thanks to everyone who is answering these questions for me.
I have done everything asked and i still get the error.
I do not know how to check to see which version of gallery 2 that I have installed, where should I look?
I set the 'sidebar' block, and I can see that photos have been added to my cart but when i click on it , it directs me to an error page.
on the checkout module, I have unchecked and then checked the 'Redirect user to cart when adding items', but it makes no difference.
What is causing this page error? thank you.
http://www.premiereshots.com/gallery2/main.php?g2_view=core.ShowItem&g2_itemId=1298&g2_navId=x3739e27f
Posts: 431
I'm trying to look at your site, but the server just isn't responding at all - do you have some other kind of problem going on?
Posts: 18
http://www.premiereshots.com/gallery2/main.php?
the server is fine
i think that was a bad link i posted above
Posts: 431
OK, I tried to test today and got to the server. I was able to add photos to the cart, but then clicking on the "View Cart" link did nothing at all (not even an error). I suspect there may be some errors logged by Apache - please can you see if anything has made it into your HTTP error log (hint: on a Linux system this is usually /var/log/httpd/error_log). Without seeing some more information from something about why this is bahaving as it is, it will be impossible to diagnose.
Posts: 18
when you add something to the cart, its fine but when you want to see it, it gives you an ERROR page.
I have asked my host for help on this and they said that since this is a 3rd party module, they cant help me but they did tell me what errors they are seeing when they looked into it and this is what they said, maybe this can help you:
Posts: 431
Whoa! This is not good ... looks like apache is segfault'ing. What is interesting is that the "add to cart" process doesn't do anything special at all - no direct database access, nothing to the filesystem, all it does is to set some data in the user's session in Gallery (which may write to the database, or to a cookie).
Please can you enable the standard "cart" module (you may want to disable checkout first) and tell me if "add to cart" works with that?
JayKaps - would it be possible for you to ask your host if they changed anything in their setup between March 14th and March 16th (probably to do with PHP or HTTPD settings, but maybe filesystem permissions)? If they did, it may be a clue to what is going on in madonnasworld's install.
Posts: 18
hello turnbulm and thank you for helping me with this issue.
i just deactivated all 3 checkout mods, and activiated the cart module, as you had requested.
the shopping cart box on the top left hand side is now gone
and the cart does let you add photos to it.
I hope this issue can be resolved, its depressing not getting paypal to work ;(
Posts: 431
OK... please could you let me know the version of Gallery you are using? Best thing is to go to Site Admin -> Maintenance and run the System Information tool. If possible, please could you also let me have a copy of the output from phpinfo()? To get that, put a php page up on your website with the following:
Navigate to that page, and you will get a ton of output about the server and PHP configuration.
Thanks.
Posts: 18
i AM RUNNING Gallery 2.0.2 , mod_php 5.0.5
here is the PHP info you wanted:
http://premiereshots.com/gallery2/test.php
Posts: 431
There doesn't seem to be anything obviously wrong with the config, but a brief search of the forums here does seem to indicate that PHP can often cause apache to segfault with Gallery. Most people have fixed the problem by upgrading their PHP version - would your host be able to do that for you? It might be worth a try, if it's not too tricky.
Posts: 18
i will ask them, thank you again for your assistance, i appreciate it greatly.
Posts: 18
ok, they updated the php, and it works!!
i cant thank you enough
the only thing now is that when you add something to the cart, it doesnt have an automatic quantity labled to the item, it is left blank.
anyway to change that?
thanks
Posts: 431
Phew! I am soooo glad that fixed the problem!
There isn't any way to set the default quantity through the admin interface, though I do recall posting a quick guide to someone else on how to do it. Have you tried searching the forums? If you can't find it let me know and I'll see if it's still in my tracker.
Matt.