Support » Plugins » Parse error: syntax error, unexpected ‘<‘, expecting ‘)’

  • This morning I was working on making changes to code in style.css and sidebar.php and working on putting adsense code into my site.

    From the plug ins-modigy plug ins, I tried to replace the google adsense code that comes on the google adsense widget with the adsense code I got from google (although you can alter the look of the adsense from the widget sidebar).

    I tried to update the change, and it gave me this:

    Parse error: syntax error, unexpected ‘<‘, expecting ‘)’ in /home/matt/public_html/wp-content/plugins/adsense.php on line 26

    Now, I get this message when I click on the following items of the menu: write, manage, presentation, plug-ins.

    I am not sure what to do about this. I’ve tried deleting the adsense widget and trying again, and reinstalling and trying again, but I really don’t know what else I can tyr without getting access to the the presentation section.

    I think the problem may have to do with me trying to alter this:

    // Options and default values for this widget
    function widget_adsense_options() {
    return array(
    ‘Title’ => “”,
    ‘google_ad_client’ => “”,
    ‘google_ad_width’ => 160,
    ‘google_ad_height’ => 600,
    ‘google_ad_format’ => “160x600_as”,
    ‘google_ad_type’ => “text”,
    ‘google_ad_channel’ => “”,
    ‘google_color_border’ => “336699”,
    ‘google_color_bg’ => “FFFFFF”,
    ‘google_color_link’ => “0000FF”,
    ‘google_color_url’ => “008000”,
    ‘google_color_text’ => “000000”,

    The 26th line down (if I count spaces when counting down… I am very new to all this haha):
    ‘google_ad_client’ => “”,

    Does anyone have any suggestions?

    Thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • whooami



    Looks right to me although you’re missing the next three lines.

    Could you throw up the file somewhere as a *.txt so we can see it? The error might be before that and it’s getting that far before finding the error.

    Hello! Wow I am not sure what happened but I checked again, changing nothing, and now it works fine. I am not sure what happened there…

    Anyways, that brings me to another question. I like the ease of using the google adsense widget, I just drag it into the sidebar widget and it is there… but does this work exactly as if I filled out information on my google adsense account and pasted in the code? Will I still get paid per click, and will it still filter urls that I block?

    By the way, my site ( Poem Prose Script, gets some ads for wordpress and theme templates, something that doesn’t really have anything to do with my content (a website for creative writing). I guess the word “script” is bringing in these results. Any way to prevent these types of ads without changing the name of my site and blocking each url that shows up?

    Thanks for the help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Parse error: syntax error, unexpected ‘<‘, expecting ‘)’’ is closed to new replies.