Topic Closed
jogai
264 Posts

In download themes or download plugins the searchbox is prefilled with a part of the current url. Nothing is found by default. When removing the contents of the search the system jumps somewhere else.

In /Admin_Main the breadcrumbs come from the startpage. Looks a bit weird to me.

8 years ago#4792

Josh S.
2K Posts
283K Downloads
16 Themes
18 Plugins

Thanks! Just fixed it

8 years ago#4808

jogai
264 Posts

I installed 3.5rc1 but the searchboxes are still prefilled. In the new default theme the site search box is prefilled too.

8 years ago#4812

Josh S.
2K Posts
283K Downloads
16 Themes
18 Plugins

Hmm. Do you have any addons installed?

The value within search field is just grabbing the $_GET['q']  value which can be changed/set by nearly anything.

8 years ago#4823

jogai
264 Posts

No, it happened on the default install. Maybe it has to do with nginx since its using server variables? It puts just everything after the domain name in the search box.

8 years ago#4825

jogai
264 Posts

Testing the latest version:

When going to /Admin_Theme_Content/Remote the search input is prefilled. When making it empty the query string looks like /Admin_Theme_Content/Remote?q= and all works. It seems to have problems when q is not present (at least at my nginx installation).

8 years ago#4867

Josh S.
2K Posts
283K Downloads
16 Themes
18 Plugins

the search input is prefilled

What is it prefilled with? Is it consistently the same string?

It's very likely something within the nginx configuration. Do you have code used to hide the index.php file?

8 years ago#4871

jogai
264 Posts

Sorry that I didn't make that clear.

The search boxes are prefilled with everything after my tld. On name.tld/Admin_Theme_Content/Remote its filled with '/Admin_Theme_Content/Remote' and on name.tld/Admin_Addons/Remote its filled with '/Admin_Addons/Remote', both without the quotes.

index.php is hidde with the .htaccess:

AddType application/x-javascript .js
AddType text/css .css
AddType text/xml .xml

AcceptPathInfo On

# BEGIN gpEasy

SetEnv gp_rewrite IYhfpdm

RewriteEngine On
RewriteBase "/"
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule /?(.*) "/index.php?$1" [qsa,L]


RewriteRule . "/index.php" [L]


# END gpEasy

And another thing. On the domain without anything after name.tld/ I got an 403. Server log says:


	2012/11/14 08:22:57 [error] 13183#0: *24260 directory index of "/var/www/" is forbidden, client: 82.168.125.211, server: _, request: "GET / HTTP/1.1", host: "name.tld"

Both are nginx related I think, but I use nginx for my clients too.

Never mind the last issue, added a server alias in my nginx config and it works fine.

Edited: 8 years ago#4876

Josh S.
2K Posts
283K Downloads
16 Themes
18 Plugins

index.php is hidden with the .htaccess:

Hmm, I didn't think nginx used the same configuration settings as apache. Even if it does, there's nothing in there that would set the q request variable. Is there anything else in your nginx configuration that could be the cause? Something like this:

location / {
    rewrite ^(.+)$ /index.php?q=$1 last;
}

Edited: 8 years ago#4894

jogai
264 Posts

Well, the .htaccess doesn't give trouble in nginx. I have to do it by hand, but that's fine.

And yes, my nginx config did cause trouble:

location / {
                # This is cool because no php is touched for static content
                try_files $uri $uri/ /index.php?q=$uri&$args;
        }

Thank you so much for pointing me in the right direction! I'll open an issue at https://github.com/aatishnn/lempstack (edit: here it is) because I use that for my nginx configs.

It also happening on the frontpage:

Edited: 8 years ago#4898

Topic Closed

 

News

elFinder 2.1.50 in Upcoming Release
12/28/2019

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1
8/12/2017

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

HH-Support

Company located in T├│rshavn, Faroe Islands. * Webpage Design * Consultant & Provider of a wide range of programs for visually impaired and dyslextics.

Find out more about our Provider Spotlight

Log In

  Register