WordPress.org

Ready to get started?Download WordPress

Forums

AdRotate
[resolved] After upgrading to 3.8.1 (22 posts)

  1. chocks
    Member
    Posted 1 year ago #

    Hi Arnan, thanks for the effort! After upgrading I got these errors, any clue what could they be?

    Warning: shuffle() expects parameter 1 to be array, integer given in C:\xampp\htdocs\wp-content\plugins\adrotate\adrotate-output.php on line 268
    
    Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\wp-content\plugins\adrotate\adrotate-output.php on line 302
    
    Warning: shuffle() expects parameter 1 to be array, integer given in C:\xampp\htdocs\wp-content\plugins\adrotate\adrotate-output.php on line 268
    
    Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\wp-content\plugins\adrotate\adrotate-output.php on line 302

    On a different topic: does the max impressions functionality get trimmed on the new version?

    Thanks

    Joaquin

    http://wordpress.org/extend/plugins/adrotate/

  2. Arnan de Gans
    Member
    Plugin Author

    Posted 1 year ago #

    What did you do to get this error? Any reproduction steps?

    Max impressions is not limited in any way.

  3. chocks
    Member
    Posted 1 year ago #

    I got it after network activate (wp ms). To see if I could get it running again I enabled on a per site basis and still got me that error. May be because it's Xampp running it?

  4. schneeb
    Member
    Posted 1 year ago #

    I am getting the same error with a live site. I had an ad block that was working fine before the update, but since 3.8 has not functioned:

    Warning: shuffle() expects parameter 1 to be array, integer given in /*url removed*/wp-content/plugins/adrotate/adrotate-output.php on line 268

    Warning: Invalid argument supplied for foreach() in /*url removed*/wp-content/plugins/adrotate/adrotate-output.php on line 302

    Also, my stats are still not displaying. I haven't cross referenced the database, so I don't know if the data was removed entirely or just not showing. Since updating to 3.8 yesterday, it has not added any stats although the ads have definitely been seen.

  5. Hassan
    Member
    Posted 1 year ago #

    Since this thread is about "After upgrading to 3.8.1" I thought I'd write this here rather than start a whole new thread.

    So, not quite sure if this is a feature or a bug, but after 3.8.1 any new ad I create the schedule date is automatically set to the year 1970! In earlier versions the date was automatically set to the current day/month from the current year.

    Would like some clarification from the dev if possible.
    Thanks.

  6. gziegler
    Member
    Posted 1 year ago #

    I have also noticed that any chane I do to my blocks or ads or groups are not saved.

    I've seen the message at the top also where my block used to be.

    I'm so sorry this plug in is not working... I used to love it.

  7. chocks
    Member
    Posted 1 year ago #

    I went back to version 3.7.4.3 and everything is working fine, as it was before updating.

  8. gziegler
    Member
    Posted 1 year ago #

  9. Hassan
    Member
    Posted 1 year ago #

    As per my previous post regarding the default initial date of any new ad being set to 1970, this bug seems to have been squashed now with the latest 3.8.2 update. Everything is working fine now.

    Kudos, dev!

  10. Arnan de Gans
    Member
    Plugin Author

    Posted 1 year ago #

  11. Blublkgal
    Member
    Posted 6 months ago #

    hi I have a different problem.

    there's are a bunch of anonymous users being added to my site. they are just adding on automatically with no email addresses and names like _01fO1Cr1

    anyone having a similar problem?

  12. Arnan de Gans
    Member
    Plugin Author

    Posted 6 months ago #

    Get a spam filter.

    And please don't post in topics that have nothing to do with your question.

  13. sledge81
    Member
    Posted 6 months ago #

    Upgraded to 3.9

    The ads disappeared and shows 'unable to select schedule from WP_....'

    Refreshed the site and now this error disappeared but now no ads are being shown. Please advise

  14. sledge81
    Member
    Posted 6 months ago #

    Edit: Tried clicking on the 'Optimized Database' and 'Clean up database' I see these errors in my WP-admin

    Warning: array_diff() [function.array-diff]: Argument #2 is not an array in /home/mydomain/public_html/wp-content/plugins/adrotate/adrotate-setup.php on line 732
    
    Warning: Invalid argument supplied for foreach() in /home/mydomain/public_html/wp-content/plugins/adrotate/adrotate-setup.php on line 733
  15. Arnan de Gans
    Member
    Plugin Author

    Posted 6 months ago #

    Hmm, that's actually a little bug in the clean up routine - I'll fix that for the next version.

    As for your ads not showing, there should be a (few?) errors in the error_log of your server. That should tell you what's what.

  16. sledge81
    Member
    Posted 6 months ago #

    Managed to capture the error.

    This is what is being displayed instead of the ads.

    WordPress database error: [Unknown column 'schedule' in 'where clause']
    SELECT wp_adrotate_schedule.id, starttime, stoptime, maxclicks, maximpressions FROM wp_adrotate_schedule, wp_adrotate_linkmeta WHERE schedule = wp_adrotate_schedule.id AND ad = '36' ORDER BY starttime ASC LIMIT 1;

  17. Hassan
    Member
    Posted 6 months ago #

    unsubscribing...

  18. Arnan de Gans
    Member
    Plugin Author

    Posted 6 months ago #

    @sledge81 did you re-activate the plugin after the update? Some people reported to have to re-activate 2 times even...

    But for pretty much everyone it worked after that.

  19. sledge81
    Member
    Posted 6 months ago #

    Weird... deactivating and reactivating it seems to work.

  20. Arnan de Gans
    Member
    Plugin Author

    Posted 6 months ago #

    A silly glitch for some - The trigger for the update doesn't always work.
    I think I fixed it for the next release though. :)

  21. sledge81
    Member
    Posted 6 months ago #

    Cheers!!! Akin to window's Restart option, which seems to do the trick ;)

  22. Blublkgal
    Member
    Posted 6 months ago #

    hi

    didn't notice that this is the adrotate forum or even know that adrotate is a plugin. excuse me.

    off to find help elsewhere, since your answer isn't helpful either.
    thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags