Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error exception when trying to publish assets #6

Closed
alin78hai opened this issue Jun 20, 2017 · 3 comments
Closed

Error exception when trying to publish assets #6

alin78hai opened this issue Jun 20, 2017 · 3 comments

Comments

@alin78hai
Copy link

There is an error when trying to publish assets from enso-core.

Here is an screenshot and a log of the error:

170620103037

[2017-06-20 10:20:36] local.ERROR: ErrorException: include(S:\Code\Laravel\enso-test\resources\lang/en/en\auth.php): failed to open stream: No such file or directory in S:\Code\Laravel\enso-test\vendor\laravel-enso\localisation\src\app\Classes\LangFilesManager.php:64
Stack trace:
#0 S:\Code\Laravel\enso-test\vendor\laravel-enso\localisation\src\app\Classes\LangFilesManager.php(64): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'include(S:\Code...', 'S:\Code\Laravel...', 64, Array)
#1 S:\Code\Laravel\enso-test\vendor\laravel-enso\localisation\src\app\Classes\LangFilesManager.php(64): include()
#2 S:\Code\Laravel\enso-test\vendor\laravel-enso\localisation\src\app\Classes\LangFilesManager.php(55): LaravelEnso\Localisation\app\Classes\LangFilesManager->getFileContent('en\auth.php')
#3 S:\Code\Laravel\enso-test\vendor\laravel-enso\localisation\src\app\Classes\LangFilesManager.php(47): LaravelEnso\Localisation\app\Classes\LangFilesManager->getTranslationsFromFile('en\auth.php')
#4 S:\Code\Laravel\enso-test\vendor\laravel-enso\localisation\src\app\Classes\LangFilesManager.php(17): LaravelEnso\Localisation\app\Classes\LangFilesManager->getTranslations()
#5 S:\Code\Laravel\enso-test\vendor\laravel-enso\localisation\src\app\Commands\Generate.php(24): LaravelEnso\Localisation\app\Classes\LangFilesManager->__construct('en')
#6 [internal function]: LaravelEnso\Localisation\app\Commands\Generate->__construct()
#7 S:\Code\Laravel\enso-test\vendor\laravel\framework\src\Illuminate\Container\Container.php(762): ReflectionClass->newInstanceArgs(Array)
#8 S:\Code\Laravel\enso-test\vendor\laravel\framework\src\Illuminate\Container\Container.php(608): Illuminate\Container\Container->build('LaravelEnso\Loc...')
#9 S:\Code\Laravel\enso-test\vendor\laravel\framework\src\Illuminate\Container\Container.php(575): Illuminate\Container\Container->resolve('LaravelEnso\Loc...')
#10 S:\Code\Laravel\enso-test\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(728): Illuminate\Container\Container->make('LaravelEnso\Loc...')
#11 S:\Code\Laravel\enso-test\vendor\laravel\framework\src\Illuminate\Console\Application.php(192): Illuminate\Foundation\Application->make('LaravelEnso\Loc...')
#12 S:\Code\Laravel\enso-test\vendor\laravel\framework\src\Illuminate\Console\Application.php(206): Illuminate\Console\Application->resolve('LaravelEnso\Loc...')
#13 S:\Code\Laravel\enso-test\vendor\laravel\framework\src\Illuminate\Support\ServiceProvider.php(232): Illuminate\Console\Application->resolveCommands(Array)
#14 S:\Code\Laravel\enso-test\vendor\laravel\framework\src\Illuminate\Console\Application.php(111): Illuminate\Support\ServiceProvider->Illuminate\Support{closure}(Object(Illuminate\Console\Application))
#15 S:\Code\Laravel\enso-test\vendor\laravel\framework\src\Illuminate\Console\Application.php(58): Illuminate\Console\Application->bootstrap()
#16 S:\Code\Laravel\enso-test\vendor\laravel\framework\src\Illuminate\Foundation\Console\Kernel.php(284): Illuminate\Console\Application->__construct(Object(Illuminate\Foundation\Application), Object(Illuminate\Events\Dispatcher), '5.4.27')
#17 S:\Code\Laravel\enso-test\vendor\laravel\framework\src\Illuminate\Foundation\Console\Kernel.php(122): Illuminate\Foundation\Console\Kernel->getArtisan()
#18 S:\Code\Laravel\enso-test\artisan(35): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#19 {main}

It seems that problem lies in \Classes\LangFileManager.php where the directory separator is hard-coded to ''. When i change it to the PHP constant DIRECTORY_SEPARATOR, the error is resolved.

@aocneanu
Copy link
Member

Hello,

We are currently in a process of upgrading all the Enso packages to a more friendly and less technical structure.

I expect that everything will be wrapped up by the end of this week, including the review and sync of all the readme files (at least the installation steps)

A demo wil be available at www.laravel-enso.com.

Until then, i kindly ask you to be patient with us:)

@alin78hai
Copy link
Author

Ok, nici o problema. Spor la munca

@aocneanu
Copy link
Member

aocneanu commented Jun 27, 2017 via email

aocneanu pushed a commit that referenced this issue Mar 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants