Ticket #753 (closed Bug: fixed)

Opened 4 months ago

Last modified 4 months ago

form action from examples controller is broken

Reported by: msaraujo Owned by: Woody
Priority: minor Milestone: 2.2
Component: Libraries Version: SVN HEAD
Keywords: form action, examples controller Cc:

Description

Adding $validation = new Validation(array()); fixes the problem inside form action from examples.php controller.

I would commit if I had karma for it, but no problem anyways.

Regards,

Marcelo Araujo

Here is the following error:

An error was detected which prevented the loading of this page. If this problem persists, please contact the website administrator.

system/libraries/Validation.php [56]:

Argument 1 passed to Validation_Core::construct() must be an array, none given, called in /home/marcelo/base/trunk/kohana/trunk/application/controllers/examples.php on line 120 and defined Stack Trace

  • application/controllers/examples.php [120]:

Validation_Core->construct( )

*

Examples_Controller->form( )

  • system/core/Kohana.php [304]:

ReflectionMethod?->invokeArgs( Examples_Controller Object (

[uri] => URI Object

( )

[input] => Input Object

(

[use_xss_clean:protected] => 1 [magic_quotes_gpc:protected] => [ip_address] =>

)

)

)

*

Kohana::instance( )

  • system/core/Event.php [209]:

call_user_func( Array (

[0] => Kohana [1] => instance

)

)

  • system/core/Bootstrap.php [55]:

Event::run( system.execute )

require( system/core/Bootstrap.php )

Loaded in 0.0353 seconds, using 1.13MB of memory. Generated by Kohana v2.2.

Change History

Changed 4 months ago by msaraujo

  • owner changed from - No owner - to Woody

Changed 4 months ago by OscarB

  • status changed from new to closed
  • resolution set to fixed

Fixed in r3293

Note: See TracTickets for help on using tickets.