Welcome Guest, Not a member yet? Register   Sign In
Update codeigniter
#1

(This post was last modified: 01-11-2022, 07:00 AM by pippuccio76.)

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 ?
Reply
#2

Sounds like something didn't make it in the upload to your server. Make sure the whole vendor folder is uploaded
Reply
#3

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.
CMS CI4     I use Arch Linux by the way 

Reply
#4

(01-11-2022, 07:15 AM)BilltheCat Wrote: Sounds like something didn't make it in the upload to your server.  Make sure the whole vendor folder is uploaded


I retry to upload every with filezilla but same problem... Vendor folder ha 775 autoload 664
Reply
#5

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?
Reply
#6

(This post was last modified: 01-11-2022, 12:31 PM by pippuccio76.)

(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.
INFO - 2022-01-11 15:34:43 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 15:38:35 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 15:38:36 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 15:39:08 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 15:39:08 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 15:39:15 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 15:39:16 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 15:39:16 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 15:39:52 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 15:45:27 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 15:45:29 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 15:45:31 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 15:48:14 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 15:52:36 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 15:52:59 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 15:53:01 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 15:54:29 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 15:54:31 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 15:56:33 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 16:03:40 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 16:10:53 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 16:10:53 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 16:14:03 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 16:49:21 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 16:49:23 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 17:03:54 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 17:03:54 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 17:04:03 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 17:04:12 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 17:04:21 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 17:05:10 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 17:05:21 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 17:05:25 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 17:05:28 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 17:10:08 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 17:10:36 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 17:10:40 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 17:10:48 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 17:11:46 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 17:11:58 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 17:12:44 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
INFO - 2022-01-11 19:20:58 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
Reply
#7

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 ....

On locale i have system folder in server  no why ?

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. Smile
Reply
#8

(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 ....

On locale i have system folder in server  no why ?

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. Smile

To be sure i upload on server system folder too ( same problem) , without system folder on server and older vendor everything  work....
Reply
#9

What system folder are you talking about? There should be only one....


[Image: FM7H4.png]
Reply
#10

(01-11-2022, 12:50 PM)BilltheCat Wrote: What system folder are you talking about? There should be only one....


[Image: FM7H4.png]

This  is my project in locale :

https://imgur.com/S4WeG6A.png
Reply




Theme © iAndrew 2016 - Forum software by © MyBB