Skip Navigation

Open

Reported for: WPML Sticky Links 1.5.4

Topic Tags: Bug

Overview of the issue

If you are using WPML Sticky Links plugin with PHP 8.x, you will find a deprecated error like the following:

PHP Deprecated: Automatic conversion of false to array is deprecated in .../wp-content/plugins/wpml-sticky-links/classes/class-wpml-sticky-links.php on line 19

Workaround

Please, make sure of having a full backup of your site before proceeding.

  • Open …/wp-content/plugins/wpml-sticky-links/classes/class-wpml-sticky-links.php file.
  • Look for line 19.
  • Just before this line of code:
    			$this->settings['sticky_links_widgets'] = 0;
    
  • Add the following:
    			if (!is_array($this->settings)){
    				$this->settings = array();
    			}
    

4 Responses to “WPML Sticky Links - Deprecated Error on PHP 8.x”

  1. When are you going to release an official update for this? I don’t want to code workarounds in official 3rd party plugins.
    Many thanks, Daniel

    • Hello Daniel,
      The issue is on our development queue, and we plan to release a new version with the fix soon.

Leave a Reply

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>