Cart not working

Ted Gibbs

Joined: 2008-12-01
Posts: 17
Posted: Fri, 2009-01-09 06:10

I am doing a clean reinstall of Gallery 2.x

Cart does not show-up in admin area.

Following error is for adding an image to the cart

Error (ERROR_BAD_PARAMETER)

* in modules/core/classes/helpers/GalleryPermissionHelper_simple.class at line 235 (gallerycoreapi::error)
* in modules/core/classes/GalleryCoreApi.class at line 711 (gallerypermissionhelper_simple::fetchpermissionsforitems)
* in modules/cart/ViewCart.inc at line 87 (gallerycoreapi::fetchpermissionsforitems)
* in modules/core/classes/GalleryView.class at line 293 (viewcartview::loadtemplate)
* in main.php at line 465 (viewcartview::doloadtemplate)
* in main.php at line 104
* in main.php at line 88

Thanks, Ted Gibbs

Login or register to post comments
spi

Joined: 2009-01-13
Posts: 1
Posted: Tue, 2009-01-13 10:33

Hi,
I have the same problem when adding an image or an album to download basket with the following error.
The item is actually added to the download basket as I can see the number of elements on my sidebar (when trying to look at the basket, same error).
All modules and permissions seems correctly set (default to All users). I am using HTTP authentication module, maybe it has side-effects.
Any idea or actions to be done?
Fabrice

The action you attempted is not permitted.

Back to the Gallery

Error Detail -

Error (ERROR_BAD_PARAMETER)
in modules\core\classes\helpers\GalleryPermissionHelper_simple.class at line 235 (GalleryCoreApi::error)
in modules\core\classes\GalleryCoreApi.class at line 711 (GalleryPermissionHelper_simple::fetchPermissionsForItems)
in modules\cart\ViewCart.inc at line 87 (GalleryCoreApi::fetchPermissionsForItems)
in modules\core\classes\GalleryView.class at line 293 (ViewCartView::loadTemplate)
in main.php at line 465 (GalleryView::doLoadTemplate)
in main.php at line 104
in modules\core\classes\GalleryEmbed.class at line 189
in C:\Users\Spi\Documents\Application Data\Web\private\wp-content\plugins\wpg2\wpg2template.inc at line 76 (GalleryEmbed::handleRequest)
in ??? at line 0
in C:\Users\Spi\Documents\Application Data\Web\private\wp-includes\plugin.php at line 339
in C:\Users\Spi\Documents\Application Data\Web\private\wp-includes\template-loader.php at line 7
in C:\Users\Spi\Documents\Application Data\Web\private\wp-blog-header.php at line 16
in C:\Users\Spi\Documents\Application Data\Web\private\index.php at line 17
System Information

Gallery version 2.3
PHP version 5.2.8 apache2handler
Webserver Apache/2.2.4 (Win32) PHP/5.2.8 mod_perl/2.0.3 Perl/v5.8.8
Database mysqli 5.0.27-community-nt
Toolkits Thumbnail, SquareThumb, Gd
Operating system Windows NT 6.0 build 6001
Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.26.2 (KHTML, like Gecko) Version/3.2 Safari/525.26.13

Login or register to post comments
com82

Joined: 2007-09-13
Posts: 1
Posted: Mon, 2009-03-02 23:20

Hello, I have the same problem. I updated my gallery from 2.0 to 2.3, installed the cart and try to add an item.

These are the details:

The action you attempted is not permitted.

Error (ERROR_BAD_PARAMETER)in modules/core/classes/helpers/GalleryPermissionHelper_simple.class at line 235 (GalleryCoreApi::error)
in modules/core/classes/GalleryCoreApi.class at line 711 (GalleryPermissionHelper_simple::fetchPermissionsForItems)
in modules/cart/ViewCart.inc at line 87 (GalleryCoreApi::fetchPermissionsForItems)
in modules/core/classes/GalleryView.class at line 293 (ViewCartView::loadTemplate)
in main.php at line 465 (GalleryView::doLoadTemplate)
in main.php at line 104
in main.php at line 88

Request variables: Array
(
[view] => cart.ViewCart
[itemId] => 1727
)

System Information
Gallery version 2.3
PHP version 5.2.8 cgi
Webserver Apache/2.2
Database mysqli 5.0.68-log
Toolkits Thumbnail, NetPBM, Gd
Operating system Linux webxc03s05.ad.aruba.it 2.6.18-92.1.22.el5PAE #1 SMP Tue Dec 16 12:36:25 EST 2008 i686
Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6 GTB5

