[BUG] Error when downloading map from MX or FileBrowser #18

Closed
opened 2023-07-16 16:31:39 +02:00 by beu · 1 comment
Owner
event-controller-1  | [16-Jul-2023 14:20:32 UTC] [PHP ERROR '8192']: preg_replace(): Passing null to parameter #2 ($replacement) of type array|string is deprecated
event-controller-1  | File&Line: /opt/TrackManiaControl/core/Files/FileUtil.php: 60
event-controller-1  | Trace: 
event-controller-1  | #0: preg_replace(string(/[^0-9A-Za-z\-\+\.\_\ ]/), NULL(), string(117963_[RPG] Quandary Islands.Map.Gbx)) in File core/Files/FileUtil.php on Line 60
event-controller-1  | #1: ManiaControl\Files\FileUtil::getClearedFileName(string(117963_[RPG] Quandary Islands.Map.Gbx)) in File core/Maps/MapManager.php on Line 414
event-controller-1  | #2: ManiaControl\Maps\MapManager->processMapFile(string(GBXBUCR0]n090�0..), object(ManiaControl\ManiaExchange\MXMapInfo), string(i46rRDTOSxaR0zrsgSr3LQ), boolean()) in File core/Maps/MapManager.php on Line 387
event-controller-1  | #3: ManiaControl\Maps\MapManager->ManiaControl\Maps\{closure}(string(GBXBUCR0]n090�0..), NULL(), array(string(private)string(5487149)string(application/x-gbx)string(Microsoft-IIS/10.0)string(ASP.NET_SessionId=kabhfhyhmbk3cjnkdexynw..)string(attachment; filename="[RPG] Quandary Isl..)...)...)
event-controller-1  | #4: call_user_func(object(Closure), string(GBXBUCR0]n090�0..), NULL(), array(string(private)string(5487149)string(application/x-gbx)string(Microsoft-IIS/10.0)string(ASP.NET_SessionId=kabhfhyhmbk3cjnkdexynw..)string(attachment; filename="[RPG] Quandary Isl..)...)...) in File core/Files/AsyncHttpRequest.php on Line 128
event-controller-1  | #5: ManiaControl\Files\AsyncHttpRequest->ManiaControl\Files\{closure}(object(cURL\Event), string(complete), object(cURL\Request))
event-controller-1  | #6: call_user_func()
event-controller-1  | #7: Symfony\Component\EventDispatcher\EventDispatcher->doDispatch()
event-controller-1  | #8: Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
event-controller-1  | #9: cURL\RequestsQueue->read()
event-controller-1  | #10: cURL\RequestsQueue->socketPerform() in File core/Files/AsynchronousFileReader.php on Line 54
event-controller-1  | #11: ManiaControl\Files\AsynchronousFileReader->appendData() in File core/ManiaControl.php on Line 803
event-controller-1  | #12: ManiaControl\ManiaControl->loop() in File core/ManiaControl.php on Line 688
event-controller-1  | #13: ManiaControl\ManiaControl->run() in File ManiaControl.php on Line 58
event-controller-1  | 
event-controller-1  | 
event-controller-1  | 
event-controller-1  | 
event-controller-1  | Deprecated: preg_replace(): Passing null to parameter #2 ($replacement) of type array|string is deprecated in /opt/TrackManiaControl/core/Files/FileUtil.php on line 60
``` event-controller-1 | [16-Jul-2023 14:20:32 UTC] [PHP ERROR '8192']: preg_replace(): Passing null to parameter #2 ($replacement) of type array|string is deprecated event-controller-1 | File&Line: /opt/TrackManiaControl/core/Files/FileUtil.php: 60 event-controller-1 | Trace: event-controller-1 | #0: preg_replace(string(/[^0-9A-Za-z\-\+\.\_\ ]/), NULL(), string(117963_[RPG] Quandary Islands.Map.Gbx)) in File core/Files/FileUtil.php on Line 60 event-controller-1 | #1: ManiaControl\Files\FileUtil::getClearedFileName(string(117963_[RPG] Quandary Islands.Map.Gbx)) in File core/Maps/MapManager.php on Line 414 event-controller-1 | #2: ManiaControl\Maps\MapManager->processMapFile(string(GBXBUCR0]n090�0..), object(ManiaControl\ManiaExchange\MXMapInfo), string(i46rRDTOSxaR0zrsgSr3LQ), boolean()) in File core/Maps/MapManager.php on Line 387 event-controller-1 | #3: ManiaControl\Maps\MapManager->ManiaControl\Maps\{closure}(string(GBXBUCR0]n090�0..), NULL(), array(string(private)string(5487149)string(application/x-gbx)string(Microsoft-IIS/10.0)string(ASP.NET_SessionId=kabhfhyhmbk3cjnkdexynw..)string(attachment; filename="[RPG] Quandary Isl..)...)...) event-controller-1 | #4: call_user_func(object(Closure), string(GBXBUCR0]n090�0..), NULL(), array(string(private)string(5487149)string(application/x-gbx)string(Microsoft-IIS/10.0)string(ASP.NET_SessionId=kabhfhyhmbk3cjnkdexynw..)string(attachment; filename="[RPG] Quandary Isl..)...)...) in File core/Files/AsyncHttpRequest.php on Line 128 event-controller-1 | #5: ManiaControl\Files\AsyncHttpRequest->ManiaControl\Files\{closure}(object(cURL\Event), string(complete), object(cURL\Request)) event-controller-1 | #6: call_user_func() event-controller-1 | #7: Symfony\Component\EventDispatcher\EventDispatcher->doDispatch() event-controller-1 | #8: Symfony\Component\EventDispatcher\EventDispatcher->dispatch() event-controller-1 | #9: cURL\RequestsQueue->read() event-controller-1 | #10: cURL\RequestsQueue->socketPerform() in File core/Files/AsynchronousFileReader.php on Line 54 event-controller-1 | #11: ManiaControl\Files\AsynchronousFileReader->appendData() in File core/ManiaControl.php on Line 803 event-controller-1 | #12: ManiaControl\ManiaControl->loop() in File core/ManiaControl.php on Line 688 event-controller-1 | #13: ManiaControl\ManiaControl->run() in File ManiaControl.php on Line 58 event-controller-1 | event-controller-1 | event-controller-1 | event-controller-1 | event-controller-1 | Deprecated: preg_replace(): Passing null to parameter #2 ($replacement) of type array|string is deprecated in /opt/TrackManiaControl/core/Files/FileUtil.php on line 60 ```
Author
Owner

fixed

fixed
beu closed this issue 2023-08-14 17:35:15 +02:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: beu/TrackManiaControl#18
No description provided.