Title: Problem with plugin
Last modified: June 7, 2024

---

# Problem with plugin

 *  Resolved [rafaviana](https://wordpress.org/support/users/rafaviana/)
 * (@rafaviana)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/problem-with-plugin-84/)
 * Hello, my website doesn’t work if your plugin is enabled. Details of the error:
 *     ```wp-block-code
       Um erro do tipo E_ERROR foi causado na linha 90 do ficheiro /home/joanamor/public_html/wp-content/plugins/dynamicconditions/Public/DynamicConditionsPublic.php. Mensagem de erro: Uncaught Error: Class 'WeakMap' not found in /home/joanamor/public_html/wp-content/plugins/dynamicconditions/Public/DynamicConditionsPublic.php:90Stack trace: 0 /home/joanamor/public_html/wp-content/plugins/dynamicconditions/Lib/DynamicConditions.php(165): DynamicConditions\Pub\DynamicConditionsPublic->__construct('dynamic-conditi…', '1.6.3') 1 /home/joanamor/public_html/wp-content/plugins/dynamicconditions/Lib/DynamicConditions.php(89): DynamicConditions\Lib\DynamicConditions->definePublicHooks() 2 /home/joanamor/public_html/wp-content/plugins/dynamicconditions/Lib/DynamicConditions.php(273): DynamicConditions\Lib\DynamicConditions->__construct() 3 /home/joanamor/public_html/wp-content/plugins/dynamicconditions/dynamic-conditions.php(70): DynamicConditions\Lib\DynamicConditions::run() 4 /home/joanamor/public_html/wp-settings.php(453): include_once('/home/joanamor/…') 5 /home/joanamor/public_html/wp-config.php(88): require_once('/home/joanamor/…') 6 /home/joanamor/public_html/wp-load.php(50): re
       ```
   
    -  This topic was modified 1 year, 11 months ago by [rafaviana](https://wordpress.org/support/users/rafaviana/).

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [jmtz98](https://wordpress.org/support/users/jmtz98/)
 * (@jmtz98)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/problem-with-plugin-84/#post-17810101)
 * My Website also has the same errors
    -  This reply was modified 1 year, 11 months ago by [jmtz98](https://wordpress.org/support/users/jmtz98/).
 *  [jmtz98](https://wordpress.org/support/users/jmtz98/)
 * (@jmtz98)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/problem-with-plugin-84/#post-17810111)
 * At the moment I have solved the problem by installing the previous version before
   updating the plugin
 *  Thread Starter [rafaviana](https://wordpress.org/support/users/rafaviana/)
 * (@rafaviana)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/problem-with-plugin-84/#post-17810126)
 * how can I do that [@jmtz98](https://wordpress.org/support/users/jmtz98/) ?
 *  [jmtz98](https://wordpress.org/support/users/jmtz98/)
 * (@jmtz98)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/problem-with-plugin-84/#post-17810129)
 * I had a backup of the plugin, I deleted the plugin with the update and uploaded
   the previous one. [@rafaviana](https://wordpress.org/support/users/rafaviana/)
    -  This reply was modified 1 year, 11 months ago by [jmtz98](https://wordpress.org/support/users/jmtz98/).
 *  [erikjandelange](https://wordpress.org/support/users/erikjandelange/)
 * (@erikjandelange)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/problem-with-plugin-84/#post-17815847)
 * Same issue here: **PHP Fatal error: Uncaught Error: Class ‘WeakMap’ not found**
   (
   side note: this only appears on php v7.4)Is there any indication of when we can
   expect an update to address this issue.
 * With kind regards
 *  Thread Starter [rafaviana](https://wordpress.org/support/users/rafaviana/)
 * (@rafaviana)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/problem-with-plugin-84/#post-17819557)
 * No feedback from the plugin author to date…
 *  [Ronaldt](https://wordpress.org/support/users/neejoh/)
 * (@neejoh)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/problem-with-plugin-84/#post-17837820)
 * Same here, running a WP CLI command to clear Elementor cache. This runs in PHP
   7.4, throwing the following fatal error:
 *     ```wp-block-code
       PHP Fatal error:  Uncaught Error: Class 'WeakMap' not found in /home/USER/domains/DOMAINNAME/public_html/wp-content/plugins/dynamicconditions/Public/DynamicConditionsPublic.php:90Stack trace:#0 /home/USER/domains/DOMAINNAME/public_html/wp-content/plugins/dynamicconditions/Lib/DynamicConditions.php(165): DynamicConditions\Pub\DynamicConditionsPublic->__construct()#1 /home/USER/domains/DOMAINNAME/public_html/wp-content/plugins/dynamicconditions/Lib/DynamicConditions.php(89): DynamicConditions\Lib\DynamicConditions->definePublicHooks()#2 /home/USER/domains/DOMAINNAME/public_html/wp-content/plugins/dynamicconditions/Lib/DynamicConditions.php(273): DynamicConditions\Lib\DynamicConditions->__construct()#3 /home/USER/domains/DOMAINNAME/public_html/wp-content/plugins/dynamicconditions/dynamic-conditions.php(70): DynamicConditions\Lib\DynamicConditions::run()#4 /home/USER/domains/gemaaktindenoor in /home/USER/domains/DOMAINNAME/public_html/wp-content/plugins/dynamicconditions/Public/DynamicConditionsPublic.php on line 90
       ```
   
 * By the looks of it there is no problem on PHP 8.x but we cannot update the PHP
   version on CLI just yet.
 *  Plugin Author [crazypsycho](https://wordpress.org/support/users/crazypsycho/)
 * (@crazypsycho)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/problem-with-plugin-84/#post-17941492)
 * With v1.7.0 we added support for php 7.4 again.
 *  [Ronaldt](https://wordpress.org/support/users/neejoh/)
 * (@neejoh)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/problem-with-plugin-84/#post-17943310)
 * Thanks [@crazypsycho](https://wordpress.org/support/users/crazypsycho/)! Just
   tested and it seems to indeed be fixed for me.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Problem with plugin’ is closed to new replies.

 * ![](https://ps.w.org/dynamicconditions/assets/icon-256x256.jpg?rev=1969812)
 * [Dynamic Conditions](https://wordpress.org/plugins/dynamicconditions/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dynamicconditions/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dynamicconditions/)
 * [Active Topics](https://wordpress.org/support/plugin/dynamicconditions/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dynamicconditions/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dynamicconditions/reviews/)

## Tags

 * [dynamic-conditions](https://wordpress.org/support/topic-tag/dynamic-conditions/)

 * 9 replies
 * 5 participants
 * Last reply from: [Ronaldt](https://wordpress.org/support/users/neejoh/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/problem-with-plugin-84/#post-17943310)
 * Status: resolved