Title: Errors
Last modified: August 21, 2016

---

# Errors

 *  Resolved [vennardk](https://wordpress.org/support/users/vennardk/)
 * (@vennardk)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/errors-45/)
 * When I installed the plugin I received the following error:
 * The plugin generated 2 characters of unexpected output during activation. If 
   you notice “headers already sent” messages, problems with syndication feeds or
   other issues, try deactivating or removing this plugin.
 * When I attempt to upload a csv file I receive this error:
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/content/58/11637758/html/wp-content/plugins/sports-rankings-lists/wp-
   ranking.php:286) in /home/content/58/11637758/html/wp-admin/async-upload.php 
   on line 32
    51
 * I’m positive it has nothing to do with file format and/or playing the correct
   data in the correct columns. Any other thoughts or ideas?
 * [http://wordpress.org/plugins/sports-rankings-lists/](http://wordpress.org/plugins/sports-rankings-lists/)

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Thread Starter [vennardk](https://wordpress.org/support/users/vennardk/)
 * (@vennardk)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/errors-45/#post-4041193)
 * I attempt to add a list category:
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/content/58/11637758/html/wp-content/plugins/sports-rankings-lists/wp-
   ranking.php:286) in /home/content/58/11637758/html/wp-includes/class-wp-ajax-
   response.php on line 129
 * I attempt to publish a list:
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/content/58/11637758/html/wp-content/plugins/sports-rankings-lists/wp-
   ranking.php:286) in /home/content/58/11637758/html/wp-includes/pluggable.php 
   on line 875
 * Not trying to spam. I’ve troubleshot website errors before and generally the 
   more info the better. 🙂
 *  Plugin Author [kutu62](https://wordpress.org/support/users/kutu62/)
 * (@kutu62)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/errors-45/#post-4041385)
 * no need to create categories for your list or rankings – they serve no purpose–
   just create the list and ranker with no category assigned.
 * make sure the link to the CSV is in the URL field when you upload the CSV file
   and insert it.
 * the header of the csv doesn’t need to contain the column names
 * THE FEED issue is being worked on now – the feed will work on the second pull,
   nevertheless we need to resolve it and will very soon.
 *  Thread Starter [vennardk](https://wordpress.org/support/users/vennardk/)
 * (@vennardk)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/errors-45/#post-4041387)
 * Please notice when I activate the plug-in I get the following error message from
   WP in yellow on the plug-in backend page:
 * The plugin generated 2 characters of unexpected output during activation. If 
   you notice “headers already sent” messages, problems with syndication feeds or
   other issues, try deactivating or removing this plugin.
 * I ignored the list category but still received the above error messages.
 * The CSV file had no headers. I created my own file and then I also used the sample
   file you provide (great idea to offer this BTW)
 * I apologize, I’m not sure what a feed issue is. I’ll try to wait patiently while
   you fix it. 🙂 This could be a very handy tool as no other plug-ins fulfill my
   need to rank players. I appreciate your hard work!
 *  Plugin Author [kutu62](https://wordpress.org/support/users/kutu62/)
 * (@kutu62)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/errors-45/#post-4041388)
 * okay its fixed – RSS and sitemap errors gone.. just had to remove white space
   in file.
 *  Thread Starter [vennardk](https://wordpress.org/support/users/vennardk/)
 * (@vennardk)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/errors-45/#post-4041430)
 * Better. No header errors anymore. I edited “sports-rankings-lists/import_players.
   php” by overwriting the comma to a semi-colon when reading while importing a 
   list (I use open office).
 * However, after using the ranker short code on a post, I receive the follow error.
   Please note that line 176 and line 193 error appears a lot more times in that
   order. I didn’t count but I’m assuming one of each error for each player in the
   list (200+).
 * Any thoughts or ideas?
 * Warning: Invalid argument supplied for foreach() in /home/content/58/11637758/
   html/wp-content/plugins/sports-rankings-lists/wp-ranking.php on line 150
 * Warning: Invalid argument supplied for foreach() in /home/content/58/11637758/
   html/wp-content/plugins/sports-rankings-lists/wp-ranking.php on line 176
 * Warning: Division by zero in /home/content/58/11637758/html/wp-content/plugins/
   sports-rankings-lists/wp-ranking.php on line 193
 * Warning: Invalid argument supplied for foreach() in /home/content/58/11637758/
   html/wp-content/plugins/sports-rankings-lists/wp-ranking.php on line 176
 * Warning: Division by zero in /home/content/58/11637758/html/wp-content/plugins/
   sports-rankings-lists/wp-ranking.php on line 193
 * Warning: Invalid argument supplied for foreach() in /home/content/58/11637758/
   html/wp-content/plugins/sports-rankings-lists/wp-ranking.php on line 176
 * Warning: Division by zero in /home/content/58/11637758/html/wp-content/plugins/
   sports-rankings-lists/wp-ranking.php on line 193
 *  Plugin Author [kutu62](https://wordpress.org/support/users/kutu62/)
 * (@kutu62)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/errors-45/#post-4041433)
 * why change plugin file from comma to ; ??
 * **delete the plugin from your server **
 * download and install again
 * If errors persist you’ll need to disable all plugins – then enable the ranker
   and you should not have errors anymore –
 * then enable you other plugins one at a time until you find the conflict –
 * let me know which plugin has a conflict and I’ll look at it.
 * I tested this plugin on three servers / installed with various themes and plugins
   and it works fine – so the issue is isolated to your install. I’ll help you but
   you need to do the above first
 * If the above errors are in your log – but the rankings are working in the front
   end I would lower your PHP log level – those errors are really warnings – that
   I suspect are a theme or plugin conflict.
 *  Thread Starter [vennardk](https://wordpress.org/support/users/vennardk/)
 * (@vennardk)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/errors-45/#post-4041438)
 * Thank you for your input.
 * I changed to “;” from “,” because when I imported your example file after a brief
   edit, I would get 1;Aaron Rodgers;Green Bay;QB all in the first text box. I went
   back to open office and confirmed it was saved as a .csv. So the quickest fix
   was for me to tell the importer to look for a “;” instead of a comma. I included
   that information in my last post, just in case there was a chance it might have
   messed something else up.
 * I disabled all plugins that do not come with a clean install. Still having the
   same issues.
 * Rankings are not working on the front end (user side) but do import nicely into
   the backend (admin side).
 * I’ll try to round up more details tonight.
 *  Plugin Author [kutu62](https://wordpress.org/support/users/kutu62/)
 * (@kutu62)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/errors-45/#post-4041440)
 * hmm..
 * should work fine..
 * email me admin username and password to your website and I’ll take a look.
 * Also, send your apache logs –
 * Kurt at fantasyknuckleheads dot com
 *  Plugin Author [kutu62](https://wordpress.org/support/users/kutu62/)
 * (@kutu62)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/errors-45/#post-4041488)
 * This was a user error – plugin works fine – please see the screenshots if you
   have trouble using
 *  [nicholasdeleo](https://wordpress.org/support/users/nicholasdeleo/)
 * (@nicholasdeleo)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/errors-45/#post-4041528)
 * Hi,
    I get the same errors as the other user reported.
 * I havent’t found the solution, I can only see it was actually found.
 * Warning: Invalid argument supplied for foreach() in /web/htdocs/www.coinflipclub.
   it/home/wp-content/plugins/sports-rankings-lists/wp-ranking.php on line 150 Warning:
   Invalid argument supplied for foreach() in /web/htdocs/www.coinflipclub.it/home/
   wp-content/plugins/sports-rankings-lists/wp-ranking.php on line 176 Warning: 
   Division by zero in /web/htdocs/www.coinflipclub.it/home/wp-content/plugins/sports-
   rankings-lists/wp-ranking.php on line 193 Warning: Invalid argument supplied 
   for foreach() in /web/htdocs/www.coinflipclub.it/home/wp-content/plugins/sports-
   rankings-lists/wp-ranking.php on line 176 Warning: Division by zero in /web/htdocs/
   www.coinflipclub.it/home/wp-content/plugins/sports-rankings-lists/wp-ranking.
   php on line 193
 * Could you please help me out, too?
 * Best
    Nicholas
 *  Plugin Author [kutu62](https://wordpress.org/support/users/kutu62/)
 * (@kutu62)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/errors-45/#post-4041536)
 * [@nicholasdeleo](https://wordpress.org/support/users/nicholasdeleo/)
 * The errors when uploading CSV is due to the CSV not being a “windows CSV” – you’ll
   see this option in MAC and Open Office. So when you save the file as CSV make
   sure you save the file as “MS Windows CSV” or “Windows CSV” –

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Errors’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/sports-rankings-lists_ecf0f0.svg)
 * [Sports Rankings and Lists](https://wordpress.org/plugins/sports-rankings-lists/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sports-rankings-lists/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sports-rankings-lists/)
 * [Active Topics](https://wordpress.org/support/plugin/sports-rankings-lists/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sports-rankings-lists/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sports-rankings-lists/reviews/)

 * 11 replies
 * 3 participants
 * Last reply from: [kutu62](https://wordpress.org/support/users/kutu62/)
 * Last activity: [11 years, 12 months ago](https://wordpress.org/support/topic/errors-45/#post-4041536)
 * Status: resolved