API response format XML RPC yields Fatal error: Cannot redeclare xmlrpc_encode() #1063

Open
opened 2026-10-05 00:30:27 +02:00 by adam · 0 comments
Owner

API calls with response format XML RPC like https://example.com/ws.php?format=xmlrpc yield (with PHP 7.2)

Fatal error: Cannot redeclare xmlrpc_encode() in .../include/ws_protocols/xmlrpc_encoder.php on line 46

where line 46 is end of xmlrpc_encode() function definition. xmlrpc_encode() is a PHP experimental function since long, https://www.php.net/manual/en/function.xmlrpc-encode.php

API calls with response format XML RPC like https://example.com/ws.php?format=xmlrpc yield (with PHP 7.2) `Fatal error: Cannot redeclare xmlrpc_encode() in .../include/ws_protocols/xmlrpc_encoder.php on line 46` where line 46 is end of xmlrpc_encode() function definition. xmlrpc_encode() is a PHP experimental function since long, https://www.php.net/manual/en/function.xmlrpc-encode.php <!-- github-sync-id:718839925 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#1063