Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5947585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:59:05+00:00 2026-05-22T16:59:05+00:00

My symfony project is deployed on shared hosting on a sub-domain . All un-secured

  • 0

My symfony project is deployed on shared hosting on a sub-domain.

All un-secured modules work fine, but none of the secure modules load, and the routing fails throwing a Empty module and/or action… error. The routing is working fine for unauthenticated modules.
I couldn’t find much in the logs, just that the sfBasicSecurityFilter was not getting called.

To solve it,

  1. I followed the solution in this ticket and added ‘POST’ to the sfRequestRoute class
  2. I also tried
    adding the sf_method requirement to the routes
  3. The Auth module was earlier called default, so to avoid a name conflict I even changed the module name
  4. I have reset the cache multiple times
  5. It works fine on all local environments.

Any solutions?

[EDIT] Another experiment
I used the frontend_dev.php controller on the setup, and compared with the log from index.php

index.php when requesting the route /pricing that comes from an unsecure module

May 23 12:37:38 symfony [info] {sfPatternRouting} Connect sfRoute "sf_guard_signin" (/guard/login)
May 23 12:37:38 symfony [info] {sfPatternRouting} Connect sfRoute "sf_guard_signout" (/guard/logout)
May 23 12:37:38 symfony [info] {sfPatternRouting} Connect sfRoute "sf_guard_forgot_password" (/guard/forgot_password)
May 23 12:37:38 symfony [info] {sfPatternRouting} Connect sfDoctrineRoute "sf_guard_forgot_password_change" (/guard/forgot_password/:unique_key)
May 23 12:37:38 symfony [info] {sfPatternRouting} Match route "home_pricing" (/pricing) for /pricing with parameters array (  'module' => 'home',  'action' => 'pricing',)
May 23 12:37:38 symfony [info] {sfFilterChain} Executing filter "sfRenderingFilter"
May 23 12:37:38 symfony [info] {sfFilterChain} Executing filter "sfCacheFilter"
May 23 12:37:38 symfony [info] {sfFilterChain} Executing filter "sfCommonFilter"
May 23 12:37:38 symfony [info] {sfFilterChain} Executing filter "sfExecutionFilter"
May 23 12:37:38 symfony [info] {homeActions} Call "homeActions->executePricing()"
....
May 23 12:37:38 symfony [info] {sfWebResponse} Send status "HTTP/1.1 200 OK"
May 23 12:37:38 symfony [info] {sfWebResponse} Send header "Content-Type: text/html; charset=utf-8"
May 23 12:37:38 symfony [info] {sfWebResponse} Send content (6444 o)

frontend_dev.php when requesting the route /pricing that comes from an unsecure module

May 24 08:14:28 symfony [info] {sfPatternRouting} Connect sfRoute "sf_guard_signin" (/guard/login)
May 24 08:14:28 symfony [info] {sfPatternRouting} Connect sfRoute "sf_guard_signout" (/guard/logout)
May 24 08:14:28 symfony [info] {sfPatternRouting} Connect sfRoute "sf_guard_forgot_password" (/guard/forgot_password)
May 24 08:14:28 symfony [info] {sfPatternRouting} Connect sfDoctrineRoute "sf_guard_forgot_password_change" (/guard/forgot_password/:unique_key)
May 24 08:14:28 symfony [err] {sfError404Exception} Empty module and/or action after parsing the URL "/frontend_dev.php/pricing" (/).
May 24 08:14:28 symfony [info] {sfWebResponse} Send status "HTTP/1.0 404 Not Found"

I’m using HTACCESS to enable routing
/public_html/.htaccess (empty)

/public_html/demo/.htaccess

#RewriteEngine on
#RewriteBase /

#RewriteCond %{REQUEST_URI} !^/web/ 
#RewriteRule .* /web/%1 [QSA]

Options +FollowSymLinks +ExecCGI

<IfModule mod_rewrite.c>
  RewriteEngine On

  # we skip all files in /web
  RewriteCond %{REQUEST_URI} ^/web/
  RewriteRule .* - [L]

  # we rewrite all other files with .something to /web
  RewriteCond %{REQUEST_URI} \..+$
  RewriteCond %{REQUEST_URI} !\.html$
  RewriteRule ^(.*)$ /web/$1 [L]

  # !!! UNTESTED !!! ##################################
  # we check if the .html version is in /web (caching)
  #RewriteRule ^$ /web/index.html [QSA]
  #RewriteRule ^([^.]+)$ /web/$1.html [QSA]
  #####################################################

  # no, so we redirect to our front web controller
  RewriteRule ^(.*)$ /web/index.php [QSA,L]

</IfModule>

# big crash from our front web controller
ErrorDocument 500 "<h2>Application error</h2>symfony application failed to start properly"

/public_html/demo/web/.htaccess (empty)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T16:59:05+00:00Added an answer on May 22, 2026 at 4:59 pm

    This was totally my bad. Having developed it on Windows, I had used / in one of the paths included in the sfGuard module. That created a fatal error.

    Do some sort of an echo in the index.php or a die to highlight such errors.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to install symfony framework on my hostmonster shared hosting server. but I'm
How can i use global i18n translations for all applications in a symfony project?
I have a symfony project which, because of DNS issues, is http://<project-name>/ locally, but
I'm working on a symfony project, and I've been through the tutorial but this
I have created two applications in my symfony project, but my second application i
HI! I use symfony 1.4.11. In my project's all users ad, are available on
symfony: http://www.symfony-project.org pjax: https://github.com/defunkt/jquery-pjax Hi all, I'm trying to use pjax in symfony in
I've started localizing my Symfony project but when I tried to use the __()
My current project is in Rails. Coming from a Symfony (PHP) and Django (Python)
my symfony project at production when an actions does not exist is throwing error

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.