WordPress.org

Forums

StatCounter - Free Real Time Visitor Stats
[resolved] mish-mash at the top of my web page (12 posts)

  1. Skunkster
    Member
    Posted 1 year ago #

    I've been working on resolving a new problem that I have had only for a few days. Not sure why it evolved, as I had not made any changes to my website. In summary, when I have statcounter activated, I get some weird text at the top of my web site, something like this:

    Notice: add_option was called with an argument that is deprecated since version 2.3 with no alternative available. in /hermes/bosnaweb03a/b2751/ipw.XXXXXX/public_html/XXXXX.com/wp-includes/functions.php on line 3008

    This problem disappears when I deactivate statcounter, which is a wonderful program that I have previously been very satisfied with.

    Advice? Many thanks.

    https://wordpress.org/plugins/official-statcounter-plugin-for-wordpress/

  2. Skunkster
    Member
    Posted 12 months ago #

    I must be the only one with this problem, so I am probably doing something silly.

    Still, when I load this plug-in, I get the following message from WP:

    "The plugin generated 834 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin."

    And the top of my web-page has the following text:

    "Notice: add_option was called with an argument that is deprecated since version 2.3 with no alternative available. in /hermes/bosnaweb03a/b2751/XXX/public_html/XXX.com/wp-includes/functions.php on line 3008"

    Both of these disappear when I disable the plug-in.

  3. StatCounterSupport
    Member
    Plugin Author

    Posted 12 months ago #

    May I suggest installing code manually as per these steps:

    1. Login to WordPress
    2. Click Appearance in the left hand menu
    3. Select "Editor"
    4. In the list on the right hand side select "Footer (footer.php)"
    5. In the text box to the left paste your StatCounter code just before
    </body></html>
    6. Click the "Update File" button

    The StatCounter code should now be active in your current theme. Please note that if you switch themes you'll have to re-add the code to this file.

  4. StatCounterSupport
    Member
    Plugin Author

    Posted 12 months ago #

    May I suggest installing code manually as per these steps:

    1. Login to WordPress
    2. Click Appearance in the left hand menu
    3. Select "Editor"
    4. In the list on the right hand side select "Footer (footer.php)"
    5. In the text box to the left paste your StatCounter code just before
    closing body tag.
    6. Click the "Update File" button

    The StatCounter code should now be active in your current theme. Please note that if you switch themes you'll have to re-add the code to this file.

  5. Skunkster
    Member
    Posted 12 months ago #

    Thanks for your reply! I'm using Responsive 1.9.5.3 theme and it does not have an "editor" option under "appearance". But Statcounter used to work very well with this theme...

    Should I add this to my footer.php via FTP? And by StatCounter code are your referring to my "project ID" or "security code"?

  6. StatCounterSupport
    Member
    Plugin Author

    Posted 11 months ago #

    Yes, adding to footer.php is perfect and entire code need to be pasted.

    To re-generate your code:-

    1. Log into your account

    2. Click the small "wrench" icon beside your project name - this brings you to the "Installation and Configuration" page

    3. Click "Reinstall Code" from left hand side of page to retrieve your code.

    Thanks

  7. StatCounterSupport
    Member
    Plugin Author

    Posted 11 months ago #

    Yes, adding to footer.php is perfect and entire code need to be pasted.

    To re-generate your code:-

    1. Log into your account

    2. Click the small "wrench" icon beside your project name - this brings you to the "Installation and Configuration" page

    3. Click "Reinstall Code" from left hand side of page to retrieve your code.

    Thanks

  8. StatCounterSupport
    Member
    Plugin Author

    Posted 11 months ago #

    Hi,

    Yes, adding our code to footer.php is perfect and you need to paste our entire code as it is.

    To re-generate your code:-

    1. Log into your account

    2. Click the small "wrench" icon beside your project name - this brings you to the "Installation and Configuration" page

    3. Click "Reinstall Code" from left hand side of page to retrieve your code.

    Thanks

  9. StatCounterSupport
    Member
    Plugin Author

    Posted 11 months ago #

    Hi,

    Yes, adding our code to footer.php is perfect and you need to paste our entire code as it is.

    To re-generate your code:-

    1. Log into your account

    2. Click the small "wrench" icon beside your project name - this brings you to the "Installation and Configuration" page

    3. Click "Reinstall Code" from left hand side of page to retrieve your code.

    Thanks

  10. Skunkster
    Member
    Posted 11 months ago #

    Hmm. I hate being such a pain. In my WP version 3.8.1 I don't see a "wrench" anyplace after I have logged into my account, other than the wrench for "tools", which only includes import and export tools. I'm sorry... i tried googling the "Installation and Configuration" page for WP, but no luck! Many thanks.

  11. StatCounterSupport
    Member
    Plugin Author

    Posted 11 months ago #

    Hi again!

    Can you please click on Support tab at top after logging in your statcounter account and refer this post ?

    I can then quickly install code on your behalf. Via our support channels, it would be much quicker.

    Thanks

  12. Skunkster
    Member
    Posted 11 months ago #

    OK! I've done that. Many thanks!!

  13. Skunkster
    Member
    Posted 11 months ago #

    Whoops. Now I understand that in your instructions from yesterday you were advising me to log into my StatCounter account (not my WP account) to click the wrench and resinstall code. But I have now done that and my problems persist...

    I will leave my site up with the "mish mash" words on the top of it today so you can see what I am talking about.

    Thanks again.

  14. Skunkster
    Member
    Posted 11 months ago #

    Hurrah! Many thank Rory! This resolved the issue:

    change define('WP_DEBUG', true);
    to
    define('WP_DEBUG', false);
    In the wp-config.php file.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic