Skip to main content


!Friendica Support
Greetings
Little help please?
whenever I do any kind of search in the search bar at the top, I get "Page not found" ->
Exception thrown in /var/www/clients/client2/web32/web/friendica/src/Module/HTTPException/PageNotFound.php:49
Stack trace:
#0 /var/www/clients/client2/web32/web/friendica/src/BaseModule.php(244): Friendica\Module\HTTPException\PageNotFound->content()
#1 /var/www/clients/client2/web32/web/friendica/src/Module/HTTPException/PageNotFound.php(80): Friendica\BaseModule->run()
#2 /var/www/clients/client2/web32/web/friendica/src/App.php(719): Friendica\Module\HTTPException\PageNotFound->run()
#3 /var/www/clients/client2/web32/web/friendica/index.php(44): Friendica\App->runFrontend()
#4 {main}
maybe this can help ->
[DEBUG]: Runtime {"method":"GET","module":"search","runtime":"0.483","load":"1.27","origin":"runFrontend","signature":false,"request":"/search?q=search"} - {"file":"Page.php","line":114,"function":"logRuntime","uid":"5e0e2e","process_id":2855726}
How does your .htaccess looks like?
I think I had that exact same error recently. It was caused by an incorrect URL rewriting rule in my .htaccess file:
RewriteRule ^(.*)$ index.php?q=$1 [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]

where it should have been
RewriteRule ^(.*)$ index.php?pagename=$1 [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
NginX, not Apache (no htacess) ->

location / {
    index index.php;
    if (!-f $request_filename) {
        rewrite ^/(.+)$ /index.php?q=$1 last;
    }
    try_files $uri $uri/ =404;
}


So, I guess that rewrite line should maybe be
 rewrite ^/(.+)$ /index.php?pagename=$1 last;


yeh?
ha!
that seems to have worked. (will let you know if any other issues creep in)

Thanks!