• Resolved brianbonner

    (@brianbonner)


    I get the following code appearing while running the newest bastats:

    <br />
    <b>Warning</b>: in_array(): Wrong datatype for second argument in <b>/home/owner/public_html/wp-content/plugins/BAStats/BAStats_logger.php</b> on line <b>114</b><br />
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- generator="wordpress/1.5.1.3" -->
    <rss version="2.0"
    xmlns:content="https://purl.org/rss/1.0/modules/content/"
    xmlns:wfw="https://wellformedweb.org/CommentAPI/"
    xmlns:dc="https://purl.org/dc/elements/1.1/"

    It appears to be loading before the header. Any ideas? the author Owen Winkler does not answer his email.

Viewing 8 replies - 16 through 23 (of 23 total)
  • Moderator James Huff

    (@macmanx)

    Chode, please read Brianbonner’s post, starting at the second paragraph, “P.S. BAStats has been fixed …”

    Sorry,
    downloaded BaStats yesterday from Red Alt. And still have this problem..

    add this :c)

    version is 1.0β build 8

    I also downloaded the BAStats.zip-Package from Asymptomatic.net and RedAlt and get the same Error.
    No fixing!
    (The Filedate in the Zip Archive is still 05-05-10 & 05-05-15!)

    Maybe brianbonner can point out, where he downloaded the ‘fixed’ file?

    BTW: I was running BAStats besides StatTraq because it was much smaller and gave me good and quick overview about all needed information.

    I’m getting this error as well, it’s not occuring on my old website, but any new ones using the 1.5.2 code is popping up this error.

    Here’s a bit of a hack/patch that will make the problem go away:

    Open up BAStats_logger.php and go to line 114. It should be this:

    if(in_array('log_spam', $options) && in_array('referer_spam', $settings))
    {

    Change that to this:

    if(!is_array($options))$options = array();
    if(!is_array($settings))$settings = array();
    if(in_array('log_spam', $options) && in_array('referer_spam', $settings))
    {

    Still have the problem?

    It seems to have worked!
    I don’t get the error anymore. Have to test a little to confirm it 100%, but I reckon it’s fixed!
    Thanks Isaac!!!

    Isaac you are amazing. Fixed it for me too!!!

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘BAstats Error’ is closed to new replies.