Fatal error: execution time of 30 seconds exceeded in phpmyadmin - php

Today I tried to access phpMyAdmin but I couldn't because of the this error message:
Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\phpMyAdmin\vendor\samyoul\u2f-php-server\src\U2FServer.php on line 10
So...I tried to modify max_execution_time in php.ini file but it didn't work
Also, in line 10 from U2FServer.php file is the class name:
Why is this happening? Can you help me, please?
Thank you

Related

Fatal error: Maximum execution time of 300 seconds exceeded in C:\wamp\www\tas\system\database\drivers\sqlsrv\sqlsrv_driver.php on line 152

I've a codeigniter/php application running in WAMP and connected to sql server database using. When i tried to retrieve a long report from the system i'm getting the following error:
Fatal error: Maximum execution time of 300 seconds exceeded in C:\wamp\www\tas\system\database\drivers\sqlsrv\sqlsrv_driver.php on line 152
I've already increased max_execution_time = 99999 in php.ini and also changet the value in C:\wamp\apps\phpmyadmin4.0.4\libraries\config.default.php the $cfg['ExecTimeLimit'] = 0; but still not working. What could be the reason, is there any thing I should change in sqlsrv_driver.php may be?
Increase the timeout, preferably for that query only.

Fatal error: Maximum execution time of 30 seconds exceeded in C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\modules\phpmy

I got this error in EasyPhp when I try to access to EasyPhp MyAdmin to see my database.
Fatal error: Maximum execution time of 30 seconds exceeded in C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\modules\phpmyadmin414x150807154856\libraries\dbi\DBIMysqli.class.php on line 285
Please Help !
Add the following at the top of your php script
set_time_limit(0);
ignore_user_abort(1);
set_time_limit - Limits the maximum execution time in seconds (0 is unlimited)
ignore_user_abort - Set whether a client disconnect should abort script execution

Read excel in php [duplicate]

This question already has answers here:
Fatal error: Maximum execution time of 300 seconds exceeded
(22 answers)
Closed 8 years ago.
I have PHP 5.3.29 installed and trying to read an excel file with php-excel-reader-2.21, but it gives error as below
Fatal error: Maximum execution time of 300 seconds exceeded in php-excel-reader-2.21\excel_reader2.php on line 143
Also tried to use phpExcelReader, it gives error as below.
Fatal error: Maximum execution time of 300 seconds exceeded in C:\Apache2.2\htdocs\phpExcelReader\Spreadsheet\Excel\Reader\oleread.php on line 96
Working on maximum time limit may not be helpful here as I have only 2 rows to read in excel file and for that the value "300" I have set is already high. anyone has idea on why the libraries failing to read excel? or any alternative suggestions?
In your php.ini file there is a directive max_execution_time, change it to what you want.
OR
in your PHP script, write following line:
ini_set('MAX_EXECUTION_TIME', -1);

Max Execution Time error despite setting php.ini correctly

I have been struggling with this for past one hour. I am using WAMP Local server on windows maching so everything is under my control. I am getting maximum execution time 60 seconds error when trying to import Wordpress xml file.
I have set these values in php.ini:
max_execution_time = 1200
memory_limit = 512M
max_input_time = -1
I have also edited my wp-config file : set_time_limit(0);
I restarted server after making changes. Still I get error
) Fatal error: Maximum execution time of 60 seconds exceeded in C:\wamp\www\xxa\wp-includes\wp-db.php on line 1285
Thanks
Ahmar
This must have something to do with the hard coded max_execution_time set to 60.
I had the same issue with the WordPress Importer. Turned out it was because of the hard coded #set_time_limit( 60 ) in the wp-includes/functions.php file:
function wp_get_http( $url, $file_path = false, $red = 1 ) {
#set_time_limit( 60 );
I commented out the set_time_limit( 60 ) call and it worked fine after that:
//#set_time_limit( 60 );
This problem can arise when the inital check performed by the plugin takes more than 30 seconds.
Please try either:
Adapting the wp-config.php:
set_time_limit(60);
Important – If you are making changes in wp-config.php, then add this line above the “/* That’s all, stop editing! Happy blogging. */” comment.
Adapting the /.htaccess file of your WordPress installation
php_value max_execution_time 60
Adapting the php.ini file
max_execution_time = 60;
Preferably the changes are made in the wp-config.php file.
Please let me know if that solves the issue.
Thanks
I had to test register_shutdown_function() myself -- I didn't think it'd run. After all, how can a user function run once there's no more memory, or execution time has elapsed? I was surprised to learn that shutdown functions do run, even in an OOM situation, or when execution time has been exceded. Proof of concept:
To test memory limit:
<?php
function asdf() { echo "omg\n"; }
register_shutdown_function('asdf');
ini_set('memory_limit', '1000');
$x = '';
while(true) {
$x .= 'lkajsdlfkjasldkfjlaskdfjasldkfj';
}
Output:
PHP Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 169540 bytes) in /home/scratch.php on line 9
PHP Stack trace:
PHP 1. {main}() /home/scratch.php:0
Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 169540 bytes) in /home/scratch.php on line 9
Call Stack:
0.0002 81360 1. {main}() /home/scratch.php:0
omg
To test execution time:
cat scratch.php
<?php
function asdf() { echo "omg\n"; }
register_shutdown_function('asdf');
set_time_limit(1);
while(true) {}
Output:
PHP Fatal error: Maximum execution time of 1 second exceeded in /home/scratch.php on line 7
PHP Stack trace:
PHP 1. {main}() /home/scratch.php:0
Fatal error: Maximum execution time of 1 second exceeded in /home/scratch.php on line 7
Call Stack:
0.0002 80200 1. {main}() /home/scratch.php:0
omg
Note that, to get your message to display before PHP's error output, you'd have to disable PHP's error output entirely. Which is best practice for a production site anyway.

Fatal error: Maximum execution time of 30 seconds exceeded [duplicate]

This question already has answers here:
Fatal error: Maximum execution time of 30 seconds exceeded
(17 answers)
Closed 8 years ago.
I'm new to the php.
When I'm trying to connect to crea(Canada realestate) database I encountered a error
Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\cr\PHRets_CREA.php on line 1465
again I executed the code then it is showing
Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\cr\PHRets_CREA.php on line 1408
Then I changed the following line in php.ini and restarted my server
max_execution_time=300
This time it again sown different line number
Fatal error: Maximum execution time of 300 seconds exceeded in C:\xampp\htdocs\cr\PHRets_CREA.php on line 1489
How to overcome this problem?
Here the complete code is http://crea.ca/data-distribution-facility-documentation
It seems your script is taking too much time to execute and it is being timedout.
Edit your php.ini and change the value of max_execution_time to 1000 and restart your web server.
You can also try to increase your memory_limit.

Categories