Welcome Guest, Not a member yet? Register   Sign In
CI_Exceptions
#1

[eluser]Ahmed Nuaman[/eluser]
I keep getting this error when submitting a form (that includes HTML in the POST):

Code:
Fatal error: Cannot redeclare class CI_Exceptions in D:\Domains\mosaicappeals.com\wwwroot\system\libraries\Exceptions.php on line 27

All that's happening in the controller is validation (using the CI class) and inserting data into the DB. Validation works, for example, if I leave a required field out, I get the error from the CI lib.

Any ideas?
#2

[eluser]Unknown[/eluser]
Hello,

I solved it by replacing "require" with "require_once" in the load_class function.
Common.php file.

Just for avoiding having the same f...ing problem, I replace "include" with"include_once" in the display_error function in the DB_Driver class

include_once(BASEPATH.'libraries/Exceptions'.EXT)

It works now Smile




Theme © iAndrew 2016 - Forum software by © MyBB