WP Residence Help WP Residence Help

  • WPRESIDENCE
  • Video Tutorials
  • Client Support
  • API
Home / FAQ / Add property (set_time_limit() warning)

Add property (set_time_limit() warning)

2302 views 0

Warning: set_time_limit() Cannot Set Max Execution Time Limit

If you see a warning similar to this:

Warning: set_time_limit(): Cannot set max execution time limit due to system policy in /wp-content/themes/wpestate/user-dashboard-add.php on line 7

it means the server does not allow PHP scripts to change the maximum execution time from the website code.

This is usually a hosting restriction, especially on shared hosting servers.

Why This Happens

The theme may request more execution time for actions that need longer processing, such as front-end property submission, image processing, or saving property details.

PHP uses the function set_time_limit() for this purpose.

On some servers, the hosting provider blocks this function or prevents websites from changing the execution time limit because the server resources are shared with other accounts.

When this happens, PHP shows the warning, but the restriction comes from the hosting configuration, not from the theme.

Official PHP Documentation

https://www.php.net/manual/en/function.set-time-limit.php

Recommended Solution

The best solution is to contact your hosting provider and ask them to adjust the PHP execution time settings for your website.

You can ask them to check:

  • whether set_time_limit() is allowed on your hosting account
  • whether max_execution_time can be increased
  • whether max_input_time can be increased
  • whether the warning can be prevented by changing the PHP configuration

Recommended values to ask for are:

max_execution_time = 300
max_input_time = 300
memory_limit = 256M

Message to Send to Hosting Support

Hello,

My WordPress website shows this PHP warning:

Warning: set_time_limit(): Cannot set max execution time limit due to system policy

Please check if set_time_limit() is blocked on my hosting account and if the PHP max_execution_time value can be increased for this website.

Recommended values:

max_execution_time = 300
max_input_time = 300
memory_limit = 256M

Please also confirm if this warning is caused by a server-level policy restriction.

Thank you.

If Hosting Cannot Change This Setting

Some hosting providers do not allow this setting to be changed on shared hosting plans.

If your hosting provider confirms that the restriction cannot be removed, the available options are:

  • upgrade to a hosting plan that allows higher PHP execution limits
  • move the website to a hosting provider with better WordPress/PHP configuration control
  • ask a developer to review whether the specific line can be safely adjusted for your website

About Editing Theme Files

As a temporary test, a developer may comment the line that calls set_time_limit() in the file mentioned by the warning, such as:

wp-content/themes/wpestate/user-dashboard-add.php

However, editing theme core files is not recommended as a permanent solution because:

  • the change can be lost after a theme update
  • it does not increase the server execution limit
  • longer actions may still fail if the server timeout is too low

The correct solution is to have the hosting provider allow the needed PHP execution time or increase the limit from the server configuration.

Important Note About PHP Warnings

This message is a PHP warning. It may not always stop the website from working, but if PHP warnings are displayed publicly, they can appear on the front end or in the user dashboard.

On a live website, PHP errors and warnings should be logged, not displayed publicly.

If the warning is visible to visitors, ask your hosting provider or developer to disable public PHP error display and enable error logging instead.

Final Recommendation

If this warning appears during front-end property submission or user dashboard actions, first ask the hosting provider to check the server policy and PHP limits.

If the hosting provider cannot allow higher limits, consider upgrading the hosting plan or moving to a hosting environment that supports standard WordPress theme and plugin processing requirements.

FAQ

Related Articles

  • FAQ – How do I migrate my website to a new hosting provider?
  • Why Add Listing and User Dashboard May Not Be Visible on Mobile
  • Can I add Email, WhatsApp, and Phone to property cards on the Advanced Search Results page?
  • Why are H2 or H3 tags shown as plain text after listing pages?

Help Categories

  • 18Agent, Agency & Developers
  • 5Blog Posts & Blog Lists
  • 38Elementor Shortcodes Built-In
  • 45FAQ
  • 15Footer
  • 5Getting Started
  • 37Header
  • 2IDX & MLSImport
  • 6Installation & Setup
  • 23Installation FAQ
  • 23Maps & Location Settings
  • 21Multi-Language Third Party Plugins
  • 6Other Third party Plugins
  • 19Pages
  • 4Payments & Monetization
  • 20Property Lists, Categories & Archive
  • 36Property Pages & Layouts
  • 31Search & Filtering
  • 162Technical how to | Custom Code Required
  • 8Technical: Actions and filters
  • 6Technical: Child Theme
  • 86Theme Options & Global Settings
  • 6Translations & Languages
  • 16WPBakery Shortcodes
  • 51WPResidence / WPEstate CRM
  • 50WPResidence 5.0 Documentation
  • 8WPResidence Elementor Studio
  • 50WPResidence Translate Plugin

Join Us On

Powered by WP Estate - All Rights Reserved
  • WPRESIDENCE
  • Video Tutorials
  • Client Support
  • API