This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Garfild
Garfild

Hello.

I installed October first with installer. Then I wanted to use command line features, but without composer.json i wasn't able to do this.

So, I created new October project. Then I copied everything necessary from it to existing project.

Then I updated composer. Everything passed successfully but I can't execute artisan commands.

The error I get is:

[RuntimeException]                       
  Unable to detect application namespace.
daftspunky
daftspunky

This is a problem related to composer, you may need to run composer dump-autoload to rectify it.

Garfild
Garfild

daftspunk said:

This is a problem related to composer, you may need to run composer dump-autoload to rectify it.

Unfortunately, this doesn't help.

pratyushpundir6424
pratyushpundir6424

Hi, if it helps, here are the steps that I use and it works with no issues:

I. Install a fresh copy of OctoberCMS using composer:

composer create-project october/october newProjectName dev-master

II. Copy these from an existing OctoberCMS project into the same directories of of the new Project:

  1. /themes/YOUR CUSTOM THEME(S)
  2. /plugins/ONLY YOUR CUSTOM PLUGINS (We can install the other plugins from the command line and it's better that way )

III. Apply correct permissions on the new project. Do this again even if you already did so 'before' copying the files above), example - newProjectDir:

sudo chmod -R 777 newProjectDir
cd newProjectDir

IV. Build everything from scratch

php artisan october:down
php artisan october:up
composer update
php artisan october:update

V. Install each of the OctoberCMS Market Plugins you need like so:

php artisan plugin:install RainLab.Users

It usually works this way. I find that I do have to go and fix permissions sometimes after I copy things manually into my folder (though that rarely happens) hence I run a chmod after each such time for added measure.

Last updated

1-4 of 4

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.