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

[Bug]: e_QUERY test fails in page.php with root namespace = "page" #5237

Open
Jimmi08 opened this issue Apr 19, 2024 · 1 comment
Open

[Bug]: e_QUERY test fails in page.php with root namespace = "page" #5237

Jimmi08 opened this issue Apr 19, 2024 · 1 comment
Labels
type: bug A problem that should not be happening

Comments

@Jimmi08
Copy link
Contributor

Jimmi08 commented Apr 19, 2024

What e107 version are you using?

v2.3.3, Latest Github version (just updated)

Bug description

This test fails because e_QUERY is empty - string '' (length=0)

if(!e_QUERY && e_PAGE == "page.php")

How to reproduce

  1. Associate root namespaces to page (regardless first setting)

image

  1. set page listing OFF

image

  1. go to the homepage and add any parameter to URL
  • you will get the message about the page listing being turned off - this is normally result for legacy page.php (only page.php, not parameters)

image

Expected behavior

Stay on homepage

Workaround:

if(!e_TBQS && e_PAGE == "page.php")

What browser(s) are you seeing the problem on?

Chrome / Brave

PHP Version

7.4

@Jimmi08 Jimmi08 added the type: bug A problem that should not be happening label Apr 19, 2024
@Jimmi08
Copy link
Contributor Author

Jimmi08 commented Apr 19, 2024

Related:
#5170
#4565

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A problem that should not be happening
Projects
None yet
Development

No branches or pull requests

1 participant