1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Bug New A/B test yacks out with memory errors

Discussion in 'Better Analytics' started by ccombs, Jun 21, 2016.

  1. #1
    Hello! We are testing this plugin with a large production site. Creating a new A/B test fails with memory errors from PHP. Any suggestions?
    SEMrush
     

    Attached Files:

    • 2c.png
      2c.png
      File size:
      90.2 KB
      Views:
      117
    ccombs, Jun 21, 2016 IP
    SEMrush
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,145
    Likes Received:
    2,579
    Best Answers:
    457
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    Hmmm... from the looks of that, it looks like there's some backend query that is filling up memory. Better Analytics doesn't do any queries (at least not directly... possibly if you are using MySQL as a caching mechanism).

    If you do nothing but disable Better Analytics, does it go away?
     
    digitalpoint, Jun 22, 2016 IP
  3. ccombs

    ccombs Greenhorn

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #3
    Tricky part is that it's only showing up in the Better Analytics admin area, when we hit New A/B Test.

    I asked our developer to look into it, and he pointed out that this line might be the cause of the error, line 281 in experiments.php?

    $allPosts = get_posts(array(
    'posts_per_page' => 100000
    ));​
     
    ccombs, Jun 22, 2016 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,145
    Likes Received:
    2,579
    Best Answers:
    457
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    That definitely could be an issue if you have just an insane about of posts within WordPress... since Better Analytics builds a drop-down list of all the posts for cases where you are running an A/B experiment on a specific post (for example altering just the title).

    How many posts are we talking exactly in your setup?
     
    digitalpoint, Jun 22, 2016 IP
  5. ccombs

    ccombs Greenhorn

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #5
    Around 37,500
    some of the other plugins we use (e.g., Advanced Ads) do an ajax call for this circumstance--a textbox with type-to-search of post names
     
    ccombs, Jun 22, 2016 IP