Plugin Tumult Hype Animations: Variables.php issue

Hello! From several days, my Wordpress websites can't used the Tumult Hype Animations plugin. The plugin is not activated. The Wordpress message is :

Hello ! Depuis quelques jours, je ne peux plus utiliser le plugin Tumulte Hype Animations. Wordpress refuse de l'activer en signalant une Erreur Fatale. :

Warning : Undefined variable $wpdb in /homepages/24/d178227784/htdocs/anne-rieger/wp-content/plugins/tumult-hype-animations/includes/variables.php on line 4

Warning : Attempt to read property "prefix" on null in /homepages/24/d178227784/htdocs/anne-rieger/wp-content/plugins/tumult-hype-animations/includes/variables.php on line 4

Fatal error : Uncaught TypeError: round(): Argument #1 ($num) must be of type int|float, string given in /homepages/24/d178227784/htdocs/anne-rieger/wp-content/plugins/tumult-hype-animations/includes/variables.php:32 Stack trace: #0 /homepages/24/d178227784/htdocs/anne-rieger/wp-content/plugins/tumult-hype-animations/includes/variables.php(32): round() #1 /homepages/24/d178227784/htdocs/anne-rieger/wp-content/plugins/tumult-hype-animations/includes/variables.php(10): parse_size() #2 /homepages/24/d178227784/htdocs/anne-rieger/wp-content/plugins/tumult-hype-animations/includes/variables.php(5): upload_mb() #3 /homepages/24/d178227784/htdocs/anne-rieger/wp-content/plugins/tumult-hype-animations/hypeanimations.php(19): include('/homepages/24/d...') #4 /homepages/24/d178227784/htdocs/anne-rieger/wp-admin/includes/plugin.php(2314): include_once('/homepages/24/d...') #5 /homepages/24/d178227784/htdocs/anne-rieger/wp-admin/plugins.php(192): plugin_sandbox_scrape() #6 {main} thrown in /homepages/24/d178227784/htdocs/anne-rieger/wp-content/plugins/tumult-hype-animations/includes/variables.php on line 32

Is somebody can help me ? Merci pour votre aide.

I notice that your block looks like this [hypeanimations_anim id= »5″]

Which may be the problem. The error is saying it is getting a string rather than a int or float.

the block number should be inclosed in quotes,

[hypeanimations_anim id="5"]

1 Like

Have you used the plugin before? Is this a new issue or has it never worked? Do you have Hype documents uploaded? It would also be great to know what version of Wordpress you're running as well.

Thank you for your answer. I tried any things in order to repare but it doesn't work.
I used this plugin from several years on two or three websites and it works very well. It is only from several days that it doesn't work. After I see that, I changed the version of Wordpress and I upgraded the version of PHP. Today the Wordpress version is 6.2 and PHP version is 8. No more result. I also suppress all plugins of these websites. The website named nippur.fr is a test site. There is no information (text, image) in line. I have deleted Hype document in the database.
I tried to install Hype Animation on four websites but on none the plugin works and causes the same PHP error.

Can you please try adding this line to the top of the variables.php file:

global $wpdb;

And let me know if that reduces the errors (or things work correctly again)?

The most recent version of the plug-in should resolve your issue— please give it a shot.

1 Like

Thanks a lot. Now it works.
Now I will contact your colleague about the plugin for Illustrator not working on my computer.
Best regards.
Etienne

1 Like