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

404 on /site/laskdjasdj #399

Closed
somatonic opened this issue Mar 11, 2014 · 2 comments
Closed

404 on /site/laskdjasdj #399

somatonic opened this issue Mar 11, 2014 · 2 comments

Comments

@somatonic
Copy link

http://site.com/site/sdfds

I get this on a multilanguage site. Of course the language methods do not work.

Error: Exception: Method Page::localUrl does not exist or is not callable in this context (in /home/www-data/processwire/wire/core/Wire.php line 320)

#0 /home/www-data/xxx/site/templates/views/inc/header.inc(55): Wire->__call('localUrl', Array)
#1 /home/www-data/xxx/site/templates/views/inc/header.inc(55): Page->localUrl(Object(Language))
#2 /home/www-data/xxx/site/templates/views/_output.php(92): include('/home/www-data/...')
#3 /home/www-data/xxx/site/templates/basic-page.php(184): include('/home/www-data/...')
#4 /home/www-data/processwire/wire/core/TemplateFile.php(140): require('/home/www-data/...')
#5 [internal function]: TemplateFile->___render()
#6 /home/www-data/processwire/wire/core/Wire.php(359): call_user_func_array(Array, Array)
#7 /home/www-data/processwire/wire/core/Wire.php(317): Wire->runHooks('render', Array)
#8 /home/www-data/processwire/wire/modules/PageRender.module(337): Wire->__call('render', Array)
#9 /home/www-data/processwire/wire/modules/PageRender.

whereas

http://site.com/kjlasd/asd doesn't give an error

@ryancramerdesign
Copy link
Owner

Thanks Soma, a fixed has been pushed for this.

@somatonic
Copy link
Author

On a install where language support is installed, when I browse to url /site/asklaejasjelashe I get redirected to home! Instead to a 404. That's not good from a SEO perspective too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants