Page 13 of 13 FirstFirst ... 3111213
Results 121 to 124 of 124
  1. #121
    Join Date
    Apr 2011
    Location
    Espoo, Finland
    Posts
    49
    Plugin Contributions
    0

    Default Re: IP Blocker 1.5.1

    Hello,

    The following PHP Warnings appeared in the logs, when I tried to add the IP-address to "Blocked IP Addresses" list for the first time (using a link on "Who's Online" page)

    --> PHP Warning: in_array() expects parameter 2 to be array, boolean given in admin/includes/functions/extra_functions/ip_blocker_functions.php on line 167.
    --> PHP Warning: in_array() expects parameter 2 to be array, boolean given in admin/includes/functions/extra_functions/ip_blocker_functions.php on line 169.
    I tried to understand what happened adding and removing (some and all) another IP-addresses.
    I tried even to remove all lines from ip_blocker table manually and then add IP-address again.
    But unfortunately (??? :-) ) the issue has not appeared again.
    Probably I should try to fully remove this addon and then install it again (in order to get the same issue again), but this is not possible at the moment, sorry.

    PHP Code:
            $blocked_ip_array unserialize($blocklist->fields['ib_blocklist']);

            
    $is_new_address false;
            if (!
    in_array($newaddress$blocked_ip_array)) {
                
    $newaddress_all substr($newaddress0strrpos($newaddress'.')) . '*';
                if (!
    in_array($newaddress_all$blocked_ip_array)) {
                    
    $blocked_ip_array[] = $newaddress;
                    
    $is_new_address true;
                }
            } 

    In my homble opinion (I'm definitely not a pro), something is wrong with usage of unserialize function, which can return a very diffetent typs of value

    https://www.php.net/manual/en/function.unserialize.php
    Last edited by yesaul; 10 Aug 2020 at 04:54 PM.

  2. #122
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,694
    Plugin Contributions
    123

    Default Re: IP Blocker 1.5.1

    Is this plugin deprecated or has it just not been updated for 1.5.7 yet?
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #123
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,488
    Plugin Contributions
    88

    Default Re: IP Blocker 1.5.1

    Quote Originally Posted by swguy View Post
    Is this plugin deprecated or has it just not been updated for 1.5.7 yet?
    I find the Access Blocker (https://www.zen-cart.com/showthread....Support-Thread) less intrusive/difficult so I won't be updating IP Blocker. If anyone wants to take its support over, I'll be happy to transfer the GitHub account.

  4. #124
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,694
    Plugin Contributions
    123

    Default Re: IP Blocker 1.5.1

    Roger that. I will update the web page for IP blocker with this recommendation. I wasn't sure if it was a superset or not - thanks for confirming.

    Access Blocker download is at
    https://www.zen-cart.com/downloads.php?do=file&id=2237
    Last edited by swguy; 1 Aug 2021 at 05:06 PM.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 
Page 13 of 13 FirstFirst ... 3111213

Similar Threads

  1. v139h Pop up blocker blocking new window
    By kitten091182 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Nov 2013, 02:07 PM
  2. v139g ip blocker mod problem
    By michelleodin in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 24 Nov 2012, 04:54 PM
  3. IP Blocker for Admin side?
    By fe1lho in forum Basic Configuration
    Replies: 3
    Last Post: 18 May 2010, 04:48 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR