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

Phalcon Devtools error: generate controllers, models and scaffold not working (404 not found page) #1500

Closed
luisrom661 opened this issue Apr 1, 2021 · 4 comments · Fixed by #1501
Assignees
Milestone

Comments

@luisrom661
Copy link

(this text is automatically translated from Spanish to English.)

Hello, I would like to ask about this error that Phalcon devtools shows when generating a controller, model or scaffold:

image
image

my configurations are as follows (config,php)

image

Details

  • System versions: Phalcon Devtools 4.1.0
  • Phalcon Framework version: Phalcon 4.1.0
  • PHP Version: PHP Version 7.4.16
  • Operating System: Windows 10
  • Server: Apache and MySQL
@BeMySlaveDarlin
Copy link
Contributor

BeMySlaveDarlin commented Apr 1, 2021

  1. Fixed handle error in ISSUE-1500: Fix not found error on webtools #1501
  2. For better workflow i recommend to add into your nginx vhost config
    location /webtools {
        try_files $uri $uri/ /webtools.php?_url=$uri&$args;
    }

location is a path where your webtools.php is located + filename without .php

For example vhost's root path is /app/public, and webtools located

  1. at /app/public/webtools.php: localtion will be /webtools
  2. at /app/public/webtools/webtools.php: location will be /webtools/webtools

@luisrom661
Copy link
Author

  1. Fixed handle error in ISSUE-1500: Fix not found error on webtools #1501
  2. For better workflow i recommend to add into your nginx vhost config
    location /webtools {
        try_files $uri $uri/ /webtools.php?_url=$uri&$args;
    }

location is a path where your webtools.php is located + filename without .php

For example vhost's root path is /app/public, and webtools located

  1. at /app/public/webtools.php: localtion will be /webtools
  2. at /app/public/webtools/webtools.php: location will be /webtools/webtools

thanks for your answer, I am not very clear where I should add those lines of code from the location /webtools, can you please tell me? thanks a lot.

@BeMySlaveDarlin
Copy link
Contributor

While you have Nginx or Apache webserver, you can add this directive into your website configuration under that webserver.

@luisrom661
Copy link
Author

While you have Nginx or Apache webserver, you can add this directive into your website configuration under that webserver.

Thank you!

@Jeckerson Jeckerson linked a pull request Apr 4, 2021 that will close this issue
3 tasks
@Jeckerson Jeckerson added this to the 4.0.x milestone Apr 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants