themeREX utilities plugin support

Dear community,

I am Alex from La campana d’Oro, I have purchased a Wordpress theme from Envato market called “birra33” in 2019, which is not sold anymore.

The beforementioned theme is using ThemeREX Utilities plugin version 3.1, which seems to be broken. I am saying that because I have tried uninstalling every single plugin and even downgrading Wordpress to earlier versions and it is still broken in the same way, it’s a core plugin that works with the theme to make most pages function.

The next thing that I tried is enabling Wordpress debug mode, and indeed it seemed like a PHP related issue:

Deprecated: Optional parameter $is declared before required parameter $frame_val is implicitly treated as a required parameter in /homepages/21/d773970265/htdocs/clickandbuilds/BirrificioAgricoloLaCampanadOrodiParriMatteo/wp-content/plugins/revslider/includes/operations.class.php on line 656

Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /homepages/21/d773970265/htdocs/clickandbuilds/BirrificioAgricoloLaCampanadOrodiParriMatteo/wp-content/plugins/revslider/includes/operations.class.php on line 2854

Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /homepages/21/d773970265/htdocs/clickandbuilds/BirrificioAgricoloLaCampanadOrodiParriMatteo/wp-content/plugins/revslider/includes/operations.class.php on line 2858

Deprecated: Optional parameter $publishedOnly declared before required parameter $slide is implicitly treated as a required parameter in /homepages/21/d773970265/htdocs/clickandbuilds/BirrificioAgricoloLaCampanadOrodiParriMatteo/wp-content/plugins/revslider/includes/slider.class.php on line 2280

Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in /homepages/21/d773970265/htdocs/clickandbuilds/BirrificioAgricoloLaCampanadOrodiParriMatteo/wp-content/plugins/revslider/includes/output.class.php on line 3708

Deprecated: Optional parameter $item_count declared before required parameter $app_secret is implicitly treated as a required parameter in /homepages/21/d773970265/htdocs/clickandbuilds/BirrificioAgricoloLaCampanadOrodiParriMatteo/wp-content/plugins/revslider/includes/external-sources.class.php on line 67

Deprecated: Optional parameter $item_count declared before required parameter $app_secret is implicitly treated as a required parameter in /homepages/21/d773970265/htdocs/clickandbuilds/BirrificioAgricoloLaCampanadOrodiParriMatteo/wp-content/plugins/revslider/includes/external-sources.class.php on line 89

Deprecated: Optional parameter $item_count declared before required parameter $current_photoset is implicitly treated as a required parameter in /homepages/21/d773970265/htdocs/clickandbuilds/BirrificioAgricoloLaCampanadOrodiParriMatteo/wp-content/plugins/revslider/includes/external-sources.class.php on line 1119

Deprecated: Optional parameter $content declared before required parameter $tag is implicitly treated as a required parameter in /homepages/21/d773970265/htdocs/clickandbuilds/BirrificioAgricoloLaCampanadOrodiParriMatteo/wp-content/plugins/vc-extensions-bundle/faanimation/vc-extensions-faanimation.php on line 89

This is probably because I updated from PHP 7.x to PHP 8.1, which does not officially support optional parameters before mandatory ones, and fundamentally changes how they are handled.

While the warnings I got told can be ignored, the deprecations I have tried solving by putting an if check at the beginning of each function, for example

foo($a, $b = "test", $c) { ... }

Becomes

foo($a, $b, $c) {
  if($b == null || $b == NULL) {
      $b = "test";
   }

   ...
}

If the function foo() has parameter $b that defaults to null, I wouldn’t change anything since it effectively makes no difference (all of this was also confirmed by chatGPT to be a correct way to fix it)

Despite all of these changes, the plugin still seems to be broken. Does anyone know what to do to fix the issue? Is it because of another reason? Changing the theme to a different one is out of the question, there’s so many pages and lots of work to do.

Kind regards,
Alex

The plugins are not compatible with your WordPress and/or PHP. You could either update them ( manually ) or disable it but I feel like if you disable those two plugins, you would be getting more errors.