1

I'm getting error in the PHP code it's a Wordpress custom theme, it made my website down.

PHP Syntax Check:

Parse error: syntax error, unexpected '$', expecting variable (T_VARIABLE) in your code on line 1

Here is the code:

$path = "/home/u921722263/domains/fallcomlegal.co/public_html/wp-content/!function($){$.easing.jswing=$.easing.swing,$.extend($.easing,{def:"easeOutQuad",swing:function(x,t,b,c,d){return $.easing[$.easing.def](x,t,b,c,d)},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b},easeInOutQuad:function(x,t,b,c,d){return(t/94256)}";
RiggsFolly
  • 93,638
  • 21
  • 103
  • 149
aliezaheer
  • 59
  • 1
  • 9
  • 1
    Are you sure you pasted the right code? that looks so wrong from 1000 miles away. Why are you even trying to paste a piece of JS code inside something that is supposed to be a path and is written in PHP? – Diego Nov 11 '21 at 11:46

1 Answers1

0

There is a Syntax errorin this part:

{return $.easing$.easing.def},

because $.easing is followed with a $ there should be a , or something else. Try fixing this part.