Title: Hamza Bahlaouane's Replies | WordPress.org

---

# Hamza Bahlaouane

  [  ](https://wordpress.org/support/users/quick2ouch/)

 *   [Profile](https://wordpress.org/support/users/quick2ouch/)
 *   [Topics Started](https://wordpress.org/support/users/quick2ouch/topics/)
 *   [Replies Created](https://wordpress.org/support/users/quick2ouch/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/quick2ouch/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/quick2ouch/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/quick2ouch/engagements/)
 *   [Favorites](https://wordpress.org/support/users/quick2ouch/favorites/)

 Search replies:

## Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CongressLookup] Undefined property: stdClass::$state_rank](https://wordpress.org/support/topic/undefined-property-stdclassstate_rank/)
 *  Plugin Contributor [Hamza Bahlaouane](https://wordpress.org/support/users/quick2ouch/)
 * (@quick2ouch)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/undefined-property-stdclassstate_rank/#post-5802581)
 * Hi,
 * Thank you for reporting this.
    Open : wp-content/plugins/congresslookup/getData.
   php
 * At line 52, replace
 *     ```
       if($c->state_rank != "")
       ```
   
 * With
 *     ```
       if(isset($c->state_rank) && $c->state_rank != "")
       ```
   
 * This should fix your problem.
 * Regards,
    Hamza
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CongressLookup] Works – but getting warnings](https://wordpress.org/support/topic/works-but-getting-warnings/)
 *  Plugin Contributor [Hamza Bahlaouane](https://wordpress.org/support/users/quick2ouch/)
 * (@quick2ouch)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/works-but-getting-warnings/#post-3883405)
 * Hello,
    Please update your “congresslookup/CongressLookup.php” file with this:
   [http://pastebin.com/AXNWh28L](http://pastebin.com/AXNWh28L)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CongressLookup] Address not found](https://wordpress.org/support/topic/address-not-found/)
 *  Plugin Contributor [Hamza Bahlaouane](https://wordpress.org/support/users/quick2ouch/)
 * (@quick2ouch)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/address-not-found/#post-3480517)
 * Update it directly from /wp-admin/options.php
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CongressLookup] Address not found](https://wordpress.org/support/topic/address-not-found/)
 *  Plugin Contributor [Hamza Bahlaouane](https://wordpress.org/support/users/quick2ouch/)
 * (@quick2ouch)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/address-not-found/#post-3480514)
 * Hi,
    either the API key is not updated in the wp-admin or, their’s really something
   wrong with the key you have, try this one and let me know: 5c6c3e6ec01b4b649cd1dafd8c95d4c6
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Awesome Filterable Portfolio] Errors as soon as I install](https://wordpress.org/support/topic/errors-as-soon-as-i-install-1/)
 *  [Hamza Bahlaouane](https://wordpress.org/support/users/quick2ouch/)
 * (@quick2ouch)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/errors-as-soon-as-i-install-1/#post-3328285)
 * Sure of course,
    I’m using XAMPP on windows, in the C:\xampp\php\php.ini file
   i have the error reporting set by default to : error_reporting = E_ALL & ~E_NOTICE&
   ~E_DEPRECATED
 * This will show all errors, except for notices and coding standards warnings (
   Code that will not work in future versions of PHP)
 * The show the notices use this:
    error_reporting = E_ALL | E_STRICT
 * create a file on your www ( htdocs ) folder and write
 * <?php
    if($_GET[‘t’]) echo “Hello World!”; ?>
 * you should get this
    Notice: Undefined index: t in C:\xampp\htdocs\post.php on
   line 2
 * when visiting
    [http://localhost/post.php](http://localhost/post.php)
 * Hope this helps,
    And sorry for my language 😀
 * Best Regards.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Awesome Filterable Portfolio] Errors as soon as I install](https://wordpress.org/support/topic/errors-as-soon-as-i-install-1/)
 *  [Hamza Bahlaouane](https://wordpress.org/support/users/quick2ouch/)
 * (@quick2ouch)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/errors-as-soon-as-i-install-1/#post-3328273)
 * Everything is ok on your side Trishah,
    Your php configuration is configured 
   by defaut to show notice errors in your php.ini file i think you will have the
   error_reporting set to: Default Value: E_ALL & ~E_NOTICE
 * there’s other values it can take
    Development Value: E_ALL | E_STRICT Production
   Value: E_ALL & ~E_DEPRECATED
 * More details can be found here
    [http://php.net/manual/en/function.error-reporting.php](http://php.net/manual/en/function.error-reporting.php)
 * but anyway, the developper of the plugin should verify if the variable exist 
   first before using it, it’s only natural
 * in line 466
    if($_POST[‘which’]==’new_portfolio_item’){
 * it should be
    if(isset($_POST[‘which’]) && $_POST[‘which’]==’new_portfolio_item’){
 * You can do the same for the rest,
 * There’s another way to solve this but i don’t recommend it,
    put this error_reporting(
   E_ERROR | E_WARNING | E_PARSE); right after <?php at the beginning of the file
 * it will omit the notice errors but as i said i don’t recommend it, it’s better
   to fix them
 * Hope it helps.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CongressLookup] [Plugin: CongressLookup] Not Working](https://wordpress.org/support/topic/plugin-congresslookup-not-working/)
 *  Plugin Contributor [Hamza Bahlaouane](https://wordpress.org/support/users/quick2ouch/)
 * (@quick2ouch)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-congresslookup-not-working/page/2/#post-2946300)
 * Hello,
    Thank you for reporting this, As far as i can see, Google Maps is not
   loaded correctly in the page Please open this file: /wp-content/plugins/congresslookup/
   CongressLookup.php
 * Change this:
    <script type=”text/javascript” src=”[http://maps.google.com/maps/api/js?sensor=false”></script&gt](http://maps.google.com/maps/api/js?sensor=false”></script&gt);
 * To this:
    <script type=”text/javascript” src=”[https://maps.google.com/maps/api/js?sensor=false”></script&gt](https://maps.google.com/maps/api/js?sensor=false”></script&gt);
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CongressLookup] [Plugin: CongressLookup] Not Working](https://wordpress.org/support/topic/plugin-congresslookup-not-working/)
 *  Plugin Contributor [Hamza Bahlaouane](https://wordpress.org/support/users/quick2ouch/)
 * (@quick2ouch)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-congresslookup-not-working/#post-2946264)
 * Apparently, it seems to be working,
    I guess the problem was with the key been
   invalid
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CongressLookup] [Plugin: CongressLookup] Not Working](https://wordpress.org/support/topic/plugin-congresslookup-not-working/)
 *  Plugin Contributor [Hamza Bahlaouane](https://wordpress.org/support/users/quick2ouch/)
 * (@quick2ouch)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-congresslookup-not-working/#post-2946257)
 * Hi There,
 * Sorry for late,
    It’s an odd bug you found there, unfortunately i can’t do much
   without taking a look at what exactly going on, the problem comes after getting
   the data from sunlightlabs API `$congress = @file_get_contents($api_call);`
 * apparently the data returned is not an array or an object, so we will have so
   see what it actually returns,
 * Open getData.php file,
    and right under `$congress = @file_get_contents($api_call);`
   put `print_r($congress);`
 * Thanks

Viewing 9 replies - 1 through 9 (of 9 total)