zendframework / zend-expressive-skeleton

Begin developing PSR-7 middleware applications in seconds!
BSD 3-Clause "New" or "Revised" License
136 stars 90 forks source link

fresh install not working #94

Closed bcgould04-zz closed 8 years ago

bcgould04-zz commented 8 years ago

Zend\View\Renderer\PhpRenderer::render: Unable to render template "error::404"; resolver could not resolve to a file -- installed with composer - zend view - zend router - zend service manager - whoops

geerteltink commented 8 years ago

If you choose the minimal version (first question answered with yes), it doesn't install templates. You need to either create those yourself or choose "No" for a full installation including an example and error templates.

bcgould04-zz commented 8 years ago

I did choose the full install - deleted it, tried it again, and still same issue - had another developer also try it - still same issue -

Minimal skeleton? (no default middleware, templates, or assets; configuration only) [y] Yes (minimal) [n] No (full; recommended) Make your selection (No): 2

Which router do you want to use? [1] Aura.Router [2] FastRoute [3] Zend Router Make your selection or type a composer package name and version (FastRoute): 3

do you need the whole composer output - and yes composer is up to date - yes i cleared the cache - but selecting the full still doesn't create the templates - didnt have this problem a week ago.

geerteltink commented 8 years ago

That's strange. The last release is from April 21st so nothing changed last week.

Only one question, why do you have 2 as the answer for the first question? It should be y or n.

bcgould04-zz commented 8 years ago

was in a hurry and wasnt paying attention that time - thats from the first time. i hit N the second time after deleting and reinstalling. No is default anyway so it should do the full install when i hit 2 - or so is my understanding. I thought it strange, tried it twice, called another guy, and had him also run through it. not sure - but if you cant recreate the problem then it must be between the keyboard and the chair

geerteltink commented 8 years ago

What does it say after the last question?

If it installs the minimum version you get something like this:

Remove installer
Removing default middleware classes and factories
Removing default middleware class tests
Removing assets
Removing composer.lock from .gitignore
Removing Expressive installer classes, configuration, and tests
geerteltink commented 8 years ago

I've tried several options for the first question: 2, N, n

The only one that works as intended is lower case n. All others fall back to the first answer which is removing the assets. We might need to change that or force a y or n answer only.

bcgould04-zz commented 8 years ago

cool. so 2 and N arent allowed - only n - got it - i guess last week I just hit n - and this week, not paying attention hit 2 and then N..

geerteltink commented 8 years ago

So it works for you with lower case n?

bcgould04-zz commented 8 years ago

yes

geerteltink commented 8 years ago

Great. I'll try to figure out something to prevent this from happening again.