We're experiencing a problem that I believe may be related to Magic SEO. On our forum, we've got many really long topics (over 30 pages of posts). Our users recently reported that when clicking on any page of the topic, the posts get sorted by author and not by time posted. Please note that it happens only when a user changes the default order of posts in the topics to "Descending" (by time) in the UCP. I've checked for myself and I can confirm the problem exists.
Here's an interesting part from the phpbb error log:
Code: Select all
[16-Nov-2009 08:17:14 -21600] [phpBB Debug] [client my.IP.address.] [File viewtopic.php?t=78611&start=20&st=0&sk=author&sd=ascending&show-days=0&sort-by=author&sort-direction=ascending] PHP Notice: in file /path/to/file/magic_seo_url.php on line 0 : Undefined index: query
[16-Nov-2009 08:17:14 -21600] [phpBB Debug] [client my.IP.address.] [File viewtopic.php?t=78611&start=20&st=0&sk=author&sd=ascending&show-days=0&sort-by=author&sort-direction=ascending] PHP Notice: in file /path/to/file/magic_seo_url.php on line 0 : Undefined index: query
[16-Nov-2009 08:17:14 -21600] [phpBB Debug] [client my.IP.address.] [File viewtopic.php?t=78611&start=20&st=0&sk=author&sd=ascending&show-days=0&sort-by=author&sort-direction=ascending] PHP Notice: in file /path/to/file/magic_seo_url.php on line 0 : Undefined index: query
[16-Nov-2009 08:17:14 -21600] [phpBB Debug] [client my.IP.address.] [File viewtopic.php?t=78611&start=20&st=0&sk=author&sd=ascending&show-days=0&sort-by=author&sort-direction=ascending] PHP Notice: in file /path/to/file/magic_seo_url.php on line 0 : Undefined index: query
[16-Nov-2009 08:17:14 -21600] [phpBB Debug] [client my.IP.address.] [File viewtopic.php?t=78611&start=20&st=0&sk=author&sd=ascending&show-days=0&sort-by=author&sort-direction=ascending] PHP Notice: in file /path/to/file/magic_seo_url.php on line 0 : Undefined index: search_id
As you can see, for some reason there was a query "sort-by=author" even though I'm sure I've just clicked the page 2 link.
Can you advise on how we can solve the problem? I've looked through the forum/.htaccess file but couldn't figure out what the problem is.
Thank you very much in advance!