Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress How to Make a Website with WordPress Custom Post Types and Fields in WordPress Setting Up Custom Post Types and Fields

Error in installation of Custom Post Type UI plugin

I'm trying to install Custom Post Type UI plugin as shown in the video by going to Plugin->Add New.But it gives error i.e.

Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\myTheme\wp-includes\class-http.php on line 1610

I also tried to download Custom Post Type UI from Notes and then upload it but in installation process it gives error i.e.

ERROR: The uploaded file exceeds the upload_max_filesize directive in php.ini.

Can anyone experienced same as me? Have any Solution?I'm Waiting for that :( ????????

3 Answers

Richard Hope
Richard Hope
25,237 Points

It looks like it is timing out before it has chance to install. I see you are using xampp so you can change the time limit by doing the following:

  1. go to xampp control panel
  2. select 'config' button for apache
  3. select 'php.ini'
  4. In the file that opens search for 'max_execution_time', it will say 'max_execution_time=30'
  5. You can change 30 to whatever time you like, 0 is unlimited
  6. save file
  7. try installing plugin again

Good luck

Yeah! you are right I'm using xampp. I changed time to 300 but again same error :(

Richard Hope
Richard Hope
25,237 Points

If your error message is is still saying max execution time is 30 seconds when you've changed it to something different, maybe you need to restart everything and try again if you havn't done already. I'm afraid that's all I have to offer.

Richard Hope
Richard Hope
25,237 Points

You might also try changing to max_upload_filesize setting in the same file to something larger.