uilibrary / Stocky-Issues-and-Feature-request

This is Repo is for Stocky-Ultimate Inventory with Pos support and issues
16 stars 6 forks source link

Instalation Error 419 #288

Closed WryanCartie closed 3 years ago

WryanCartie commented 3 years ago

Greetings, I recently purchased this application and has begun setuping it. I followed all the steps in the documentation( I checked whether all of my php extensions are installed, create db, etc) Then i run npm watch and php artisan serve to start the application. Strangely after connecting to the lastStep it returns a 419 error.

(P.S will provide file if asked, i just dont know which one is relevant to this)

hamzakifani commented 3 years ago

Please follow guide installation in doc . Thanks

WryanCartie commented 3 years ago

I have followed everything in the doc. I first installed xampp php server and its extension, i then create the database and give the prividlege for the users. Then, i copy 127.0.0.1 stocky.local hosts file and ServerAdmin webmaster@stocky.local DocumentRoot "C:/xampp/htdocs/stocky" ServerName www.stocky.local ServerAlias stocky.local

               <Directory "C:/xampp/htdocs/stocky">
                      Options Indexes FollowSymLinks Includes ExecCGI
                      AllowOverride All
                      Require all granted
                  </Directory>

              ErrorLog "logs/stocky.local-error.log"
              CustomLog "logs/stocky.local-access.log" common
          </VirtualHost> this to my httpd-vhosts.conf

After that, i run npm dev and php artisan serve. Then i open at http://stocky.local/setup and followed everything(local, debug false, i checked the db ip and everything) and it still lead me to a 419 error. Can you help me?

hamzakifani commented 3 years ago

If you have a problem with xampp . You can use laragon . Thanks

hamzakifani commented 3 years ago

I have followed everything in the doc. I first installed xampp php server and its extension, i then create the database and give the prividlege for the users. Then, i copy 127.0.0.1 stocky.local hosts file and ServerAdmin webmaster@stocky.local DocumentRoot "C:/xampp/htdocs/stocky" ServerName www.stocky.local ServerAlias stocky.local

               <Directory "C:/xampp/htdocs/stocky">
                      Options Indexes FollowSymLinks Includes ExecCGI
                      AllowOverride All
                      Require all granted
                  </Directory>

              ErrorLog "logs/stocky.local-error.log"
              CustomLog "logs/stocky.local-access.log" common
          </VirtualHost> this to my httpd-vhosts.conf

After that, i run npm dev and php artisan serve. Then i open at http://stocky.local/setup and followed everything(local, debug false, i checked the db ip and everything) and it still lead me to a 419 error. Can you help me?

D'ont run npm dev and php artisan serve.

WryanCartie commented 3 years ago

Oh yes, that was just an error when i copied that to github in text. I see. i might try to switch from xampp if its a xampp specific error.

I just tried rerunning it without npm run dev and it still returns a 419 error. Here is a screenshot of all relevant parts(the hosts file,database,xampp,etc) and a screen recording of me filling the setup form

stocky_4 stocky_3 stocky_2 stocky_1 stocky_5

https://user-images.githubusercontent.com/33276404/127161510-8f7953f8-f1f2-4ee5-877f-96471ea5db4b.mp4

hamzakifani commented 3 years ago

Please make debug = true , and check console and send us this error . Thanks

hamzakifani commented 3 years ago

*Try clearing your cache and config via

php artisan config:cache php artisan cache:clear

*Try hard refreshing your browser with CTRL + F5

WryanCartie commented 3 years ago

I did the cache clear and config clear, also ctrl f5 but doesnt seem to help. console as in the one i ran the php with? or the web console?

hamzakifani commented 3 years ago

Go to inspect -> Network

hamzakifani commented 3 years ago

You can use laragon

https://drive.google.com/file/d/1WbkEjqHTF54yiO_SVu6mFnYaZTYTs3Rd/view

WryanCartie commented 3 years ago
stocky_6

I found this in the console.

Yes i am trying to configure laragon now.

hamzakifani commented 3 years ago
stocky_6

I found this in the console. Yes i am trying to configure laragon now.

I don't see. Stocky.local. Why localhost:8000 ?

hamzakifani commented 3 years ago

Please see this video

https://drive.google.com/file/d/1_1Hqelfm4vgK80je7-Ya_u4U5WcySrOx/view

WryanCartie commented 3 years ago

