Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error v1.7.1 #80

Open
yochilllllllll opened this issue Aug 9, 2024 · 6 comments
Open

Error v1.7.1 #80

yochilllllllll opened this issue Aug 9, 2024 · 6 comments

Comments

@yochilllllllll
Copy link

yochilllllllll commented Aug 9, 2024

Updated to version 1.7.1 and it messed up the formatting & other elements of my website. Deactivated plugin and it goes back to normal. See attached screenshot.

PHP 7.4.33
Wordpress 6.6.1

No issues with previous version 1.6.3 prior to this update.
Rolling back to 1.6.3 now causes fatal error on staging site.
Rolling back to 1.6.2 functions correctly.

Screen Shot 2024-08-08 at 11 32 08 PM
@crazypsycho
Copy link
Member

crazypsycho commented Aug 9, 2024

Can you make a screenshot of the dynamic-conditions-settings of the widget and activate debug-mode and make a screenshot of the debug-output?

Or could you provide login-data for your staging-page, so i can have a look?

Or you could set WP_DEBUG to true in your wp-config.php und paste the warnings/errors here. Meybe we can find the problem.

@jakobspodsberg
Copy link

got the same issue.

We rolled back to 1.6.2

Our debug.log:
[09-Aug-2024 09:21:34 UTC] PHP Fatal error: Uncaught Error: Class 'WeakMap' not found in /var/www/private.com/public_html/wp-content/plugins/dynamicconditions/Public/DynamicConditionsPublic.php:90
Stack trace:
#0 /var/www/private.com/public_html/wp-content/plugins/dynamicconditions/Lib/DynamicConditions.php(165): DynamicConditions\Pub\DynamicConditionsPublic->__construct('dynamic-conditi...', '1.6.3')
#1 /var/www/private.com/public_html/wp-content/plugins/dynamicconditions/Lib/DynamicConditions.php(89): DynamicConditions\Lib\DynamicConditions->definePublicHooks()
#2 /var/www/private.com/public_html/wp-content/plugins/dynamicconditions/Lib/DynamicConditions.php(273): DynamicConditions\Lib\DynamicConditions->__construct()
#3 /var/www/private.com/public_html/wp-content/plugins/dynamicconditions/dynamic-conditions.php(70): DynamicConditions\Lib\DynamicConditions::run()
#4 /var/www/private.com/public_html/wp-settings.php(522): include_once('/var/www/...')
#5 /var/www/private.com/public_html/wp-config.php(94): require_once('/var/www/... in /var/www/private.com/public_html/wp-content/plugins/dynamicconditions/Public/DynamicConditionsPublic.php on line 90

@crazypsycho
Copy link
Member

Seems the error is from version 1.6.3.
This version is not compatible with PHP <8.0
With 1.7.1 the WeakMap-Error should be fixed with <8.0

@carolinesmedts
Copy link

Hi, I updated to 1.7.2 and have the same problem.
How can I roll back to a version that works?

@crazypsycho
Copy link
Member

With 1.7.2 it must be a different error, because WeakMap dont exists anymore.
But we found an issue if compare by month or days is selected. This will be fixed soon.

Here you can download older versions:
https://wordpress.org/plugins/dynamicconditions/advanced/

@crazypsycho
Copy link
Member

It is now fixed with 1.7.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants