{"id":2388,"date":"2023-07-31T12:22:50","date_gmt":"2023-07-31T12:22:50","guid":{"rendered":"https:\/\/qa.uichemy.com\/?post_type=documents&#038;p=2388"},"modified":"2026-04-14T11:58:16","modified_gmt":"2026-04-14T06:28:16","slug":"how-to-fix-php-time-limit-issue","status":"publish","type":"documents","link":"https:\/\/qa.uichemy.com\/hi\/docs\/how-to-fix-php-time-limit-issue\/","title":{"rendered":"How to Fix PHP Time Limit Issue?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">One of the common issues you might face when you are importing a large or complex figma design with some large size images in Elementor using UiChemy is the max_execution_time or PHP time limit issue.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Due to this issue, when you import the template, it takes a while and then eventually shows an Internal Server Issue error.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1920\" height=\"945\" src=\"https:\/\/qa.uichemy.com\/wp-content\/uploads\/2023\/07\/uichemy-import-template-internal-server-issue-new.gif\" alt=\"uichemy import template internal server issue\" class=\"wp-image-2398\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Why Does PHP Time Limit Problem Occur?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When you click on Export to Elementor in UiChemy, the images used in the Figma layout are uploaded to our cloud server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now when you import the template, the import time will vary on many factors like image size, your network speed, your server location etc.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By default, WordPress has a PHP time limit or max_execution_time of 30 seconds, so if your import takes more than 30s, then it will time out, and you\u2019ll see the error.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Check the PHP Time Limit?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To check your existing PHP time limit from the Dashboard, go to <strong>Tools<\/strong> &gt; <strong>Site Health<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then go to the <strong>Info<\/strong> &gt; <strong>Server<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There you\u2019ll see your current PHP Time Limit.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1920\" height=\"1080\" src=\"https:\/\/qa.uichemy.com\/wp-content\/uploads\/2023\/07\/site-health-server-info.png\" alt=\"site health server info\" class=\"wp-image-2390\" srcset=\"https:\/\/qa.uichemy.com\/wp-content\/uploads\/2023\/07\/site-health-server-info.png 1920w, https:\/\/qa.uichemy.com\/wp-content\/uploads\/2023\/07\/site-health-server-info-300x169.png 300w, https:\/\/qa.uichemy.com\/wp-content\/uploads\/2023\/07\/site-health-server-info-1024x576.png 1024w, https:\/\/qa.uichemy.com\/wp-content\/uploads\/2023\/07\/site-health-server-info-768x432.png 768w, https:\/\/qa.uichemy.com\/wp-content\/uploads\/2023\/07\/site-health-server-info-1536x864.png 1536w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/figure>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><em>Note: We recommend having a PHP time limit of 300.<\/em>&nbsp;<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">How to Increase the PHP Time Limit (max_execution_time)?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Increasing the PHP time limit is a bit technical thing, and it can vary from host to host, so the best option is to contact your host and ask them to increase the limit.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But if you can\u2019t do it through your host, then you can follow any one of the following processes.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Using PHP.ini<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You can edit the PHP.ini file to increase the PHP time limit, but the problem is most small hosting providers won\u2019t give you access to PHP.ini.<br><br>But If you have access to it, just add the following line to it.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>max_execution_time = 300;<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Using wp-config.php&nbsp;<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If you don\u2019t have access to PHP.ini alternatively, you can do it through the wp-config.php file.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To do so simply go to your WordPress installation directory and look for wp-config.php then edit the file and add the following line.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>set_time_limit(300);<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"718\" height=\"570\" src=\"https:\/\/qa.uichemy.com\/wp-content\/uploads\/2023\/07\/wp-config-edit.png\" alt=\"wp config edit\" class=\"wp-image-2391\" srcset=\"https:\/\/qa.uichemy.com\/wp-content\/uploads\/2023\/07\/wp-config-edit.png 718w, https:\/\/qa.uichemy.com\/wp-content\/uploads\/2023\/07\/wp-config-edit-300x238.png 300w\" sizes=\"(max-width: 718px) 100vw, 718px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Using .htaccess file<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You can do the same by editing your .htaccess file.&nbsp;<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><em>Note: Be very careful while making changes to the .htaccess file as because changes made without knowledge can make your site inaccessible as well.<\/em><\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Open the .htaccess file and add the following line<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>max_execution 300<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"734\" height=\"493\" src=\"https:\/\/qa.uichemy.com\/wp-content\/uploads\/2023\/07\/htaccess-edit.png\" alt=\"htaccess edit\" class=\"wp-image-2392\" srcset=\"https:\/\/qa.uichemy.com\/wp-content\/uploads\/2023\/07\/htaccess-edit.png 734w, https:\/\/qa.uichemy.com\/wp-content\/uploads\/2023\/07\/htaccess-edit-300x201.png 300w\" sizes=\"(max-width: 734px) 100vw, 734px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Once you\u2019ve made the changes make sure to check the server info from Site Health to confirm the changes.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1920\" height=\"1080\" src=\"https:\/\/qa.uichemy.com\/wp-content\/uploads\/2023\/07\/site-health-server-info-updated.png\" alt=\"site health server info updated\" class=\"wp-image-2393\" srcset=\"https:\/\/qa.uichemy.com\/wp-content\/uploads\/2023\/07\/site-health-server-info-updated.png 1920w, https:\/\/qa.uichemy.com\/wp-content\/uploads\/2023\/07\/site-health-server-info-updated-300x169.png 300w, https:\/\/qa.uichemy.com\/wp-content\/uploads\/2023\/07\/site-health-server-info-updated-1024x576.png 1024w, https:\/\/qa.uichemy.com\/wp-content\/uploads\/2023\/07\/site-health-server-info-updated-768x432.png 768w, https:\/\/qa.uichemy.com\/wp-content\/uploads\/2023\/07\/site-health-server-info-updated-1536x864.png 1536w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If you are using InstaWp, you can follow <a href=\"https:\/\/docs.instawp.com\/en\/article\/increase-memory-limit-7qe6q2\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">their guide to increase the PHP time limit<\/a>.\u00a0<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now if you import the template, you should be able to import it easily.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To counter this issue better, you can even <a href=\"https:\/\/qa.uichemy.com\/hi\/docs\/how-to-export-your-figma-design-without-images\/\" target=\"_blank\" rel=\"noreferrer noopener\">export your Figma template without images in UiChemy<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can also <a href=\"https:\/\/qa.uichemy.com\/hi\/docs\/how-to-export-your-figma-design-with-scaled-images\/\" target=\"_blank\" rel=\"noreferrer noopener\">export your Figma layout with scaled images<\/a> to reduce the execution time.<\/p>\n","protected":false},"author":3,"featured_media":7559,"parent":0,"template":"","format":"standard","docs":[14,15],"class_list":["post-2388","documents","type-documents","status-publish","format-standard","has-post-thumbnail","hentry","docs-troubleshooting","docs-troubleshooting-docs"],"acf":[],"_links":{"self":[{"href":"https:\/\/qa.uichemy.com\/hi\/wp-json\/wp\/v2\/documents\/2388","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qa.uichemy.com\/hi\/wp-json\/wp\/v2\/documents"}],"about":[{"href":"https:\/\/qa.uichemy.com\/hi\/wp-json\/wp\/v2\/types\/documents"}],"author":[{"embeddable":true,"href":"https:\/\/qa.uichemy.com\/hi\/wp-json\/wp\/v2\/users\/3"}],"version-history":[{"count":0,"href":"https:\/\/qa.uichemy.com\/hi\/wp-json\/wp\/v2\/documents\/2388\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/qa.uichemy.com\/hi\/wp-json\/wp\/v2\/media\/7559"}],"wp:attachment":[{"href":"https:\/\/qa.uichemy.com\/hi\/wp-json\/wp\/v2\/media?parent=2388"}],"wp:term":[{"taxonomy":"docs","embeddable":true,"href":"https:\/\/qa.uichemy.com\/hi\/wp-json\/wp\/v2\/docs?post=2388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}