![]() |
HI , i update my codeigniter project in localhost with composer and every work fine . I upload the vendor class in server and composer.json in / folder but i have a 500 error how can i update on server ?
Sounds like something didn't make it in the upload to your server. Make sure the whole vendor folder is uploaded
I recently had a glitch on my hosting and was going to run composer on the hosting via putty. I found that as long as everything was updated locally , then I uploaded to hosting and didn't need to run composer on the hosting; so you actually shouldn't need to upload composer,json to your hosting .
There's another issue with composer and permissions. It should only be run as a regular user i.e from a $ prompt on linux. I would re-run locally and then try uploading again as Billthecat suggested.
A 500 server error is extremely generic, and there's no way to know what's happening without more information about it. What information is given? Are you seeing this in the CI logs, and if so, what else is given with it? Are you in development mode, and if so, what is displayed along with the 500 code?
(01-11-2022, 11:39 AM)BilltheCat Wrote: A 500 server error is extremely generic, and there's no way to know what's happening without more information about it. What information is given? Are you seeing this in the CI logs, and if so, what else is given with it? Are you in development mode, and if so, what is displayed along with the 500 code? Must i upload other folder to upgrade or only vendor ? I leave in server old vendor folder renamed vendor_old if i change vendor with the old vendor work .... On locale i have system folder in server no why ? Log havent' error: Code: INFO - 2022-01-11 15:17:08 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
Quote:Must i upload other folder to upgrade or only vendor ? I leave in server old vendor folder renamed vendor_old if i change vendor with the old vendor work .... You must upload everything, or else it won't work. Why you don't have a system folder on the server, is a good question. ![]()
(01-11-2022, 12:35 PM)BilltheCat Wrote:Quote:Must i upload other folder to upgrade or only vendor ? I leave in server old vendor folder renamed vendor_old if i change vendor with the old vendor work .... To be sure i upload on server system folder too ( same problem) , without system folder on server and older vendor everything work....
(01-11-2022, 12:50 PM)BilltheCat Wrote: What system folder are you talking about? There should be only one.... This is my project in locale : https://imgur.com/S4WeG6A.png |
Welcome Guest, Not a member yet? Register Sign In |