manjusha
manjusha

Reputation: 123

Fatal error: Maximum execution time of 30 seconds exceeded in codeigniter

Fatal error: Maximum execution time of 30 seconds exceeded in D:\wamp\www\moneymanager18_8_15\system\database\drivers\mysqli\mysqli_driver.php on line 221

This happens during uploading.file is getting uploaded,but the same time this error shows.

Upvotes: 4

Views: 33429

Answers (3)

Heemanshu Bhalla
Heemanshu Bhalla

Reputation: 3765

In order to resolve this error you need to set execution time to unlimited or need to increase it.

you need to open root index.php file in root folder and set execution time.

ini_set('max_execution_time', 0); // 0 = Unlimited

Upvotes: 0

Saty
Saty

Reputation: 22532

There is a something that CodeIgniter not include this in their documentation. Go to the page in system/core/CodeIgniter.php and search this and change it according to your requirement

if (function_exists("set_time_limit") == TRUE AND @ini_get("safe_mode") == 0)
{
    @set_time_limit(300);// change according to your requirement
}

Upvotes: 4

Bugfixer
Bugfixer

Reputation: 2617

Write this above your controller.

ini_set('max_execution_time', 0); 
ini_set('memory_limit','2048M');

Upvotes: 13

Related Questions