We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12684
    • 118 Posts
    I am getting this filter error, but I can not figure it out.


    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »
     
    PHP error debug
      Error: 	Invalid argument supplied for foreach()	 
      Error type/ Nr.: 	Warning - 2	 
      File: 	/home/stuff/public_html/assets/snippets/webloginpe/webloginpe.class.php	 
      Line: 	1174	 
      Line 1174 source: 	foreach ($theUser as $attribute => $value) 	 
     
    Parser timing
      MySQL: 	0.0048 s	(20 Requests)
      PHP: 	0.0798 s	 
      Total: 	0.0847 s
      • 28033
      • 925 Posts
      Which version? The 1.3.1 BETA or the 1.3.0 RTM release?
        My Snippets
        -> PopUpChunk v1.0
        • 12684
        • 118 Posts
        I did switch out for your files, yes. But that was last week and I had no initial problems. Once I got this error, I even re uploaded the others and still have the problem.
          • 28033
          • 925 Posts
          *notes line # to self*

          I’ll have to check into that. It might be a bug in both versions that was never caught.

          The odd thing is, though, is that on my site, I’m using the filters just fine. What filter were you using / the WLPE call for it / etc.?
            My Snippets
            -> PopUpChunk v1.0
            • 6038
            • 228 Posts
            christianhanvey Reply #5, 18 years ago
            you probably worked it out by now... or gave up and went onto something else, but i had the same problem

            See this thread for what caused this issue for me:

            http://modxcms.com/forums/index.php/topic,28738.0.html