Hamza Bahlaouane
Forum Replies Created
-
Forum: Plugins
In reply to: [CongressLookup] Undefined property: stdClass::$state_rankHi,
Thank you for reporting this.
Open : wp-content/plugins/congresslookup/getData.phpAt line 52, replace
if($c->state_rank != "")
With
if(isset($c->state_rank) && $c->state_rank != "")
This should fix your problem.
Regards,
HamzaForum: Plugins
In reply to: [CongressLookup] Works – but getting warningsHello,
Please update your “congresslookup/CongressLookup.php” file
with this:
https://pastebin.com/AXNWh28LForum: Plugins
In reply to: [CongressLookup] Address not foundUpdate it directly from /wp-admin/options.php
Forum: Plugins
In reply to: [CongressLookup] Address not foundHi,
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:
5c6c3e6ec01b4b649cd1dafd8c95d4c6Forum: Plugins
In reply to: [Awesome Filterable Portfolio] Errors as soon as I installSure 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_DEPRECATEDThis 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_STRICTcreate 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 2when visiting
https://localhost/post.phpHope this helps,
And sorry for my language ??Best Regards.
Forum: Plugins
In reply to: [Awesome Filterable Portfolio] Errors as soon as I installEverything 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_NOTICEthere’s other values it can take
Development Value: E_ALL | E_STRICT
Production Value: E_ALL & ~E_DEPRECATEDMore details can be found here
https://php.net/manual/en/function.error-reporting.phpbut 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 fileit 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
In reply to: [CongressLookup] [Plugin: CongressLookup] Not WorkingHello,
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.phpChange this:
<script type=”text/javascript” src=”https://maps.google.com/maps/api/js?sensor=false”></script>To this:
<script type=”text/javascript” src=”https://maps.google.com/maps/api/js?sensor=false”></script>Forum: Plugins
In reply to: [CongressLookup] [Plugin: CongressLookup] Not WorkingApparently, it seems to be working,
I guess the problem was with the key been invalidForum: Plugins
In reply to: [CongressLookup] [Plugin: CongressLookup] Not WorkingHi 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