Advertisement:

Author Topic: Warning: urldecode() expects exactly 1 parameter  (Read 198 times)

mannyleal04

  • Newbie
  • *
  • Posts: 1
Warning: urldecode() expects exactly 1 parameter
« on: February 18, 2019, 07:57:48 am »
I'm trying to import the Aravt homepage theme to WordPress but I get this error:
Warning: urldecode() expects exactly 1 parameter, 2 given in /homepages/7/d767601892/htdocs/promarketing/wp-content/themes/aravt/framework/classes/class.wp.customize.php on line 485

I went to see the code at that line but everything looks fine unless I'm missing something:

    public function wp_customizer_import_handler($data){
        if( !empty($data) ){
            if( urldecode($data, true) ){
                $options = unserialize( urldecode($data) );
                if( !empty($options) ){
                    foreach ($options as $key => $value) {
                        set_theme_mod( $key, $value );
                    }
                    TTLess::build_css();
                    return true;
                }
            }
        }
        return false;
    }

WEBmods

  • Hero Member
  • *****
  • Posts: 937
  • github.com/webmods-croatia/love-osclass/ | patrick
Re: Warning: urldecode() expects exactly 1 parameter
« Reply #1 on: February 18, 2019, 12:00:33 pm »
OSCLASS forums. Not Wordpress forums...

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: Warning: urldecode() expects exactly 1 parameter
« Reply #2 on: February 18, 2019, 12:34:28 pm »
Remove 2nd parameter:

Code: [Select]
, true
Btw. hopefully you know what you're doing, themes are not directly compatible at all.