Coder Social home page Coder Social logo

Exception about minify HOT 13 CLOSED

ceesvanegmond avatar ceesvanegmond commented on July 23, 2024
Exception

from minify.

Comments (13)

ceesvanegmond avatar ceesvanegmond commented on July 23, 2024

What is exactly the error? Can you provide an stacktrace?

from minify.

 avatar commented on July 23, 2024

Stack trace:

#0 /home/user/public/html/vendor/ceesvanegmond/minify/src/CeesVanEgmond/Minify/Minify.php(56): CeesVanEgmond\Minify\Minify->doFilesExistReturnModified()
#1 /home/user/public/html/vendor/ceesvanegmond/minify/src/helpers.php(17): CeesVanEgmond\Minify\Minify->minifyCss(Array)
#2 /home/user/public/html/app/storage/views/ec8857031161b348e513513e449c4c1d(14): stylesheet('css/main.css')
#3 /home/user/public/html/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php(38): include('/home/jussituom...')
#4 /home/user/public/html/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(45): Illuminate\View\Engines\PhpEngine->evaluatePath('/home/jussituom...', Array)
#5 /home/user/public/html/vendor/laravel/framework/src/Illuminate/View/View.php(100): Illuminate\View\Engines\CompilerEngine->get('/home/jussituom...', Array)
#6 /home/user/public/html/vendor/laravel/framework/src/Illuminate/View/View.php(81): Illuminate\View\View->getContents()
#7 /home/user/public/html/app/storage/views/a4ebe18fc4ddba704128aa89c9c54f16(21): Illuminate\View\View->render()
#8 /home/user/public/html/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php(38): include('/home/jussituom...')
#9 /home/user/public/html/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(45): Illuminate\View\Engines\PhpEngine->evaluatePath('/home/jussituom...', Array)
#10 /home/user/public/html/vendor/laravel/framework/src/Illuminate/View/View.php(100): Illuminate\View\Engines\CompilerEngine->get('/home/jussituom...', Array)
#11 /home/user/public/html/vendor/laravel/framework/src/Illuminate/View/View.php(81): Illuminate\View\View->getContents()
#12 /home/user/public/html/vendor/laravel/framework/src/Illuminate/Http/Response.php(70): Illuminate\View\View->render()
#13 /home/user/public/html/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Response.php(141): Illuminate\Http\Response->setContent(Object(Illuminate\View\View))
#14 /home/user/public/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(1414): Symfony\Component\HttpFoundation\Response->__construct(Object(Illuminate\View\View))
#15 /home/user/public/html/vendor/laravel/framework/src/Illuminate/Routing/Controllers/Controller.php(156): Illuminate\Routing\Router->prepare(Object(Illuminate\View\View), Object(Illuminate\Http\Request))
#16 /home/user/public/html/vendor/laravel/framework/src/Illuminate/Routing/Controllers/Controller.php(126): Illuminate\Routing\Controllers\Controller->processResponse(Object(Illuminate\Routing\Router), 'showIntro', Object(Illuminate\View\View))
#17 /home/user/public/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(985): Illuminate\Routing\Controllers\Controller->callAction(Object(Illuminate\Foundation\Application), Object(Illuminate\Routing\Router), 'showIntro', Array)
#18 [internal function]: Illuminate\Routing\Router->Illuminate\Routing\{closure}()
#19 /home/user/public/html/vendor/laravel/framework/src/Illuminate/Routing/Route.php(80): call_user_func_array(Object(Closure), Array)
#20 /home/user/public/html/vendor/laravel/framework/src/Illuminate/Routing/Route.php(47): Illuminate\Routing\Route->callCallable()
#21 /home/user/public/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php(1016): Illuminate\Routing\Route->run(Object(Illuminate\Http\Request))
#22 /home/user/public/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(574): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#23 /home/user/public/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(550): Illuminate\Foundation\Application->dispatch(Object(Illuminate\Http\Request))
#24 /home/user/public/html/public/index.php(49): Illuminate\Foundation\Application->run()
#25 {main} [] []

from minify.

ceesvanegmond avatar ceesvanegmond commented on July 23, 2024

And what's exacly is the exception?

from minify.

 avatar commented on July 23, 2024

log.ERROR: exception 'Exception' in /home/user/public/html/vendor/ceesvanegmond/minify/src/CeesVanEgmond/Minify/Minify.php:188

from minify.

ceesvanegmond avatar ceesvanegmond commented on July 23, 2024

Is there any output from the framework function public_path()? I think you public path isn't correct, you can verify this by running echo public_path(). The public path is defined in bootstrap/paths.php

from minify.

 avatar commented on July 23, 2024

got the same error, but my paths are ok

edit:
got it, in my case the problem was the css folder, it was added two times, because i added the files like : css/file.css

from minify.

ceesvanegmond avatar ceesvanegmond commented on July 23, 2024

Is this still a problem?

from minify.

 avatar commented on July 23, 2024

For me not.

from minify.

santiblanko avatar santiblanko commented on July 23, 2024

I have the same problem!!

from minify.

elamotte avatar elamotte commented on July 23, 2024

Exactly same problem, but my "paths" file is correct.

My css and js are located in an "assets" folder.

So my config file look like this :
'css_path' => '/assets/css/',
'css_build_path' => 'builds/',

I have this error :
/­vendor/­ceesvanegmond/­minify/­src/­CeesVanEgmond/­Minify/­Minify.php183

from minify.

ceesvanegmond avatar ceesvanegmond commented on July 23, 2024

I really cannot find out why this is happening. I cannot reproduce the bug either. Could you guys debug a little and give me more information about this bug?

from minify.

escapeboy avatar escapeboy commented on July 23, 2024

I just open Minify.php:183... its simple, one or more files from array are missing.
@ceesvanegmond it will be good to throw more info with exception on this line :)

from minify.

ceesvanegmond avatar ceesvanegmond commented on July 23, 2024

@escapeboy Thank you, there's an new version on the development branch that throws this exception, I only have tot test it more before merging with master.

from minify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.