Lukegpl / api-subiekt-gt

PHP REST API. "Wrapper" dla podstawowej komunikacji przesyłania zamówień do Subiekt GT + Sfera GT
MIT License
44 stars 25 forks source link

DrukujDoPliku #112

Open snajper1677 opened 1 month ago

snajper1677 commented 1 month ago

Witam, Mam taki błąd przy próbie wywołaniu funkcji getPdf array ( 'message' => 'Source: Unknown
Description: Unknown', 'code' => 2147614729, 'file' => 'C:\xampp\htdocs\git_subiekt\src\apisubiektgt\subiektgt\document.php', 'line' => 56, 'trace' => array ( 0 => array ( 'file' => 'C:\xampp\htdocs\git_subiekt\src\apisubiektgt\subiektgt\document.php', 'line' => 56, 'function' => 'DrukujDoPliku', 'class' => 'variant', 'type' => '->', 'args' => array ( 0 => 'C:\Users\rafal\AppData\Local\Temp/1540907', 1 => 0, ), ), 1 => array ( 'file' => 'C:\xampp\htdocs\git_subiekt\public\api\index.php', 'line' => 87, 'function' => 'getPdf', 'class' => 'APISubiektGT\SubiektGT\Document', 'type' => '->', 'args' => array ( ), ), ), 'trace_as_string' => '#0 C:\xampp\htdocs\git_subiekt\src\apisubiektgt\subiektgt\document.php(56): variant->DrukujDoPliku(\'C:\\Users\\rafal\\...\', 0)

1 C:\xampp\htdocs\git_subiekt\public\api\index.php(87): APISubiektGT\SubiektGT\Document->getPdf()

2 {main}',

'previous' => NULL, )

Przez subiekta samego w sobie normlanie moge wygenerować fakturę tutaj jednak mi nie pozwala, funkcja get dostaje poprawnie dokument

snajper1677 commented 1 month ago

ps. plik sie generuje do folderu ale pusty i nie da się go otworzyć

Lukegpl commented 1 month ago

Spróbuj wyciąć wszystkie wątki subiekta sfery. Czasami się tak dzieje jak poniesiesz subiekta do wyższej wersji, a tle działa sfera odpalona na niższej wersji subiekta.

niedz., 4 sie 2024 o 18:56 snajper1677 @.***> napisał(a):

Witam, Mam taki błąd przy próbie wywołaniu funkcji getPdf array ( 'message' => 'Source: Unknown Description: Unknown', 'code' => 2147614729, 'file' => 'C:\xampp\htdocs\git_subiekt\src\apisubiektgt\subiektgt\document.php', 'line' => 56, 'trace' => array ( 0 => array ( 'file' => 'C:\xampp\htdocs\git_subiekt\src\apisubiektgt\subiektgt\document.php', 'line' => 56, 'function' => 'DrukujDoPliku', 'class' => 'variant', 'type' => '->', 'args' => array ( 0 => 'C:\Users\rafal\AppData\Local\Temp/1540907', 1 => 0, ), ), 1 => array ( 'file' => 'C:\xampp\htdocs\git_subiekt\public\api\index.php', 'line' => 87, 'function' => 'getPdf', 'class' => 'APISubiektGT\SubiektGT\Document', 'type' => '->', 'args' => array ( ), ), ), 'trace_as_string' => '#0 C:\xampp\htdocs\git_subiekt\src\apisubiektgt\subiektgt\document.php(56): variant->DrukujDoPliku('C:\Users\rafal\...', 0)

1 https://github.com/Lukegpl/api-subiekt-gt/pull/1

C:\xampp\htdocs\git_subiekt\public\api\index.php(87): APISubiektGT\SubiektGT\Document->getPdf()

2 https://github.com/Lukegpl/api-subiekt-gt/pull/2 {main}',

'previous' => NULL, )

Przez subiekta samego w sobie normlanie moge wygenerować fakturę tutaj jednak mi nie pozwala, funkcja get dostaje poprawnie dokument

— Reply to this email directly, view it on GitHub https://github.com/Lukegpl/api-subiekt-gt/issues/112, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACTVRMXYHP6UFAWETKQ6WTDZPZMLNAVCNFSM6AAAAABL67QHNCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ2DOMRRGY2DKNA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Pozdrawiam Łukasz Golonka

snajper1677 commented 1 month ago

W takim wypadku reset nie powinien załatwić sprawy ?

snajper1677 commented 1 month ago

pozatym zrobiłem kopie subiekta na drugim komputerze i mam dokładnie to samo, nie jestem w stanie uzyskać jaki to błąd, normalnie pobieram dokument, ale nie da sie go zapisać do PDF, (przez subiekt sam w sobie sie da)

To już się dzieje od jakiś 2 tyg tylko nie zauważyłem tego. Wcześniej generowało poprawnie teraz nawet tych starych nie generuje które wiem że były wygenerowane.