Implode Error | Peter's Login Redirect | Forum
Back to the login redirect plugin page
11:03 am
Hi Peter! First of all, thanks for making such a great plug-in, I have used it on a number of my sites already!
I am currently receiving the following error while trying to access the "Login Redirects" menu in the administrative area of my site.
Line 210:
I have disabled all of the other plug-ins I have installed and I am still receiving the error.
I'm running WP Version 2.9.2.
Any suggestions on what I will need to do to get this running? Thanks in advance, I really appreciate your help!
~SarahB~
8:17 am
Peter said:
Try switching the order of the parameters passed to "implode":
$exclude_users = "'" . implode("','", $exclude) . "'";
Thanks for the response Peter, but unfortunately updating the parameters did not help. I am still receiving the same error that I have listed above. Any other ideas on what I can do to troubleshoot this error?
Thanks!
I'm not sure, as there shouldn't be an inherent problem in the plugin around that, and even the implode function should accept those parameters in either order. Also, I cannot reproduce the problem.
Try doing a var_dump( $exclude ); before that line to see what is contained in the $exclude variable. It should be an array (whether empty or not).
Unfortunately, this mystery was never solved. Did you inspect the contents of that $exclude variable as noted above? Have you checked to see whether the login_redirects table was successfully created upon activating the plugin (if it wasn't, you might have to manually create it using the SQL in the plugin file)? Are you using a multi-site install or something other than a plain one-site install?