Open mohd-aidi opened 3 years ago
nobody never use this plugin anymore nowadays?
nobody never use this plugin anymore nowadays?
I don't know, but if you want to have an answer, you need to provide much more data and do not merge this with other tools, frameworks or things on which this lib does not depend... Not one will fix your code here, the place for that should be, for example: https://stackoverflow.com/questions/tagged/php+spss . So, if you have an specific error with the reader, you need to provide, the spss file that cause this problem and your code to read that file in php without any dependency to other unrelated library, like can be laravel.
I will never try to fix your code, but if i have time i will try to understand the problem of the library and try to fix it if i can. Of course, all this is my personal criteria. You are free to wait for the help of others if you want.
nobody never use this plugin anymore nowadays?
I don't know, but if you want to have an answer, you need to provide much more data and do not merge this with other tools, frameworks or things on which this lib does not depend... Not one will fix your code here, the place for that should be, for example: https://stackoverflow.com/questions/tagged/php+spss . So, if you have an specific error with the reader, you need to provide, the spss file that cause this problem and your code to read that file in php without any dependency to other unrelated library, like can be laravel.
I will never try to fix your code, but if i have time i will try to understand the problem of the library and try to fix it if i can. Of course, all this is my personal criteria. You are free to wait for the help of others if you want.
I dont understand why you need to say that. i m not asking u to fix my code.. my code is already fine by itself.. the only thing i did was this
$reader = \SPSS\Sav\Reader::fromFile($file_path)->read();
and the error just like above..
I dont understand why you need to say that.
I wish you good luck trying to get the help of some one here or in any other software repository then...
the only thing i did was this $reader = \SPSS\Sav\Reader::fromFile($file_path)->read(); and the error just like above..
Your log is of course not produced by just this line of code. What you provide it's a big log where there are a lot of libraries involved. You do not provide a minimal code and data to reproduce the problem. You really do not provide anything to reproduce that problem. In general, something that cannot be reproduced, cannot be fixed...
Hi,
who happen to meet this error when trying to read save file?
{ "message": "unpack(): Type i: not enough input, need 4, have 0", "exception": "ErrorException", "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/flobee/spss/src/Buffer.php", "line": 439, "trace": [ { "function": "handleError", "class": "Illuminate\\Foundation\\Bootstrap\\HandleExceptions", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/flobee/spss/src/Buffer.php", "line": 439, "function": "unpack" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/flobee/spss/src/Buffer.php", "line": 317, "function": "readNumeric", "class": "SPSS\\Buffer", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/flobee/spss/src/Sav/Record/Info/LongStringValueLabels.php", "line": 21, "function": "readInt", "class": "SPSS\\Buffer", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/flobee/spss/src/Sav/Record.php", "line": 31, "function": "read", "class": "SPSS\\Sav\\Record\\Info\\LongStringValueLabels", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/flobee/spss/src/Sav/Record/InfoCollection.php", "line": 56, "function": "fill", "class": "SPSS\\Sav\\Record", "type": "::" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/flobee/spss/src/Sav/Reader.php", "line": 152, "function": "fill", "class": "SPSS\\Sav\\Record\\InfoCollection", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/flobee/spss/src/Sav/Reader.php", "line": 105, "function": "readBody", "class": "SPSS\\Sav\\Reader", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/app/Http/Controllers/FileController.php", "line": 92, "function": "read", "class": "SPSS\\Sav\\Reader", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Routing/Controller.php", "line": 54, "function": "getDownloadTmpFile", "class": "App\\Http\\Controllers\\FileController", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php", "line": 45, "function": "callAction", "class": "Illuminate\\Routing\\Controller", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Routing/Route.php", "line": 239, "function": "dispatch", "class": "Illuminate\\Routing\\ControllerDispatcher", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Routing/Route.php", "line": 196, "function": "runController", "class": "Illuminate\\Routing\\Route", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Routing/Router.php", "line": 685, "function": "run", "class": "Illuminate\\Routing\\Route", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 128, "function": "Illuminate\\Routing\\{closure}", "class": "Illuminate\\Routing\\Router", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Auth/Middleware/EnsureEmailIsVerified.php", "line": 29, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 167, "function": "handle", "class": "Illuminate\\Auth\\Middleware\\EnsureEmailIsVerified", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php", "line": 41, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 167, "function": "handle", "class": "Illuminate\\Routing\\Middleware\\SubstituteBindings", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php", "line": 78, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 167, "function": "handle", "class": "Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php", "line": 49, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 167, "function": "handle", "class": "Illuminate\\View\\Middleware\\ShareErrorsFromSession", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php", "line": 116, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php", "line": 62, "function": "handleStatefulRequest", "class": "Illuminate\\Session\\Middleware\\StartSession", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 167, "function": "handle", "class": "Illuminate\\Session\\Middleware\\StartSession", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php", "line": 37, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 167, "function": "handle", "class": "Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php", "line": 67, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 167, "function": "handle", "class": "Illuminate\\Cookie\\Middleware\\EncryptCookies", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 103, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Routing/Router.php", "line": 687, "function": "then", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Routing/Router.php", "line": 662, "function": "runRouteWithinStack", "class": "Illuminate\\Routing\\Router", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Routing/Router.php", "line": 628, "function": "runRoute", "class": "Illuminate\\Routing\\Router", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Routing/Router.php", "line": 617, "function": "dispatchToRoute", "class": "Illuminate\\Routing\\Router", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php", "line": 165, "function": "dispatch", "class": "Illuminate\\Routing\\Router", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 128, "function": "Illuminate\\Foundation\\Http\\{closure}", "class": "Illuminate\\Foundation\\Http\\Kernel", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php", "line": 21, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 167, "function": "handle", "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php", "line": 21, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 167, "function": "handle", "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php", "line": 27, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 167, "function": "handle", "class": "Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php", "line": 63, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 167, "function": "handle", "class": "Illuminate\\Foundation\\Http\\Middleware\\CheckForMaintenanceMode", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/fruitcake/laravel-cors/src/HandleCors.php", "line": 37, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 167, "function": "handle", "class": "Fruitcake\\Cors\\HandleCors", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/fideloper/proxy/src/TrustProxies.php", "line": 57, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 167, "function": "handle", "class": "Fideloper\\Proxy\\TrustProxies", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php", "line": 103, "function": "Illuminate\\Pipeline\\{closure}", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php", "line": 140, "function": "then", "class": "Illuminate\\Pipeline\\Pipeline", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php", "line": 109, "function": "sendRequestThroughRouter", "class": "Illuminate\\Foundation\\Http\\Kernel", "type": "->" }, { "file": "/Users/mohdaidilrahmanshakri/Development/htdocs/nihdatarepo/public/index.php", "line": 55, "function": "handle", "class": "Illuminate\\Foundation\\Http\\Kernel", "type": "->" } ] }