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) Thanks, Ted Gibbs |
|
| Login or register to post comments |

Posts: 1
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
Posts: 1
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
Posts: 16
When an anonymous user does "Add to cart" for an item:
When the administrator does "Add to cart" for an item:
Posts: 16
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
Posts: 16
Bug tracker entry:
https://sourceforge.net/tracker/?func=detail&aid=2804789&group_id=7130&atid=107130
Posts: 2
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.
Posts: 16
Are you describing a MS Windows scenario?
The entire plugins panel has become blank in my Gallery.
Posts: 9283
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
Posts: 2
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.
Posts: 16
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.
Posts: 9283
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