<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Climb to the Stars - Latest Comments in Invalid argument supplied for foreach() in wp-capabilities.php: Case Cracked!</title><link>http://ctts.disqus.com/</link><description></description><atom:link href="https://ctts.disqus.com/invalid_argument_supplied_for_foreach_in_wp_capabilitiesphp_case_cracked/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 25 Apr 2008 19:41:24 -0000</lastBuildDate><item><title>Re: Invalid argument supplied for foreach() in wp-capabilities.php: Case Cracked!</title><link>http://climbtothestars.org/archives/2007/01/29/invalid-argument-supplied-for-foreach-in-wp-capabilitiesphp-case-cracked/#comment-1776002</link><description>&lt;p&gt;PHP initial configuration values should be as follows:&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;magic_quotes_runtime = off;&lt;br&gt;magic_quotes_gpc = off;&lt;br&gt;register_globals = on;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;via:&lt;br&gt;&lt;a href="http://wordpress.org/support/topic/122367" rel="nofollow noopener" target="_blank" title="http://wordpress.org/support/topic/122367"&gt;http://wordpress.org/suppor...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tamer Salama</dc:creator><pubDate>Fri, 25 Apr 2008 19:41:24 -0000</pubDate></item><item><title>Re: Invalid argument supplied for foreach() in wp-capabilities.php: Case Cracked!</title><link>http://climbtothestars.org/archives/2007/01/29/invalid-argument-supplied-for-foreach-in-wp-capabilitiesphp-case-cracked/#comment-1776000</link><description>&lt;p&gt;Bon, j'avoue, j'ai paniqué. Donc je ne suis plus exfermée sur mon blog. Y a-t-il une manière simple de modifier tous les caractères "scramblés" sur mon blog?&lt;br&gt;D'autant que j'en ai d'autres à upgrader , et autrement plus verbeux.&lt;br&gt;Merci de m'avoir fourni la solution, quand même...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Yedidia</dc:creator><pubDate>Thu, 14 Feb 2008 18:42:07 -0000</pubDate></item><item><title>Re: Invalid argument supplied for foreach() in wp-capabilities.php: Case Cracked!</title><link>http://climbtothestars.org/archives/2007/01/29/invalid-argument-supplied-for-foreach-in-wp-capabilitiesphp-case-cracked/#comment-1776001</link><description>&lt;p&gt;you guys are much too good for me.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;"So, in summary: if you’re locked out of your blog and get a warning/error about wp-capabilities and some invalid foreach() loop thingy, head for PhpMyAdmin, and look carefully through the wp_user_roles field in the wp_options table. If it’s split over two or more lines, or contains funky characters, you have probably found the source of your problem."&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;so it &lt;em&gt;is&lt;/em&gt; scrambled (abonné). what should I do?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Yedidia</dc:creator><pubDate>Thu, 14 Feb 2008 18:32:38 -0000</pubDate></item><item><title>Re: Invalid argument supplied for foreach() in wp-capabilities.php: Case Cracked!</title><link>http://climbtothestars.org/archives/2007/01/29/invalid-argument-supplied-for-foreach-in-wp-capabilitiesphp-case-cracked/#comment-1775999</link><description>&lt;p&gt;You are a life saver, thank you! I looked for hours and even my hosting company was not able to help... now it's fixed!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Aoife</dc:creator><pubDate>Thu, 07 Feb 2008 09:41:45 -0000</pubDate></item><item><title>Re: Invalid argument supplied for foreach() in wp-capabilities.php: Case Cracked!</title><link>http://climbtothestars.org/archives/2007/01/29/invalid-argument-supplied-for-foreach-in-wp-capabilitiesphp-case-cracked/#comment-1775998</link><description>&lt;p&gt;Thank you, thank you, thank you! The User roles area was where I was having troubles.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Cheerful Trails,&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Christian&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christian</dc:creator><pubDate>Wed, 09 Jan 2008 15:33:48 -0000</pubDate></item><item><title>Re: Invalid argument supplied for foreach() in wp-capabilities.php: Case Cracked!</title><link>http://climbtothestars.org/archives/2007/01/29/invalid-argument-supplied-for-foreach-in-wp-capabilitiesphp-case-cracked/#comment-1775996</link><description>&lt;p&gt;ah I see my row is not wrapping  - sorry.  I don't see anything that looks wrong in it but will keep at it.  If I find anything will post here and on the WP forums.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andrew</dc:creator><pubDate>Mon, 07 Jan 2008 10:40:51 -0000</pubDate></item><item><title>Re: Invalid argument supplied for foreach() in wp-capabilities.php: Case Cracked!</title><link>http://climbtothestars.org/archives/2007/01/29/invalid-argument-supplied-for-foreach-in-wp-capabilitiesphp-case-cracked/#comment-1775997</link><description>&lt;p&gt;As a total n00b to WP and PHP I cannot tell what in my table might be causing this problem.  I've managed to dig this up from PHPMyAdmin; I think it is the correct field:&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;a:5:{s:13:"administrator";a:2:{s:4:"name";s:13:"Administrator";s:12:"capabilities";a:48:{s:13:"switch_themes";i:1;s:11:"edit_themes";i:1;s:16:"activate_plugins";i:1;s:12:"edit_plugins";i:1;s:10:"edit_users";i:1;s:10:"edit_files";i:1;s:14:"manage_options";i:1;s:17:"moderate_comments";i:1;s:17:"manage_categories";i:1;s:12:"manage_links";i:1;s:12:"upload_files";i:1;s:6:"import";i:1;s:15:"unfiltered_html";i:1;s:10:"edit_posts";i:1;s:17:"edit_others_posts";i:1;s:20:"edit_published_posts";i:1;s:13:"publish_posts";i:1;s:10:"edit_pages";i:1;s:4:"read";i:1;s:8:"level_10";i:1;s:7:"level_9";i:1;s:7:"level_8";i:1;s:7:"level_7";i:1;s:7:"level_6";i:1;s:7:"level_5";i:1;s:7:"level_4";i:1;s:7:"level_3";i:1;s:7:"level_2";i:1;s:7:"level_1";i:1;s:7:"level_0";i:1;s:17:"edit_others_pages";i:1;s:20:"edit_published_pages";i:1;s:13:"publish_pages";i:1;s:12:"delete_pages";i:1;s:19:"delete_others_pages";i:1;s:22:"delete_published_pages";i:1;s:12:"delete_posts";i:1;s:19:"delete_others_posts";i:1;s:22:"delete_published_posts";i:1;s:20:"delete_private_posts";i:1;s:18:"edit_private_posts";i:1;s:18:"read_private_posts";i:1;s:20:"delete_private_pages";i:1;s:18:"edit_private_pages";i:1;s:18:"read_private_pages";i:1;s:12:"delete_users";i:1;s:12:"create_users";i:1;s:17:"unfiltered_upload";i:1;}}s:6:"editor";a:2:{s:4:"name";s:6:"Editor";s:12:"capabilities";a:34:{s:17:"moderate_comments";i:1;s:17:"manage_categories";i:1;s:12:"manage_links";i:1;s:12:"upload_files";i:1;s:15:"unfiltered_html";i:1;s:10:"edit_posts";i:1;s:17:"edit_others_posts";i:1;s:20:"edit_published_posts";i:1;s:13:"publish_posts";i:1;s:10:"edit_pages";i:1;s:4:"read";i:1;s:7:"level_7";i:1;s:7:"level_6";i:1;s:7:"level_5";i:1;s:7:"level_4";i:1;s:7:"level_3";i:1;s:7:"level_2";i:1;s:7:"level_1";i:1;s:7:"level_0";i:1;s:17:"edit_others_pages";i:1;s:20:"edit_published_pages";i:1;s:13:"publish_pages";i:1;s:12:"delete_pages";i:1;s:19:"delete_others_pages";i:1;s:22:"delete_published_pages";i:1;s:12:"delete_posts";i:1;s:19:"delete_others_posts";i:1;s:22:"delete_published_posts";i:1;s:20:"delete_private_posts";i:1;s:18:"edit_private_posts";i:1;s:18:"read_private_posts";i:1;s:20:"delete_private_pages";i:1;s:18:"edit_private_pages";i:1;s:18:"read_private_pages";i:1;}}s:6:"author";a:2:{s:4:"name";s:6:"Author";s:12:"capabilities";a:10:{s:12:"upload_files";i:1;s:10:"edit_posts";i:1;s:20:"edit_published_posts";i:1;s:13:"publish_posts";i:1;s:4:"read";i:1;s:7:"level_2";i:1;s:7:"level_1";i:1;s:7:"level_0";i:1;s:12:"delete_posts";i:1;s:22:"delete_published_posts";i:1;}}s:11:"contributor";a:2:{s:4:"name";s:11:"Contributor";s:12:"capabilities";a:6:{s:10:"edit_posts";i:1;s:20:"edit_published_posts";i:1;s:4:"read";i:1;s:7:"level_1";i:1;s:7:"level_0";i:1;s:12:"delete_posts";i:1;}}s:10:"subscriber";a:2:{s:4:"name";s:10:"Subscriber";s:12:"capabilities";a:2:{s:4:"read";i:1;s:7:"level_0";i:1;}}}&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Does anyone know if I am looking at the right thing, and if so, what might the actual problem be?  I don't see any mangled characters.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Thanks to anyone who can help.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Andrew&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andrew</dc:creator><pubDate>Mon, 07 Jan 2008 09:52:01 -0000</pubDate></item><item><title>Re: Invalid argument supplied for foreach() in wp-capabilities.php: Case Cracked!</title><link>http://climbtothestars.org/archives/2007/01/29/invalid-argument-supplied-for-foreach-in-wp-capabilitiesphp-case-cracked/#comment-1775995</link><description>&lt;p&gt;Thank you for solution and sharing&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">N. Naci Kisnisci</dc:creator><pubDate>Mon, 21 May 2007 08:16:38 -0000</pubDate></item><item><title>Re: Invalid argument supplied for foreach() in wp-capabilities.php: Case Cracked!</title><link>http://climbtothestars.org/archives/2007/01/29/invalid-argument-supplied-for-foreach-in-wp-capabilitiesphp-case-cracked/#comment-1775994</link><description>&lt;p&gt;Many thanks, you helped me very much!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Zomp</dc:creator><pubDate>Wed, 11 Apr 2007 11:32:01 -0000</pubDate></item><item><title>Re: Invalid argument supplied for foreach() in wp-capabilities.php: Case Cracked!</title><link>http://climbtothestars.org/archives/2007/01/29/invalid-argument-supplied-for-foreach-in-wp-capabilitiesphp-case-cracked/#comment-1775993</link><description>&lt;p&gt;Salut Steph'&lt;br&gt;j'ai eu également une l'erreur suivante en upgradant à la version WP 2.1&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Fatal error: Call to undefined function: wp_get_current_user() in /home/cybexpor/public_html/wp-includes/capabilities.php&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Ca ressemble un peu à ton erreur. Ce qui m'a sauvé fut simplement de reuploader sur le serveur le répertoire wp-includes...&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;A jeudi!&lt;br&gt;david&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Touvet</dc:creator><pubDate>Sun, 04 Feb 2007 16:15:07 -0000</pubDate></item><item><title>Re: Invalid argument supplied for foreach() in wp-capabilities.php: Case Cracked!</title><link>http://climbtothestars.org/archives/2007/01/29/invalid-argument-supplied-for-foreach-in-wp-capabilitiesphp-case-cracked/#comment-1775992</link><description>&lt;p&gt;It is a good solution if you use UTF8, but not everyone is. WordPress core seems to need a more comprehensive solution.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lloyd Dewolf</dc:creator><pubDate>Tue, 30 Jan 2007 17:03:54 -0000</pubDate></item><item><title>Re: Invalid argument supplied for foreach() in wp-capabilities.php: Case Cracked!</title><link>http://climbtothestars.org/archives/2007/01/29/invalid-argument-supplied-for-foreach-in-wp-capabilitiesphp-case-cracked/#comment-1775991</link><description>&lt;p&gt;Pfioulala, je pense trop vite pour mes doigts. Donc, pour la totale : +you, +can, s/de/the/ :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Xavier</dc:creator><pubDate>Mon, 29 Jan 2007 12:38:36 -0000</pubDate></item><item><title>Re: Invalid argument supplied for foreach() in wp-capabilities.php: Case Cracked!</title><link>http://climbtothestars.org/archives/2007/01/29/invalid-argument-supplied-for-foreach-in-wp-capabilitiesphp-case-cracked/#comment-1775990</link><description>&lt;p&gt;MO file : done, for both 2.0.7 &amp;amp; 2.1 (both utf-8 &amp;amp; iso-8859-1).&lt;br&gt;Let me know - if you still reproduce de problem.&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Also, try to file a bug report to the Trac (free registration ! ;) )&lt;br&gt;&lt;a href="http://trac.wordpress.org/timeline" rel="nofollow noopener" target="_blank" title="http://trac.wordpress.org/timeline"&gt;http://trac.wordpress.org/t...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Xavier</dc:creator><pubDate>Mon, 29 Jan 2007 12:34:24 -0000</pubDate></item><item><title>Re: Invalid argument supplied for foreach() in wp-capabilities.php: Case Cracked!</title><link>http://climbtothestars.org/archives/2007/01/29/invalid-argument-supplied-for-foreach-in-wp-capabilitiesphp-case-cracked/#comment-1775989</link><description>&lt;p&gt;It would. eacute. What would also solve the problem would be adding that utf-8 line in wp-db.php. Will try to catch the WP people about that.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stephanie</dc:creator><pubDate>Mon, 29 Jan 2007 12:28:25 -0000</pubDate></item><item><title>Re: Invalid argument supplied for foreach() in wp-capabilities.php: Case Cracked!</title><link>http://climbtothestars.org/archives/2007/01/29/invalid-argument-supplied-for-foreach-in-wp-capabilitiesphp-case-cracked/#comment-1775988</link><description>&lt;p&gt;Mmmh, would say me changing the translation file to say "Abonn&amp;amp;eacute;" instead of "Abonné" would solve the problem for future generations ?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Xavier</dc:creator><pubDate>Mon, 29 Jan 2007 12:21:33 -0000</pubDate></item></channel></rss>