Login or register to post comments
narcisgarcia
narcisgarcia's picture

Joined: 2007-08-17
Posts: 16
Posted: Wed, 2009-06-10 11:36

When an anonymous user does "Add to cart" for an item:

Quote:
Security Violation
The action you attempted is not permitted.
Back to the Gallery

When the administrator does "Add to cart" for an item:

Quote:
Security Violation
The action you attempted is not permitted.
Back to the Gallery

Error Detail -
Error (ERROR_BAD_PARAMETER)

* in modules/core/classes/helpers/GalleryPermissionHelper_simple.class at line 235 (GalleryCoreApi::error)
* in modules/core/classes/GalleryCoreApi.class at line 711 (GalleryPermissionHelper_simple::fetchPermissionsForItems)
* in modules/cart/ViewCart.inc at line 87 (GalleryCoreApi::fetchPermissionsForItems)
* in modules/core/classes/GalleryView.class at line 293 (ViewCartView::loadTemplate)
* in main.php at line 465 (GalleryView::doLoadTemplate)
* in main.php at line 104
* in main.php at line 88

System Information
Gallery version 2.3
PHP version 5.2.6-3ubuntu4.1 apache2handler
Webserver Apache
Database mysqli 5.0.75-0ubuntu10
Toolkits SquareThumb, ImageMagick, NetPBM, Gd
Operating system Linux nodename 2.6.24-24-openvz #1 SMP Wed Apr 15 19:41:36 UTC 2009 i686
Browser Mozilla/5.0 (X11; U; Linux i686; ca; rv:1.9.0.10) Gecko/2009042523 Ubuntu/9.04 (jaunty) Firefox/3.0.10

Login or register to post comments
narcisgarcia
narcisgarcia's picture

Joined: 2007-08-17
Posts: 16
Posted: Thu, 2009-06-11 09:33

Wiki page to write about this matter:
http://codex.gallery2.org/Gallery2:Modules:cart

Other forum thread about the same bug:
http://gallery.menalto.com/node/86224

Login or register to post comments
narcisgarcia
narcisgarcia's picture

Joined: 2007-08-17
Posts: 16
Posted: Thu, 2009-06-11 11:26
Login or register to post comments
xious

Joined: 2009-06-28
Posts: 2
Posted: Sat, 2009-07-04 00:37

I was having the exact same issue. Once I uploaded a zip executable, installed the Zip Download plugin through the administration page, and then activated the Zip Download, the Add to Cart plugin works perfectly now.

Login or register to post comments
narcisgarcia
narcisgarcia's picture

Joined: 2007-08-17
Posts: 16
Posted: Sat, 2009-07-04 09:43

Are you describing a MS Windows scenario?
The entire plugins panel has become blank in my Gallery.

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9283
Posted: Sat, 2009-07-04 13:45

narcisgarcia, have you made copies of directories under your /modules directory or any other changes?

Do you have at least 32MB of memory available to PHP?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
xious

Joined: 2009-06-28
Posts: 2
Posted: Sun, 2009-07-05 21:57

No, I did everything through FTP and the Gallery Site Admin page. The Cart plugin and Zip Download plugin are both listed under the Commerce section of the Plugins page.

I activated the Cart plugin, uploaded a zip program to my site, activated the Zip Download plugin, then clicked on configure for the Zip Download plugin. At that point, it asked where my zip program located. I entered the native path to the program and clicked Test Settings. After a little playing around, I finally got the test to complete successfully. And then clicked Save Settings and everything worked. Again, I did all of that through the Plugins page on the Site Admin.

Login or register to post comments
narcisgarcia
narcisgarcia's picture

Joined: 2007-08-17
Posts: 16
Posted: Thu, 2009-07-09 11:51

I've downgraded to version 2.2.6 and added some directives to the "apache" site:

php_admin_value open_basedir /var/www/thisgallery/:/usr/bin/
php_admin_value memory_limit 32M
php_admin_value upload_max_filesize 10M
php_admin_value post_max_size 50M

Now the plugins run, but I don't know how a visitor can use Cart to be sent by email.

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9283
Posted: Thu, 2009-07-09 13:12

Read this thread pertaining to the plugins page if on 2.3 or want to be:
http://gallery.menalto.com/node/84006

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments