PHP Stack trace error



  • Not sure whats going on here

    [27-May-2017 07:01:47 Australia/Perth] PHP Stack trace:
    [27-May-2017 07:01:47 Australia/Perth] PHP  1. {main}() /usr/local/www/pfblockerng/pfblockerng.php:0
    [27-May-2017 07:01:47 Australia/Perth] PHP  2. pfblockerng_sync_cron() /usr/local/www/pfblockerng/pfblockerng.php:71
    [27-May-2017 07:01:47 Australia/Perth] PHP  3. sync_package_pfblockerng() /usr/local/www/pfblockerng/pfblockerng.php:393
    [27-May-2017 08:01:52 Australia/Perth] PHP Fatal error:  Cannot unset string offsets in /usr/local/pkg/pfblockerng/pfblockerng.inc on line 3205


  • Moderator

    odd… never seen that error before...  Do you have a DNSBL Group with only a customlist defined? IE: no Source URLs being used?

    Can you run this command and post the result:
    (Change "EXAMPLE" to the name of this DNSBL Group)

    grep -A30 ">EXAMPLE<" /conf/config.xml
    

    You can try to open and save that DNSBL Group and see if it fixes it.


  • Moderator

    To patch the pfblockerng.inc file (if your comfortable in editing the file):

    /usr/local/pkg/pfblockerng/pfblockerng.inc
    Edit Line 3205

    From:

    if (empty($list['row'][0]['url'])) {
    

    To:

    if (isset($list['row']) && empty($list['row'][0]['url'])) {
    


  • worked ty