Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Emre Vona

    (@emrevona)

    what a silly issue 🙂 I’ll investigate it.

    Thread Starter iyadmn

    (@iyadmn)

    Ok thanks
    Take this opportunity to add two more ads showing me the debug:

    [13-Mar-2015 19:07:19 UTC] PHP Notice: Undefined index: name in /homepages/43/d350881269/htdocs/wp-content/plugins/wp-fastest-cache/inc/css-utilities.php on line 331
    [13-Mar-2015 19:07:19 UTC] PHP Notice: Undefined variable: name in /homepages/43/d350881269/htdocs/wp-content/plugins/wp-fastest-cache/inc/css-utilities.php on line 375

    Thanks in advance

    Thread Starter iyadmn

    (@iyadmn)

    In case you worth something:
    You may have relation to the Custom CSS of the themes, since the first code that comes out is the CSS that will inject certain things the theme I’m using

    [21-Apr-2015 00:20:21 UTC] PHP Notice: Undefined index: name in /home/mardan50/easybaires.com/wp-content/plugins/wp-fastest-cache/inc/css-utilities.php on line 418

    [21-Apr-2015 00:20:22 UTC] PHP Notice: Undefined variable: name in /home/mardan50/easybaires.com/wp-content/plugins/wp-fastest-cache/inc/css-utilities.php on line 462

    Plugin Author Emre Vona

    (@emrevona)

    I will investigate this issue.

    mulli.bahr

    (@mullibahr)

    Hello.
    I have a fix to the name index undefined…
    File: /wp-content/plugins/wp-fastest-cache/inc/css-utilities.php
    Function : public function combineCss(…)
    there is an array
    $prev = array("content" => "", "value" => array(), "name" => "");
    I assume that by mistake it is NOT REDEINED properly in the loop.
    It should be: (around lines 426-435, just add also “name” cell to the array)

    }else{
    							$prev["content"] = $this->fixRules($prev["content"]);
    							$this->mergeCss($wpfc, $prev);
    							$prev = array("content" => "", "value" => array(), "name" => "");
    						}
    					}else{
    						$prev["content"] = $this->fixRules($prev["content"]);
    						$this->mergeCss($wpfc, $prev);
    						$prev = array("content" => "", "value" => array(), "name" => "");
    					}

    Note the extra cell added to the array which was omitted

    mulli.bahr

    (@mullibahr)

    Hello
    Solution to the name variable undefined.

    File: /wp-content/plugins/wp-fastest-cache/inc/css-utilities.php
    Just add the following line under the function declaration (around line 447)

    public function mergeCss($wpfc, $prev){
    		        $name ="";

    It is needed since in the loop there is a reference to the $name.

    Plugin Author Emre Vona

    (@emrevona)

    thank you so much @mulli.bahr 🙂 I fixed as you said.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Different errors’ is closed to new replies.