Sorry that was the wrong link i entered. It still returns the same error tho with stocky.local image I think there is a bit of difference when the name stocky_db is used as the feedback turns to seems okay. The same issue persist tho it seems and the video steps are the same as before

WryanCartie commented 3 years ago

I already done all of the steps in the video

Here is my hosts file image

and here is the vhost file in xampp image Here is the result image

hamzakifani commented 3 years ago

Re-install it and check again . If still issue . then use laragon Thanks

WryanCartie commented 3 years ago

I just reinstalled and am using laragon right now but it returns the same error. I manage to copy the log of the POST request that causes the error and found this { "_initiator": { "type": "other" }, "_priority": "VeryHigh", "_resourceType": "document", "cache": {}, "pageref": "page_11", "request": { "method": "POST", "url": "http://stocky.local/setup/lastStep", "httpVersion": "", "headers": [ { "name": "Host", "value": "stocky.local" }, { "name": "Connection", "value": "keep-alive" }, { "name": "Content-Length", "value": "47" }, { "name": "Cache-Control", "value": "max-age=0" }, { "name": "Upgrade-Insecure-Requests", "value": "1" }, { "name": "Origin", "value": "http://stocky.local" }, { "name": "Content-Type", "value": "application/x-www-form-urlencoded" }, { "name": "User-Agent", "value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36" }, { "name": "Accept", "value": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9" }, { "name": "Referer", "value": "http://stocky.local/setup/step-3" }, { "name": "Accept-Encoding", "value": "gzip, deflate" }, { "name": "Accept-Language", "value": "en,en-US;q=0.9,zh-TW;q=0.8,zh;q=0.7" }, { "name": "Cookie", "value": "stocky_session=eyJpdiI6ImM3ZlJ2OE9zSE9RM0licnBiNHF6MHc9PSIsInZhbHVlIjoiTFFkZW54WHBDQnJxU0RHbFl0SFJYWHZrYXJiK0RPUnY2ZkdlNGhDNkxsSStJVThnQmd1aTgreW9aR1lYblhxQ2F5M2ZOSyszUUNVaFI4QU5vaXlSM0x5eFU5RVdWWjExTDMwNE5qcjhLSHZLdE5sbnNHZ0owZG55MmhrNmNmOEkiLCJtYWMiOiIyM2NjYWNkMTRlMTZkMTAzYmYyMGQxYTg1YmJhYTIwYjI3ZGI4YTFlYTg5YzJlN2NjZjg0NDEzNjY3ZjZkMGI2In0%3D; XSRF-TOKEN=eyJpdiI6IlRubkErcjRwdm0xYkdOYWY3eU5oUEE9PSIsInZhbHVlIjoiTnRTZ0tTR0g2dUhlWFRUQklZT1ptMUZWRnh3eTI5clBPekVEVGticDZ0aEFqaWVlMDErTVlKRWtJY3FiOEtaaVE0cmNrcmc0S2JmNlVGaWxjbFhNS3JtcWNKQnJYbG9EY3Zyc1hRMnVSUGU3SFJqWkcvNGd1c3BGWXlIc2lXaVciLCJtYWMiOiJiYTQ5ZWQ3NjRmMzQ3MjNmMmZlY2QwOGFlZWIxZTg4ZWQyOTlkMDAxZWVmNTgzODhkZTEzODBlZjBlNzA4MmYwIn0%3D; stocky_test_session=eyJpdiI6IjZwUjJuYnlESWdueVZhTzBrR2tpN1E9PSIsInZhbHVlIjoiMVcvNEpKTzFEM0xVbkFBQzR4M0hkL1ArV043Y0loRmUvaCt1OHRMM3QvTmZvSHBpVGtOVFlqQno1RmIrRkhRYWJFb3I3OHpDQUVaeHJPbE1aOU1xdWdlcyt2aDVVaE1IbEJmM2RRTUw2cUR6TTEyL1p4emQwMXp2eHRPUHBvYlUiLCJtYWMiOiIwZWU3YWJmM2E4ZmNmNTY5MDgwMTU4ZDNmMjExNTE1NGZiMjExZGM1NDUxZjMzMmEzMzM5YWM3M2QxYTJlOTA5In0%3D" } ], "queryString": [], "cookies": [ { "name": "stocky_session", "value": "eyJpdiI6ImM3ZlJ2OE9zSE9RM0licnBiNHF6MHc9PSIsInZhbHVlIjoiTFFkZW54WHBDQnJxU0RHbFl0SFJYWHZrYXJiK0RPUnY2ZkdlNGhDNkxsSStJVThnQmd1aTgreW9aR1lYblhxQ2F5M2ZOSyszUUNVaFI4QU5vaXlSM0x5eFU5RVdWWjExTDMwNE5qcjhLSHZLdE5sbnNHZ0owZG55MmhrNmNmOEkiLCJtYWMiOiIyM2NjYWNkMTRlMTZkMTAzYmYyMGQxYTg1YmJhYTIwYjI3ZGI4YTFlYTg5YzJlN2NjZjg0NDEzNjY3ZjZkMGI2In0%3D", "path": "/", "domain": "stocky.local", "expires": "2021-07-28T16:34:59.128Z", "httpOnly": true, "secure": false, "sameSite": "Lax" }, { "name": "XSRF-TOKEN", "value": "eyJpdiI6IlRubkErcjRwdm0xYkdOYWY3eU5oUEE9PSIsInZhbHVlIjoiTnRTZ0tTR0g2dUhlWFRUQklZT1ptMUZWRnh3eTI5clBPekVEVGticDZ0aEFqaWVlMDErTVlKRWtJY3FiOEtaaVE0cmNrcmc0S2JmNlVGaWxjbFhNS3JtcWNKQnJYbG9EY3Zyc1hRMnVSUGU3SFJqWkcvNGd1c3BGWXlIc2lXaVciLCJtYWMiOiJiYTQ5ZWQ3NjRmMzQ3MjNmMmZlY2QwOGFlZWIxZTg4ZWQyOTlkMDAxZWVmNTgzODhkZTEzODBlZjBlNzA4MmYwIn0%3D", "path": "/", "domain": "stocky.local", "expires": "2021-07-28T16:36:22.860Z", "httpOnly": false, "secure": false, "sameSite": "Lax" }, { "name": "stocky_test_session", "value": "eyJpdiI6IjZwUjJuYnlESWdueVZhTzBrR2tpN1E9PSIsInZhbHVlIjoiMVcvNEpKTzFEM0xVbkFBQzR4M0hkL1ArV043Y0loRmUvaCt1OHRMM3QvTmZvSHBpVGtOVFlqQno1RmIrRkhRYWJFb3I3OHpDQUVaeHJPbE1aOU1xdWdlcyt2aDVVaE1IbEJmM2RRTUw2cUR6TTEyL1p4emQwMXp2eHRPUHBvYlUiLCJtYWMiOiIwZWU3YWJmM2E4ZmNmNTY5MDgwMTU4ZDNmMjExNTE1NGZiMjExZGM1NDUxZjMzMmEzMzM5YWM3M2QxYTJlOTA5In0%3D", "path": "/", "domain": "stocky.local", "expires": "2021-07-28T16:36:22.861Z", "httpOnly": true, "secure": false, "sameSite": "Lax" } ], "headersSize": -1, "bodySize": 47, "postData": { "mimeType": "application/x-www-form-urlencoded", "text": "_token=4LTp9TWsMdT58uuTrmEhyrHxtheIowXeUz1Gmvb7", "params": [ { "name": "_token", "value": "4LTp9TWsMdT58uuTrmEhyrHxtheIowXeUz1Gmvb7" } ] } }, "response": { "status": 0, "statusText": "", "httpVersion": "", "headers": [], "cookies": [], "content": { "size": 0, "mimeType": "x-unknown" }, "redirectURL": "", "headersSize": -1, "bodySize": -1, "_transferSize": 0, "_error": "net::ERR_CONNECTION_RESET" }, "serverIPAddress": "", "startedDateTime": "2021-07-28T14:36:23.808Z", "time": 708.3039999999983, "timings": { "blocked": 708.3039999999983, "dns": -1, "ssl": -1, "connect": -1, "send": 0, "wait": 0, "receive": 0, "_blocked_queueing": -1 } } ] } } console.txt Here is network log file, it seems the problem lies in the POST request to stocky.local/setup/lastStep part

hamzakifani commented 3 years ago

Please contact me on https://join.skype.com/invite/v6Cqli3xreT9

WryanCartie commented 3 years ago

Okay i just accepted your invitation

hamzakifani commented 3 years ago

Issue fixed .

naime-hossain commented 3 years ago

If you like our item and support you can rate it on codecanyon. If you don’t know how to provide ratings & reviews please visit this link: https://help.market.envato.com/hc/en-us/articles/203269490-Giving-Feedback-On-Items Thank you