Module

Developer
Supported

EE 1
EE 2
A/B Test Beta

Back to this add-on's main page
View Other Add-ons From Mark J. Reeves

     

You must be logged in to post.

PHP Error under EE 2.1

General

WebDev777
WebDev777

(One more time, wrapping the code this time)

When I click on the AB Test module link, supposedly for a report, I get this error:

A/B Test Reports
No tests
Reset All
A PHP Error was encountered Severity: Notice
Message: Undefined variable: test
Filename: core/Loader.php(672): eval()‘d code
Line Number: 8

This happens when AB Test cases are actually executing, the counts in the tables are increasing.

Here is the code for this simple test:

{exp:ab_test name="Demo Test"}
{case name
="Red"}
      
<h2><a href="{comment_url_title_auto_path}" title="{title}" style="color: red">{title}</a></h2>
{/case}
{case name
="Blue"}
      
<h2><a href="{comment_url_title_auto_path}" title="{title}"style="color: blue">{title}</a></h2>
{/case}
{
/exp:ab_test} 

Any ideas?

Other questions:
I’m curious as to whether your execution of cases is random or split 50/50 on average. I’d hope the latter so as to help not bias the stats, but I’d like to know what the methodology is anyway.

Finally, is there any plan to add multivariate tests?

Thanks,

Mark

Mark J. Reeves
# 1
Developer
Mark J. Reeves

Thanks for posting, Mark!

I’m planning on looking at this tomorrow with V2.1 Build: 20100810. My previous dev install was actually hosed and I need to get it back up and running, making sure I’m in the same environment as you.

I’m curious as to whether your execution of cases is random or split 50/50 on average. I’d hope the latter so as to help not bias the stats, but I’d like to know what the methodology is anyway.

I’ve taken a really basic approach to coding this, just pulling pieces together to provide the capability. It sounds like you have a bit more background in the statistical analysis end of things than me. Could you elaborate a bit?

The add-on currently just uses a PHP rand() function. See http://php.net/manual/en/function.rand.php

Finally, is there any plan to add multivariate tests?

With goals of 1) keeping this easy to maintain and 2) easy for any/all users to understand and incorporate into their EE sites, I think this would need to be done manually. I.e.,

case="red-bold"

case="blue-bold"

case="red-normal"

case="blue-normal" 

with all markup repeated in each case.

Mark

Mark J. Reeves
# 2
Developer
Mark J. Reeves

Hi Mark,

I’ve sought to reproduce your error this morning and haven’t been able to. Here’s where I’m at:

* I downloaded the latest build of EE 2: 2.1.0 20100810

* Did a clean install using MAMP Pro on my mac

* Dropped ab_test into the third_party add-ons directory

* Installed the module via the Control Panel

At this point, the Module home page was clean, and displayed “No Tests”.

I dropped the demo code into the site’s home template, refreshed that URL a few times, and revisited the Module home page. Stats were correctly displayed, with no errors.

In MAMP Pro, PHP is set to write All errors and warnings to display and log; I’m not seeing any errors.

I’ve toggled between PHP 5.2.13 and PHP 5.3.2 as well. No changes.

Are you:

1) Using the latest download of A/B Test (0.2)?

2) Using PHP4 or PHP5? (I believe I had tested in 4 previously, but the latest version of MAMP Pro is not providing that)

3) Who is your hosting provider?

Thanks,
Mark