• Resolved The Three

    (@3wwwgr)


    hello there! After updating to 3.11.4 i get 2 php warnings!

    1) PHP Warning: explode() expects parameter 2 to be string, array given in /var/www/vhosts/website/httpdocs/wp-content/plugins/adrotate-pro/adrotate-cookie.php on line 72

    2) PHP Warning: explode() expects parameter 2 to be string, array given in /var/www/vhosts/website/httpdocs/wp-content/plugins/adrotate-pro/adrotate-cookie.php on line 73

    Line 72: $timer = explode(',', adrotate_get_cookie('track', $banner->id));

    i think it must be something like:

    Line 72: $timer = explode(',', (string) adrotate_get_cookie('track', $banner->id));

    Line 73: $impression_timer = $now - $adrotate_config['impression_timer'];

    https://wordpress.org/plugins/adrotate/

Viewing 15 replies - 1 through 15 (of 16 total)
  • Getting the warning here too. Please update the plugin ASAP.

    Getting the warning here too.

    I just updated the plugin and that’s when I started getting this warning too and I can’t add any new ads. Any help would be appreciated! Thanks!

    same here

    Same here – just updated and getting warnings on all the ads (not on the groups). Please fix!!

    Warnings are for:

    adrotate-output.php line 72
    adrotate-cookie.php line 59

    Thread Starter The Three

    (@3wwwgr)

    Yes sorry my fault… but i am getting the error for adrotate-cookie.php in defferent line…

    /adrotate-pro/adrotate-output.php on line 72
    /adrotate-pro/adrotate-cookie.php on line 73

    I have the same!!

    Same. It happened shortly after I installed the latest plugin update for the adrotate plugin. Help!!

    Happening to me too.

    I would suggest to revert back to the older version until these issues are fixed.

    That’s what I just did and it’s working again, with the previous version of the plugin though. I’ll update when this issue is resolved.

    For those wanting to go back to the last version, you can download it here (version 3.10.13) – https://wordpress.org/plugins/adrotate/download/ Then upload it.

    I used “Easy Theme and Plugin Upgrades” to quickly upgrade it. Pretty sure that’s not necessary, but just wanted to post exactly what I did.

    Everything is working as it was now.

    I have not reverted back to the older version.

    On Firefox and Chrome the problem appears to be fixed.

    On Safari I am still getting the errors.

    Pain to downgrade. Just removing all code right now until it’s fixed. 🙁

    I followed Shrum’s instructions and lead and was able to downgrade the plugin and the code is on longer showing up on my site logged in or now. Thank you! I look forward to hearing about when this is resolved before updating the plugin again.

    Plugin Author Arnan de Gans

    (@adegans)

    Version 3.11.15 fixes this – Cookies are no longer used.
    The library turned out to be highly unreliable 🙁

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘PHP Warning!’ is closed to new replies.