Okay
  Public Ticket #2725932
Food Farm Theme Critical Error
Closed

Comments

  • Wetlime started the conversation

    Hello,

    When using the Foodfarm menu (gear) in the upper left corner of the Wordpress Interface, we keep receiving the "there has been a critical error on this website. Please check your site admin email inbox for instructions."

    After turning on debug mode for our wordpress site, this fatal error was recognized as the following:

    Fatal error: Uncaught Exception: parse error: failed at `$h1_font_family: ; ` /home3/lovelji8/public_html/wp-content/themes/foodfarm/scss/config/_config_skin.scss on line 53 in /home3/lovelji8/public_html/wp-content/themes/foodfarm/inc/admin/sassphp/src/Parser.php:1851 Stack trace: #0 /home3/lovelji8/public_html/wp-content/themes/foodfarm/inc/admin/sassphp/src/Parser.php(138): LeafoScssPhpParser->throwParseError() #1 /home3/lovelji8/public_html/wp-content/themes/foodfarm/inc/admin/sassphp/src/Compiler.php(2038): LeafoScssPhpParser->parse(' //SKIN //Gen...') #2 /home3/lovelji8/public_html/wp-content/themes/foodfarm/inc/admin/sassphp/src/Compiler.php(778): LeafoScssPhpCompiler->importFile('/home3/lovelji8...', Object(stdClass)) #3 /home3/lovelji8/public_html/wp-content/themes/foodfarm/inc/admin/sassphp/src/Compiler.php(818): LeafoScssPhpCompiler->compileImport(Array, Object(stdClass)) #4 /home3/lovelji8/public_html/wp-content/themes/foodfarm/inc/admin/sassphp/src/Compiler.php(645): LeafoScssPhpCompiler->comp in /home3/lovelji8/public_html/wp-content/themes/foodfarm/inc/admin/sassphp/src/Parser.php on line 1851

    We've accessed this Parser.php file and found the code to be the following on line 1851: 

    public function throwParseError($msg = 'parse error', $count = null)     {         $count = ! isset($count) ? $this->count : $count;

            $line = $this->getLineNo($count);

            if (! empty($this->sourceName)) {             $loc = "$this->sourceName on line $line";         } else {             $loc = "line: $line";         }

            if ($this->peek("(.*?)( |$)", $m, $count)) {             throw new Exception("$msg: failed at `$m[1]` $loc");         }

            throw new Exception("$msg: $loc");     }

    Please let us know how we can fix this problem. 

  • Wetlime replied

    Error Image Attached 

  •  599
    WordPress replied

    Hello,

    You can try click button Save Change, Then go to Genetal -> Typograpy -> Choose font family for tags h1 -> H6 and check again.