Woopra Forums » Plugins and Add-ons

[closed]

Wordpress plugin unexpected T_STRING woopra_xml.php on line 30

(17 posts)
  • Started 3 months ago by ukultra
  • Latest reply from shane
  • This topic is closed
  • This topic is resolved
  • ukultra
    Member

    Hi, Fixed the initial problem when activating (line 21 problem) but now I get this when I go to the dashboard and select Woopra Analytics:

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/ultrarac/public_html/justbloggin/myblogg/wp-content/plugins/woopra/woopra_xml.php on line 30

    Any ideas I'm stuck!
    Using PHP version 5.2.5.

    Cheers Colin

    Posted 3 months ago #
  • Let me take a look @ it.

    Posted 3 months ago #
  • Line 30 is a deceleration of the function inside the class. I can only thing that you need to open your xml.php file up and see if you need to add any extra } to the code or re-upload the file.

    Been using this same class for about 5 days now without any problems.

    Posted 3 months ago #
  • ukultra
    Member

    Shane, just tried re-uploading and it's the same. Must be a problem with either my server setup or poss a conflict. Heres the section of code but it looks ok to me:

    public function Init()
    {
    if (!$this->siteid)
    {
    return false; // they both need to be set for this to work
    }
    $this->server = floor(((int)($this->siteid))/100000000);
    return true;
    }

    Cheers...

    Posted 3 months ago #
  • In your WordPress settings, what do you have set as your siteurl?

    Posted 3 months ago #
  • ukultra
    Member

    site url: http://www.thefactoryblindshop.co.uk/cm

    folder /cm/ is the main wordpress folder

    Posted 3 months ago #
  • ukultra
    Member

    Sorry - given you wrong one.
    The site url in settings is:
    http://www.justbloggin.net/myblogg

    /myblogg/ being the main wordpress folder.

    Posted 3 months ago #
  • try opening the woopra_xml.php file and removing "public/private" from the functions. Then re-upload.

    Posted 3 months ago #
  • bstewart23
    Member

    This is going to sound overly grumpy, and I apologize in advance, but nowhere in the ZIPfile or the instructions is there any mention about creating a new folder called "woopra" or "woopra_wordpress" or the like. I'm reluctant to upload a whole bunch of files and folders to my /wp-content/plugins directory because it's messy and it'll overwrite my existing woopra.php file.

    May I suggest that when a plugin involves a suite of files, a separate folder be used?

    Posted 3 months ago #
  • Guys you are totally right! It was my mistake and I apologize...

    The thing is that were in hurry to release this plugin before heading to Lebanon. Now we have fixed all those issues and we will release the fixed version within 24 hours. But we need to make sure that no errors will occur this time.

    I will write a blog post and explain what exactly happened, and I will explain the new features in the new WordPress plugin!

    Thank you people for your support! you were really helpful and supportive.
    Elie

    Chief Eye Candy Officer
    Posted 3 months ago #
  • Benoit
    Member

    After fixing the line 21 issue, using the added lines suggested earlier, I was having the issue of no date popup showing. Looking at the page source, I looked at it and it calls to load the javascript files from the woopra folder, under plugins, so I put all the plugin files in a woopra folder, in the plugins directory, and it brought me to the line 30 error. I'll take a look at that (possibly try removing the public/private mentions as suggested) and let you know how that goes.

    Posted 2 months ago #
  • Benoit
    Member

    OK. All references to public/private removed, the error disappears, BUT it simply seems to search for stats and comes back with 'Your query returned 0 results'... Close, but no cookies for you! ;)

    Posted 2 months ago #
  • ukultra
    Member

    "try opening the woopra_xml.php file and removing "public/private" from the functions. Then re-upload. "

    Cheers Shane, will try this today and post answer. Appolgies to forum for not being back sooner. Had acident with angle grinder - Ouch!
    Colin

    Posted 2 months ago #
  • ukultra
    Member

    Had a look at the woopra_xml.php file and I'm not sure what part I need to remove. Colin

    Posted 2 months ago #
  • ukultra
    Member

    OK, started all over again, made sure everything was deactivated and then removed using wordpress. Checked they where removed using http://ftp.
    Re-downloaded plugin and edited for line21 error. Now it seems to work.

    I no longer get the error on the dashboard as before but all i see at them moment is:

    Your query returned 0 results.
    Click here to retry again!

    Maybe I need to do something else, looking into that now. But so far so good! Cheers...

    Posted 2 months ago #
  • ukultra
    Member

    Ok, settings needed changing, done api key but every time I do the website id it goes back to another key (2147483647) - where this key is coming from I don't know but it won't change which is why I gues I'm seeing no results.

    Posted 2 months ago #
  • This issue is resolved 1.3+

    Posted 2 months ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.