Class “Mobile_Detect” not found

Home Forums AdRotate for WordPress Bug Reports Class “Mobile_Detect” not found

  • #176476

    Augenfutter
    Badges:

    There will be an error in v5.13, so on the pages i use the widgets the error “Class “Mobile_Detect” not found” will shown.

    #176483

    Augenfutter
    Badges:

    I found a soultion you need to change the file adrotate-functions.php the lines 88, 105, 122 and 139 from:

    $detect = new Mobile_Detect;

    to:

    $detect = new \Detection\MobileDetect;

    #176484

    whitedd
    Badges:

    Tested… this fix works without problems… no more PHP fatal error

    #176492

    Arnan de Gans
    Badges:

    I didn’t encounter this when updating to the new mobile detect, but I’m testing a similar fix today.
    Thanks for your reports and feedback, I’ll look/try your fix as well.

    #176495

    Arnan de Gans
    Badges:

    This is indeed the right fix. An update will be available shortly.
    Thanks @Augenfutter!

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

You may be interested in