We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23849
    • 223 Posts
    thefutureforward Reply #1, 17 years ago
    Hi All,

    I’ve been using WebLoginPE on a site and it’s been working great. Today I went to create a page to output all of the users on the site. I created a page with the following snippet call:

    [!WebLoginPE? &type=`users` !]
    


    When i goto the page it spits out this parse error:

    « 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/cluekeep/public_html/assets/snippets/webloginpe/webloginpe.class.php	 
      Line: 	1398	 
      Line 1398 source: 	foreach($attributes as $field => $value) 	 
     
    Parser timing
      MySQL: 	0.8133 s	(277 Requests)
      PHP: 	0.0596 s	 
      Total: 	0.8729 s


    Everything else on the site WebloginPE-related is working great, except for this. I’ve also tried the "manager" type and that spits out a parse error as well. Any and all info or ideas are MUCH appreciated!!
      Nick Hoag
      Creative Partner
      The FutureForward

      http://thefutureforward.com
      • 24735
      • 33 Posts
      [!WebLoginPE? &type=`users`!]

      try without the space after `users` !]


      I get all my users to show up, but I cant drill in any further, when I click on a user to see profile i get a parse error as well.. still trying to figure that one out. Let me know if that worked?