- What the Creation of Dynamic Property Notice Says in WordPress
- Why the Notice Started With PHP 8.2
- When the Creation of Dynamic Property Notice Prints and When WordPress Hides It
- How the Notice Can Break Login
- Find the Plugin Causing the Issue
- How to Fix the Creation of Dynamic Property Notice
- When to Open a Ticket
- Frequently Asked Questions About the Creation of Dynamic Property Notice
- How do I turn off the creation of dynamic property warning in WordPress in 2026?
- Is the creation of dynamic property notice a warning or an error on a WordPress site?
- Why does the creation of dynamic property notice show up only after I move to PHP 8.2 or newer in 2026?
- Creation of dynamic property notice vs undefined array key warning: which is more serious on a WordPress site?
- Should I use the AllowDynamicProperties attribute vs declaring the property in a plugin I wrote myself?
- Can AHosting support help find which plugin causes the creation of dynamic property notice on my site?
- Which PHP versions do AHosting sites run in 2026, and do they show the creation of dynamic property notice?
- Does updating the plugin always remove the creation of dynamic property notice from the page?
- Can I change the PHP version for one site in my AHosting cPanel without touching my other sites?
- What does the creation of dynamic property notice look like inside debug.log in 2026?
The creation of dynamic property notice means code wrote to an object property its class never declared, which PHP 8.2 and later flag. It prints only when WP_DEBUG is on, because WordPress drops deprecations itself when it is off. In our lab a printed notice blocked the login page, and the popular error_reporting line in wp-config.php did not hide it. The path in the notice names the plugin or theme to update.
What the Creation of Dynamic Property Notice Says in WordPress
The creation of dynamic property notice is PHP telling you that some code assigned a value to an object property its class never declared. The full line reads Deprecated: Creation of dynamic property Name::$property is deprecated in /path/file.php on line N. It is a deprecation, which is advance notice and not a failure: in our lab the page still returned HTTP 200 and every line after the notice still ran.
Each part of the line is a clue. The class name before the double colon is the code that did the assigning, the word after the dollar sign is the property it invented, and the path and line number point at the assignment itself. Because the path usually starts with wp-content/plugins/ or wp-content/themes/ followed by a folder name, the notice normally names its own culprit.
Why the Notice Started With PHP 8.2
Before PHP 8.2, writing to a property a class had not declared quietly created it, so a typo such as nane for name became a silent bug. The PHP RFC that deprecated dynamic properties sets the schedule: PHP 8.2 raises the deprecation and still creates the property, and PHP 9.0 throws an Error exception. The RFC exempts stdClass and classes that handle writes through __get and __set. It also adds the #[AllowDynamicProperties] attribute for classes that need the old behavior on purpose.
Old plugins and themes trip over it because their authors wrote $this->settings = array() in a constructor without a matching public $settings line, which worked on every earlier PHP version. Your host decides when you meet the notice, because the host decides the PHP version. On one AHosting shared server, 524 site folders carry the cPanel PHP handler block: 374 select PHP 8.4 and 142 select PHP 8.2 (counted 2026-10-21). Both versions raise the notice, so a plugin with this habit raises it on either.
When the Creation of Dynamic Property Notice Prints and When WordPress Hides It
Most site owners never see this notice on a live site, and the reason is in WordPress rather than PHP. The function wp_debug_mode() in wp-includes/load.php sets error_reporting() on every request. With WP_DEBUG on, line 614 sets E_ALL. With it off, line 635 sets a shorter list that leaves out E_DEPRECATED, so the notice is dropped before it can print or log, whatever php.ini says.
Turning WP_DEBUG on changes the picture, and three more settings then decide what happens: WP_DEBUG_DISPLAY, WP_DEBUG_LOG and the PHP display_errors value. We ran one test class through the combinations on WordPress 7.1.5 and PHP 8.5.10. Our guide to why the default debug log sits in a public folder explains the log row.
| WP_DEBUG | WP_DEBUG_DISPLAY | WP_DEBUG_LOG | Printed on the page? | Written to a log file? |
|---|---|---|---|---|
| false | any | not set | No | No, E_DEPRECATED is removed at line 635 |
| true | true | false | Yes, above the doctype | No |
| true | false | a file path | No | Yes, one line per notice |
| true | not defined | false | Yes in the lab, because its display_errors was on | No |
true, plus error_reporting(E_ALL & ~E_DEPRECATED); in wp-config.php | true | false | Yes, the line had no effect | No |
The last row is the one to remember. A forum answer that ranks for this notice says to add error_reporting(E_ALL & ~E_DEPRECATED); to wp-config.php. That line runs before wp-settings.php loads, so wp_debug_mode() overwrites it, and the notice printed anyway in our lab.
How the Notice Can Break Login
A deprecation that prints is not harmless, because it is output, and output sent before the headers blocks anything that sends a header afterwards. With display on, the notice appeared 295 characters before the <!DOCTYPE html> on the home page. We then posted correct credentials to wp-login.php. A clean class got a 302 redirect and four cookies, while the old-style class got HTTP 200, zero cookies and the message Cannot modify header information – headers already sent. A notice alone locked the admin out.
The same rule affects JSON. A REST request without a JSON Accept header came back as HTML that began with the notice, which is why WordPress forces display off for JSON requests at lines 642 to 646. Our guide to the headers already sent warning and our guide to the Updating failed JSON error cover the two symptoms in detail. If a notice is the first thing on a login page you cannot pass, turn display off before you do anything else.
Find the Plugin Causing the Issue
- Read the path in the first notice. A folder under
wp-content/plugins/orwp-content/themes/names the code, andwp-content/mu-plugins/names a must-use plugin. - Confirm it. Rename that folder in cPanel File Manager, or deactivate the plugin, reload the page and check that the notice is gone. Rename the folder back afterwards.
- Open the plugin changelog and look for dynamic property or PHP 8.2 wording. If an update exists, take it on a staging copy first.
The decoder below turns the path and what you see into the next step. When the path names a core file, the real culprit is usually printed one message higher.
How to Fix the Creation of Dynamic Property Notice
Fixes That Do Not Remove the Creation of Dynamic Property Notice
Adding the error_reporting() line to wp-config.php does nothing while WP_DEBUG is on, as the table showed. Moving the site back to PHP 8.1 hides the notice only by running a PHP branch that the php.net supported versions page no longer lists, and PHP 8.2 itself loses security support on 31 December 2026. Editing the plugin file works until the next update overwrites it.
Fixes That Do Remove the Creation of Dynamic Property Notice
On a live site, leave WP_DEBUG off. WordPress’s own debugging guide says these tools are meant for local testing and staging installs, not production. On a staging copy, set WP_DEBUG_DISPLAY to false and give WP_DEBUG_LOG a path outside the web root, so the notice goes to a file instead of the page. Then update the plugin, or send its developer the exact path and line, because only a change in the class removes the cause.
If the code is yours, the class decides what silences the notice. PHPStan’s guide to its undefined property error lists three legitimate routes for dynamic properties: magic methods, stdClass and the attribute. Psalm flags the same pattern before it runs, as UndefinedThisPropertyAssignment. We tested six declarations with the old plugin pattern.
| Class declaration | Notice raised? | What it means |
|---|---|---|
| No declaration (the old plugin habit) | Yes | The property is created on the fly |
public $settings; declared in the class | No | The write targets a declared property |
#[AllowDynamicProperties] on the class | No | The class opts in to dynamic properties |
| A child of a class that has the attribute | No | The effect is inherited, without repeating the attribute |
A class with a __set() method | No | The method handles the write |
stdClass | No | The one bundled class that allows it |
Declaring the property is the fix when its name is known. The attribute suits a class that truly holds arbitrary properties, and per the RFC both routes keep working in PHP 9.0, while the undeclared write becomes an Error.
When to Open a Ticket
If the notice is still there after the plugin is updated or its folder is renamed, open a ticket with the full notice text, starting with the path, and we will look at it with you. On our AHosting web hosting plans the PHP version is picked per domain in cPanel, so one site can be tested without touching the others.
A store usually runs more plugins than a brochure site, so a WooCommerce hosting plan has more places for a notice to start. That is reasoning, not a measurement. The check is the same on any plan: read the path, find the folder, update the code.
Frequently Asked Questions About the Creation of Dynamic Property Notice
How do I turn off the creation of dynamic property warning in WordPress in 2026?
Specifically, set WP_DEBUG to false in wp-config.php, or keep it on and set WP_DEBUG_DISPLAY to false with WP_DEBUG_LOG pointing at a file. In our lab either change removed the notice from every page. An error_reporting line in wp-config.php did not.
Is the creation of dynamic property notice a warning or an error on a WordPress site?
In practice it is a deprecation notice, which is advance warning. In our lab the page still returned HTTP 200 and the code after the notice still ran. However, the PHP RFC says it becomes an Error exception in PHP 9.0, so the cause needs fixing.
Why does the creation of dynamic property notice show up only after I move to PHP 8.2 or newer in 2026?
Indeed, PHP 8.1 and earlier create the property silently and say nothing. PHP 8.2 added the deprecation, so an old plugin that never declared its property starts reporting the day the site moves to 8.2, 8.3, 8.4 or 8.5.
Creation of dynamic property notice vs undefined array key warning: which is more serious on a WordPress site?
Typically the undefined array key warning is the more serious one, because it means code read a value that does not exist and carried on with null. The dynamic property notice only warns about a write that still succeeds today. Both print only when debugging is on.
Should I use the AllowDynamicProperties attribute vs declaring the property in a plugin I wrote myself?
For example, declare the property when you know its name, because that also protects you from typos. Use the attribute only for a class that really holds arbitrary properties. The RFC keeps attributed classes working in PHP 9.0, but an undeclared write becomes an Error.
Can AHosting support help find which plugin causes the creation of dynamic property notice on my site?
Specifically, yes. Open a ticket with the full notice text, including the file path and line number, and we will look at it with you. That path usually names the plugin or theme before anyone has to guess.
Which PHP versions do AHosting sites run in 2026, and do they show the creation of dynamic property notice?
As a result of per-domain PHP settings, versions differ by site. On one shared server we counted 524 site folders with the PHP handler block: 374 select PHP 8.4 and 142 select PHP 8.2. Both versions raise the notice, but it prints only when WP_DEBUG and display are on.
Does updating the plugin always remove the creation of dynamic property notice from the page?
In practice only when the developer shipped a fix. Read the changelog for dynamic property or PHP 8.2 wording, update, then reload and look for the same file and line. If the notice remains, send the developer that exact line.
Can I change the PHP version for one site in my AHosting cPanel without touching my other sites?
In practice, yes. The PHP version is chosen per domain in the cPanel MultiPHP Manager. That said, going back to PHP 8.1 only hides the notice, and the php.net supported versions page no longer lists 8.1, so fix the plugin instead.
What does the creation of dynamic property notice look like inside debug.log in 2026?
Specifically, one line per occurrence that starts with the date, then PHP Deprecated: Creation of dynamic property Class::$property is deprecated in a file path on line N. Because that file can sit inside the web root, point WP_DEBUG_LOG at a path outside it.





