Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Problems in the hosting.... but in my localhorst is working ok #161

Closed
JorgeBorda opened this issue Aug 8, 2018 · 4 comments
Closed

Problems in the hosting.... but in my localhorst is working ok #161

JorgeBorda opened this issue Aug 8, 2018 · 4 comments
Labels

Comments

@JorgeBorda
Copy link

Dear Friends.....
In my public hosting, I have a subdomain "sigi" in the xxxxxxxx.org website.

I develop that web in local, in my localhost of my PC. and is working OK. no any problems

I copy all files from my localhost to the area of the subdomain of my hosting.....

Some options of my ZF2 aplication are not working…. in the hosting place, but in my PC (my localhost) are working OK

A) the source code is the same….. is copy one of the other..

Why is the problem..... what i do not define in the hosting???

The error is: Fatal error: Uncaught exception 'Zend\View\Exception\RuntimeException' with message 'Zend\View\Renderer\PhpRenderer::render: Unable to render template "layout/Application"; resolver could not resolve to a file' in /home/xxxxxxx/public_html/subdominios/sigi.yyyyyyyyy.org/vendor/zendframework/zend-view/src/Renderer/PhpRenderer.php:493 Stack trace: #0 /home/xxxxxxx/public_html/subdominios/sigi.yyyyyyyyy.org/vendor/zendframework/zend-view/src/View.php(205): Zend\View\Renderer\PhpRenderer->render(Object(Zend\View\Model\ViewModel)) #1 /home/xxxxxxx/public_html/subdominios/sigi.yyyyyyyyy.org/vendor/zendframework/zend-mvc/src/View/Http/DefaultRenderingStrategy.php(103): Zend\View\View->render(Object(Zend\View\Model\ViewModel)) #2 [internal function]: Zend\Mvc\View\Http\DefaultRenderingStrategy->render(Object(Zend\Mvc\MvcEvent)) #3 /home/xxxxxxx/public_html/subdominios/sigi.yyyyyyyyy.org/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(Zend\Mvc\MvcEvent)) #4 /home/xxxxxxx/ in /home/xxxxxxx/public_html/subdominios/sigi.yyyyyyyyy.org/vendor/zendframework/zend-view/src/Renderer/PhpRenderer.php on line 493

I do know what to do....... does some bady had or know this issue ???

Thanks a lot

@samuelnogueira
Copy link
Contributor

Are you using Windows in your local dev environment, and Linux on the web server? If so, it could just be a case of fixing the CaSiNg in the template path or name:
The template path 'layout/Application' can be resolved on Windows because paths are not case sensitive, but can't in Linux because Application.phtml file does not exist, but application.phtml does.

@froschdesign
Copy link
Member

froschdesign commented Aug 8, 2018

@samuelnogueira's answer should fix your problem.
But keep in mind, this is an issue tracker. For questions or support please use the chat or the forum. Thanks!

@JorgeBorda
Copy link
Author

thanks Iwill check

@JorgeBorda
Copy link
Author

Yes..... you are write, a lot of thanks.......

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants