Uploaded image for project: 'FreePBX'
  1. FreePBX
  2. FREEPBX-20934

Getting "Invalid argument supplied for foreach()" error in Findme Follow module while restoring the FreePBX 15 backup.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 15
    • Fix Version/s: 15
    • Component/s: Backup & Restore, Follow Me
    • Labels:
      None
    • Sprint:
      Sprint 18!
    • ToDo:
    • Distro Version:
      15
    • Distro:
      FreePBX Distro
    • Module Fix Version:

      Description

      Getting "Invalid argument supplied for foreach()" error in Findme Follow module while restoring the FreePBX 15 backup.

      Note : The backup does not contain any follow me entries.

      
      Processing findmefollow
      Resetting findmefollow module data
      Dropping table findmefollow...Done
      Updating tables findmefollow...Done
      Generating CSS...Done
      Restoring from findmefollow [FreePBX\modules\Findmefollow\Restore]
      Importing Table findmefollow from findmefollow
      Cleaning table: findmefollow
      Importing Feature Codes from findmefollow
      Invalid argument supplied for foreach() on line 27 of file /var/www/html/admin/modules/findmefollow/Restore.php
      #0 /var/www/html/admin/modules/findmefollow/Restore.php(27): Whoops\Run->handleError(2, 'Invalid argumen...', '/var/www/html/a...', 27, Array)
      #1 /var/www/html/admin/modules/backup/Handlers/Restore/Common.php(133): FreePBX\modules\Findmefollow\Restore->runRestore()
      #2 /var/www/html/admin/modules/backup/Handlers/Restore/Common.php(121): FreePBX\modules\Backup\Handlers\Restore\Common->runRestore(Object(FreePBX\modules\Findmefollow\Restore))
      #3 /var/www/html/admin/modules/backup/Handlers/Restore/Multiple.php(52): FreePBX\modules\Backup\Handlers\Restore\Common->processModule('findmefollow', '15.0.16')
      #4 /var/www/html/admin/modules/backup/Console/Backup.class.php(286): FreePBX\modules\Backup\Handlers\Restore\Multiple->process()
      #5 /var/www/html/admin/libraries/Composer/vendor/symfony/console/Command/Command.php(255): FreePBX\Console\Command\Backup->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
      #6 /var/www/html/admin/libraries/Composer/vendor/symfony/console/Application.php(960): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
      #7 /var/www/html/admin/libraries/Composer/vendor/symfony/console/Application.php(255): Symfony\Component\Console\Application->doRunCommand(Object(FreePBX\Console\Command\Backup), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
      #8 /var/www/html/admin/libraries/Composer/vendor/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
      #9 /var/lib/asterisk/bin/fwconsole(163): Symfony\Component\Console\Application->run()
      #10 {main}
      Restore processing for modules are finished successfully
      Reloading...... DONE
      Running Post Restore Hooks.. Please note that hook will restart httpd service so please refresh your page (using new ports) 
      Running Post Restore Hooks DONE
      Finished
      There were errors during the restore process
      	Invalid argument supplied for foreach() on line 27 of file /var/www/html/admin/modules/findmefollow/Restore.php 

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mmishra Mohit Mishra
                Reporter:
                psandesh Sandesh Prakash [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  NextupJiraPlusStatus

                  Error rendering 'slack.nextup.jira:nextup-jira-plus-status'. Please contact your Jira administrators.