vtdung2305 / bakesale

Automatically exported from code.google.com/p/bakesale
0 stars 0 forks source link

Infinite method call sequence #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Adding a product to the shopping cart

What is the expected output? What do you see instead?
Error message:
"Fatal error: Maximum function nesting level of '100' reached, aborting! in
C:\xampp\htdocs\cake\cake\libs\debugger.php on line 283"

What version of the product are you using? On what operating system?
rev. 511

Please provide any additional information below.

In shopping_carts_controller.php, ln 108 get_products() calls
products_total() which calls ShippingMethodsController::get_quote() which
calls ShoppingCartsController::get_products() - and there you have an
infinite method call sequence. 

Original issue reported on code.google.com by saltori...@gmail.com on 5 Oct 2007 at 12:17

GoogleCodeExporter commented 9 years ago
It wouldn't be an infinite loop if the second parameter to
ShippingMethodsController::get_quote(), 'cart' would be transferred properly. 
But in
line 71 the cart was found not set (I also checked if(false === $cart)). Looks 
like
the serialization didn't work in shopping_carts_controller.php, ln. 93. But I 
don't
know CakePHP enough to fix this.

Original comment by saltori...@gmail.com on 5 Oct 2007 at 12:41

GoogleCodeExporter commented 9 years ago

Original comment by putkonen...@gmail.com on 18 Oct 2007 at 8:02