Project

General

Profile

Actions

Bug #14553

closed

Call to undefined function sync_package_filer()

Added by Alex Kolesnik 10 months ago. Updated 10 months ago.

Status:
Resolved
Priority:
Normal
Category:
Filer
Target version:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Affected Version:
2.7.0
Affected Plus Version:
Affected Architecture:
All

Actions #1

Updated by Alex Kolesnik 10 months ago

PHP ERROR: Type: 1, File: /usr/local/www/xmlrpc.php(147) : eval()'d code, Line: 2, Message: Uncaught Error: Call to undefined function sync_package_filer() in /usr/local/www/xmlrpc.php(147) : eval()'d code:2
Stack trace:
#0 /usr/local/www/xmlrpc.php(147): eval()
#1 /usr/local/share/pear/XML/RPC2/Server/CallHandler/Instance.php(141): pfsense_xmlrpc_server->exec_php('require_once('/...', 250)
#2 /usr/local/share/pear/XML/RPC2/Backend/Php/Server.php(135): XML_RPC2_Server_Callhandler_Instance->__call('pfsense.exec_ph...', Array)
#3 /usr/local/share/pear/XML/RPC2/Backend/Php/Server.php(99): XML_RPC2_Backend_Php_Server->getResponse()
#4 /usr/local/www/xmlrpc.php(987): XML_RPC2_Backend_Php_Server->handleCall()
#5 {main}
thrown @ 2023-05-20 11:31:34

Fix:

--- /usr/local/pkg/filer.inc.orig       2023-07-06 11:35:48.883969000 +0300
+++ /usr/local/pkg/filer.inc    2023-07-06 11:10:45.844240000 +0300
@@ -218,7 +218,8 @@
        $xml['filer'] = $config['installedpackages']['filer'];

        $execcmd = "require_once('/usr/local/pkg/filer.inc');\n";
-       $execcmd .= "sync_package_filer();";
+       $execcmd .= "filer_sync();";

        if (pf_version() >= "2.4") {
                // xmlrpc cannot encode NULL objects/arrays..

Actions #2

Updated by Christopher Cope 10 months ago

  • Status changed from New to Pull Request Review
  • Assignee set to Christopher Cope

Thank you for the bug report. I have tested and confirmed the issue. A merge request is created so this fix will be applied.

https://gitlab.netgate.com/pfSense/FreeBSD-ports/-/merge_requests/347

Actions #3

Updated by Jim Pingle 10 months ago

  • Status changed from Pull Request Review to Feedback
  • % Done changed from 0 to 100

Request merged.

Actions #4

Updated by Danilo Zrenjanin 10 months ago

  • Status changed from Feedback to Resolved

Tested on the:

23.05.1-RELEASE (amd64)
built on Wed Jun 28 03:57:27 UTC 2023
FreeBSD 14.0-CURRENT

It works fine in Filer 0.60.6_8 version.

I am resolving this case.

Actions

Also available in: Atom PDF