I want to use Symfony 4.x for a new project, I have installed composer and used it to create a new project. My php version is 7.0.10 & I have wamp as well.
In this tutorial (https://symfony.com/doc/master/setup.html), it says after you run the server "Open your browser and navigate to http://localhost:8000/". When I do so, I get a No route found for "GET /" error.
the pictures bellow display what I get as an error more precisely :
as well as
I have installed everything following the guide on their official page. I have seen this problem being discussed on github (https://github.com/symfony/symfony-docs/issues/9178) but I don't understand their "quick fix" nor what they're talking about.
I want to know how to get my project running without that problem.
Thanks for any help
It’s strange but It’s totally normal and the error proved that Symfony is well installed
It’s not a « compile » or « configuration » error it’s just a logical error that means you don’t have route defined at
url / so keep learning and define a route (see doc and you see the result)
Related
I've got a strange problem going on with Symfony. Today I made brand new project using composer create-project symfony/website-skeleton gall command and right after installation, before doing anything in code I go to the website and the only thing that is said on webprofiler toolbar is "An error occurred while loading the web debug toolbar." I don't even get to see what kind of error is this.
The server I'm running is PHP v. 7.2.3, program is Xampp for Windows.
I thought maybe this default starting page is bugged, so I made some test controller and the error is exactly the same. Have you encountered such problem with latest symfony?
I would never figure it out myself, but adding index.php to browser address resolved the issue.
Much better solution is to use command
composer require symfony/apache-pack
As the .htaccess file is not included in the website-skeleton by default :)
Thanks for pointing me in the right direction guys!
I've just started to work on an existing project developped with symfony 3.
And here is the problem :
on my local environment everything is ok when i'm using app.php but something comes wrong when using app_dev.php.
I'm getting some net::ERR_CONNECTION_RESET errors on js files. Sometimes it works, sometimes it doesn't. The files implicated are not allways the same and usually when I refresh my page there's no more error until the next one on the next page or the following one...
I'm using netbeans 8.2, windows 10 on a brandnew laptop.
I got my sources on github, my colleague is working on the same project and doesn't have this issue on her local env...
Any clue ??
This seems to be related to too many debug notices. You should fix those and try again.
I have a problem with Symfony 2. trying the example from the book. I have written a controller but when i go to the URL specified in the route i get an error. The server can't find the page. When i run app_dev.php i get an error that the file boostrap.php.cache is missing.
searched on the internet but found nothing relevant so far. I don't know if the front-controller is already written or if that is something that still has to be done by me.
I can't get the application to run.
Found the solution. I followed the guidelines installing sf2 in netbeans. Instead of running the application as a local website i used the build-in server option wich gave me access to the cli commands. There i could use the command run server and all of my problems were gone.
after I have installed a new LAMP Server I wanted to install cakephp3 on my server. So far everything works fine. I have generated the scaffold code explained in the beginner tutorial. After the code has been successfully generated I have noticed that the standard routing is not working, so I cannot call actions from controller, for example by typing http://adress/cakephp/Users/add. Instead of a error message occurs
"The requested URL /cakephp/Bookmarks was not found on this server."
This is irritating me, because I have also a MAMP Server on my MAC with a installed cakephp application and I didnt have errors like this. Thank you.
I hope for some help on the problem I have trying to update my Wiki from 1.21 to 1.25. I,m don't have experience doing this but I followed the manual in Mediawiki doing this.
Create a new folder and put in the new fileset. Add the Images folder with content, moved the Localsettings.php from old to new. And renamed the folder to the right sitename. As result i get this:
a database query error has occurred. this may indicate a bug in the
software.
I'm a beginner and hope for some help, I read some things about using command-line scripts but don't know how to do that, maybe I forgot something in this actions.
I must get this update online soon because my hosting provider is going to use only PHP5.4 in 2 weeks what makes my current wiki stop working.
Thanks in advance.
Updating the database is a required step anytime you upgrade your MediaWiki version. If you cannot run SSH on the server, then you can use the web updater:
http://www.mediawiki.org/wiki/Manual:Upgrading#Web_updater
If this doesn't resolve the issue, try adding some debug code to your LocalSettings to get a real error message:
http://www.mediawiki.org/wiki/Manual:How_to_debug#SQL_errors