PHP Error on attempting login and browse site

After updating to new version of plugin we get the following errors:

Fatal error: Maximum execution time of 60 seconds exceeded in /home/redflagthebownet/public_html/wp-content/plugins/coursepress/includes/classes/class.student.completion.php on line 375

Fatal error: Maximum execution time of 60 seconds exceeded in /home/redflagthebownet/public_html/wp-includes/formatting.php on line 1764

The error appears on all pages

  • Bojan Radonic

    Hey there @Purple,

    I'm running latest version of CoursePress on WordPress 4.2.2. on my site without any issues so could you please add more information on when you're getting this error?

    Is this happening when you try to update the plugin or after the plugin is updated when trying to access site backed?

    Also can you try increasing max execution time. To do that you can try 2 things:

    1. add this line to your wp-config.php file:
    ini_set('max_execution_time', 300);

    2. edit your php.ini file and change the value of max_execution_time there.

    Best regards,
    Bojan

  • Purple

    The issue started today... The erros occur when you try to login as a student,

    When you browse the site

    Errors in error log are:

    [13-May-2015 08:26:00 UTC] PHP Fatal error: Maximum execution time of 60 seconds exceeded in /home/redflagthebownet/public_html/wp-includes/wp-db.php on line 2508
    [13-May-2015 08:28:51 UTC] PHP Fatal error: Maximum execution time of 60 seconds exceeded in /home/redflagthebownet/public_html/wp-content/plugins/coursepress/includes/classes/class.student.completion.php on line 375
    [13-May-2015 08:44:15 UTC] PHP Fatal error: Maximum execution time of 60 seconds exceeded in /home/redflagthebownet/public_html/wp-includes/functions.php on line 380
    [13-May-2015 08:45:42 UTC] PHP Fatal error: Maximum execution time of 60 seconds exceeded in /home/redflagthebownet/public_html/wp-includes/formatting.php on line 1764
    [13-May-2015 08:46:54 UTC] PHP Fatal error: Maximum execution time of 60 seconds exceeded in /home/redflagthebownet/public_html/wp-includes/wp-db.php on line 1966
    [13-May-2015 08:51:33 UTC] PHP Fatal error: Maximum execution time of 60 seconds exceeded in /home/redflagthebownet/public_html/wp-includes/meta.php on line 826
    [13-May-2015 09:03:13 UTC] PHP Fatal error: Maximum execution time of 60 seconds exceeded in /home/redflagthebownet/public_html/wp-content/plugins/coursepress/includes/classes/class.student.completion.php on line 332
    [13-May-2015 09:06:02 UTC] PHP Fatal error: Maximum execution time of 90 seconds exceeded in /home/redflagthebownet/public_html/wp-includes/functions.php on line 380
    [13-May-2015 09:07:42 UTC] PHP Fatal error: Maximum execution time of 60 seconds exceeded in /home/redflagthebownet/public_html/wp-includes/query.php on line 2840
    [13-May-2015 09:11:56 UTC] PHP Fatal error: Maximum execution time of 60 seconds exceeded in /home/redflagthebownet/public_html/wp-includes/functions.php on line 380
    [13-May-2015 09:24:20 UTC] PHP Fatal error: Maximum execution time of 60 seconds exceeded in /home/redflagthebownet/public_html/wp-includes/formatting.php on line 1765
    [13-May-2015 09:26:09 UTC] PHP Fatal error: Maximum execution time of 60 seconds exceeded in /home/redflagthebownet/public_html/wp-includes/formatting.php on line 1764
    [13-May-2015 09:37:16 UTC] PHP Fatal error: Maximum execution time of 60 seconds exceeded in /home/redflagthebownet/public_html/wp-includes/formatting.php on line 1765
    [13-May-2015 09:40:23 UTC] PHP Fatal error: Maximum execution time of 90 seconds exceeded in /home/redflagthebownet/public_html/wp-includes/formatting.php on line 1765
    [13-May-2015 09:46:46 UTC] PHP Fatal error: Maximum execution time of 90 seconds exceeded in /home/redflagthebownet/public_html/wp-content/plugins/coursepress/includes/classes/class.student.completion.php on line 375
    [13-May-2015 09:57:16 UTC] PHP Fatal error: Maximum execution time of 90 seconds exceeded in /home/redflagthebownet/public_html/wp-content/plugins/coursepress/includes/classes/class.student.completion.php on line 332
    [13-May-2015 10:12:33 UTC] PHP Fatal error: Maximum execution time of 60 seconds exceeded in /home/redflagthebownet/public_html/wp-includes/wp-db.php on line 1094
    [13-May-2015 10:51:50 UTC] PHP Fatal error: Maximum execution time of 60 seconds exceeded in /home/redflagthebownet/public_html/wp-includes/formatting.php on line 1765
    [13-May-2015 10:59:59 UTC] PHP Fatal error: Maximum execution time of 60 seconds exceeded in /home/redflagthebownet/public_html/wp-includes/formatting.php on line 1771

    Have tried your suggestion and no luck

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.