• Love the plug in. It’s working just fine, but I’m getting the following errors:

    Warning: strtolower() expects parameter 1 to be string, array given in /home/seraphi1/public_html/seraphimwp/wp-content/plugins/congresslookup/CongressLookup.php on line 134

    Warning: strtolower() expects parameter 1 to be string, array given in /home/seraphi1/public_html/seraphimwp/wp-content/plugins/congresslookup/CongressLookup.php on line 141

    Warning: strtolower() expects parameter 1 to be string, resource given in /home/seraphi1/public_html/seraphimwp/wp-content/plugins/congresslookup/CongressLookup.php on line 134

    Warning: strtolower() expects parameter 1 to be string, resource given in /home/seraphi1/public_html/seraphimwp/wp-content/plugins/congresslookup/CongressLookup.php on line 141

    I’m using WordPress version 3.5.2. Disabling all the other plugins doesn’t seem to matter. Can you help?

    Thanks

    http://wordpress.org/extend/plugins/congresslookup/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Contributor trishahdee

    (@trishahdee)

    Hello. I’m sorry you are having a problem with the plugin.

    I have used a test site of mine and updated it to WP 3.5.2 and installed a fresh version of CongressLookup plugin and was unable to reproduce your error. This leads me to believe there is a conflict with another plugin or with your theme. Try the following and let me know the results…

    1. Deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    2. Try switching to the Twenty Eleven theme to rule out any theme-specific problems.

    3. resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    FYI: When you publish error codes like you did, you posted them as-is and they include your user account name and website folder name. These are unnecessary to diagnosing the problem and could leave your site vulnerable. The common practice is to put generic names in these areas instead. For instance, your first error you could rewrite like this and it would not change anything from a diagnosing standpoint…

    Warning: strtolower() expects parameter 1 to be string, array given in /home/user/public_html/website/wp-content/plugins/congresslookup/CongressLookup.php on line 134

    Thread Starter oxyopia

    (@oxyopia)

    Hi – Unfortunately, none of the suggestions worked. The error messages remained with just CongressLookup activated on the Twenty Eleven theme. I reset the plugins folder as well.

    The plugin does work. But I’m getting those warnings on the admin panel.

    I deleted it, reinstalled a fresh copy, and got the same thing. Tried it on another site I have and got the same errors.

    Thanks for the help

    Plugin Contributor trishahdee

    (@trishahdee)

    Very curious… I’d like to look into this further to find out why this is happening to you. Can you email me so I can get more specific information about your install? plugins at constructive growth dot net

    Plugin Contributor Hamza Bahlaouane

    (@quick2ouch)

    Hello,
    Please update your “congresslookup/CongressLookup.php” file
    with this:
    http://pastebin.com/AXNWh28L

    Plugin Contributor trishahdee

    (@trishahdee)

    Just to be clear on what we want you to do:

    1. Go here: http://pastebin.com/AXNWh28L and download a copy of the new CongressLookup.php.
    2. When you download it, it may be titled “CongressLookup.php.txt” but that’s okay.
    3. Go to WP Admin > Plugins > CongressLookup and click the “Edit”
    4. From the menu of files on the right, make sure you have chosen “CongressLookup.php”
    5. Highlight and delete the contents of this page.
    6. Copy the contents of the CongressLookup.php.txt file and paste it into CongressLookup.php.
    7. Click the “Update File” button.

    Please report back on if this has fixed the warnings you are getting.

    Thread Starter oxyopia

    (@oxyopia)

    Sorry, I’m still getting the warnings. I tried disabling all the other plugins, used the Twenty Eleven theme, and reset the plugins folder after updating the CongressLookup.php file just to be sure.

    The warnings are now pointing to lines 136 and 143 now, but that’s the only change.

    Plugin Author ConstructiveGrowth

    (@constructivegrowth)

    Are you still getting errors from the plugin?

    Sorry to jump in, but any progress on how to fix the warnings? I’m having the same warnings myself, and this is the only post addressing this issue. I get 4 warnings:

    WARNING: wp-content/plugins/congresslookup/CongressLookup.php:153 – strtolower() expects parameter 1 to be string, array given
    WARNING: wp-content/plugins/congresslookup/CongressLookup.php:160 – strtolower() expects parameter 1 to be string, array given
    WARNING: wp-content/plugins/congresslookup/CongressLookup.php:153 – strtolower() expects parameter 1 to be string, resource given
    WARNING: wp-content/plugins/congresslookup/CongressLookup.php:160 – strtolower() expects parameter 1 to be string, resource given

    Just wondering if there was a fix.

    Thanks!

    Plugin Contributor trishahdee

    (@trishahdee)

    Hello ChuckyBoy. Sorry to hear you are having problems with CongressLookup.

    First, we need to rule out the common problems people have with the plugin. Please follow these trouble shooting instructions and report back with the results.

    http://wordpress.org/plugins/congresslookup/other_notes/

    Thread Starter oxyopia

    (@oxyopia)

    Hi ChuckyBoy –
    Soon after posting about this issue, my client wanted a whole redesign of their site. With their new theme, the warnings disappeared. So that took care of that, but I have no idea where the problem originated.

    I hope you and trishahdee can find a solution because it really is a good plugin.

    Plugin Contributor trishahdee

    (@trishahdee)

    oxyopia, by any chance, do you remember the name of the original theme that was being used when the problem occurred?

    ChuckyBoy, have you tried the trouble shooting steps yet?

    Thread Starter oxyopia

    (@oxyopia)

    I was using Pagelines. (At the time, I did try disabling all the plugins and used the Twenty Eleven theme and I still got the warnings.)

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Works – but getting warnings’ is closed to new replies.