AsgardCms / Platform

A modular multilingual CMS built with Laravel 5.
https://asgardcms.com/
MIT License
781 stars 241 forks source link

Call to undefined method Illuminate\Translation\FileLoader::paths() #686

Open marfrelen opened 5 years ago

marfrelen commented 5 years ago

Summary of issue

Hello,

when I try to open the translations module i get the following error: Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR) Call to undefined method Illuminate\Translation\FileLoader::paths()

Screenshot 2019-03-21 at 18 58 14

Steps to reproduce

Click on Translations in the menu

composer.json

{
    "name": "asgardcms/platform",
    "description": "The AsgardCms application.",
    "keywords": [
        "cms",
        "asgardcms",
        "multilingual",
        "laravel",
        "laravel5"
    ],
    "license": "MIT",
    "type": "project",
    "require": {
        "php": ">=7.0.0",
        "fideloper/proxy": "~3.3",
        "laravel/framework": "5.5.*",
        "laravel/tinker": "~1.0",
        "nwidart/laravel-modules": "~2.0",
        "cartalyst/sentinel": "~2.0",
        "idavoll/core-module": "~3.0",
        "idavoll/dashboard-module": "~3.0",
        "idavoll/user-module": "~3.0",
        "idavoll/setting-module": "~3.0",
        "idavoll/media-module": "~3.0",
        "idavoll/page-module": "~3.0",
        "idavoll/menu-module": "~3.0",
        "idavoll/workshop-module": "~3.0",
        "idavoll/translation-module": "~3.0",
        "idavoll/tag-module": "~3.0",
        "idavoll/flatly-theme": "~3.0",
        "idavoll/adminlte-theme": "~3.0"
    },
    "require-dev": {
        "fzaninotto/faker": "~1.4",
        "mockery/mockery": "0.9.*",
        "phpunit/phpunit": "~6.0",
        "filp/whoops": "~2.0",
        "symfony/css-selector": "3.1.*",
        "symfony/dom-crawler": "3.1.*",
        "barryvdh/laravel-debugbar": "~3.0",
        "orchestra/testbench": "^3.5",
        "league/flysystem-aws-s3-v3": "^1.0",
        "league/commonmark": "^0.15.4",
        "predis/predis": "^1.1",
        "roave/security-advisories": "dev-master"
    },
    "autoload": {
        "classmap": [
            "database"
        ],
        "psr-4": {
            "App\\": "app/",
            "Modules\\": "Modules/"
        }
    },
    "autoload-dev": {
        "classmap": [
            "tests/TestCase.php"
        ]
    },
    "scripts": {
        "post-install-cmd": [
            "php artisan clear-compiled"
        ],
        "pre-update-cmd": [],
        "post-autoload-dump": [
            "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover"
        ]
    },
    "config": {
        "preferred-install": "dist"
    },
    "extra": {
        "branch-alias": {
            "dev-master": "3.0.x-dev"
        },
        "laravel": {
            "dont-discover": []
        }
    },
    "minimum-stability": "dev",
    "prefer-stable": true
}

like #180

motchju commented 5 years ago

Hello, try to do a php artisan config:clear

chiragpipariya commented 5 years ago

I have also got same error in working project.

Desktop screenshot (1)

chiragpipariya commented 5 years ago

I was clear catch also by artisan command it's not working

chiragpipariya commented 5 years ago

working for me now php artisan config:clear

chiragpipariya commented 5 years ago

I got again same problems

motchju commented 5 years ago

Hello, you will have it everytime you cache the config, please do a php artisan config;clear again

afbora commented 4 years ago

Same issue happened to me on Laravel project (no asgardcms) and i solved with deleted all files in /bootstrap/cache directory.