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
Change in 404 error reporting? #47
Comments
I think this might be more than what it first appeared to be - or - I haven't noticed this particular behavior until Google pointed it out. If you append some of the lens template names to a site's domain URL, the site will render the template as-is, without any content - or unexpected content - and without properly redirecting the browser to a 404 page or some other appropriate resource. The theme in use doesn't seem to have any bearing on the behavior - only on which templates are susceptible, based on what templates it includes. This same behavior affects the premium themes I've tried from the demo site and some from the 'examples' user sites. Affected lens templates - in my case, while using a modified Elementary theme: album.lens - ( i.e.: https://lumiworx.com/album ) Shows only the header and breadcrumbs, with no content and no footer. There might be others too, but I only checked these names specifically. I can also say with no hesitation, that I've made no changes to any core files or modified the theme with any path or alias busting code of my own. I made one change to the root htaccess file to force a redirect for any page requests to be served via SSL, but left all other code and regex sections untouched. And lastly, there are no unofficial plugins or other 3rd party add-ins in use on the site. All of this may be well known and expected behavior, but if that is the case, I think it might be better to have redirects in place for any/all lens and layout templates in the future. I'd hope that a user gets guided to real resources and not end up on broken pages - even by accident. |
Well, Google's webmaster tool panel reports has been cycling through crawls on several of the page paths as noted above - and posting them as consistent errors. As a temporary fix, I've modified the site's htaccess file to do some permanent redirects. There is one which will not work. Trying to redirect '/error' to '/error/404' results in a never-ending loop in Firefox (v52), so it's been commented out for now. I'm far from being a wiz when it comes to coding Apache rules or doing regex stuff, so this will have to do for the time being. I don't currently have any sets associated within my albums, so both '/set' and '/sets' are getting redirected back to root. I have absolutely no idea why Google is looking for these paths/pages, as they are certainly not in my sitemap file - which, according to the sitemap reports, really IS being read and used for directing bot crawls.
|
Not sure, bit this is mostly a theme issue... OxyGen v3.3.1 that will be released the coming days will address this issue:, and have a solid fix theme whise. |
Sorry, but I doubt this is theme related when it's basic Koken-created core file coding that handles all the page and path aliasing via it's own php and script calls along with the Koken-provided .htaccess rewrite rules. Every default Koken install using the free templates would report these same errors. I can only assume that the paid themes would exhibit the same results. I have made no changes to Koken's core files, nor have I altered the .htaccess file in any way that would account for mangling any pathing data as Koken would usually direct it. My theme is based on the free Elementary theme and all I've added to it or modified is a few official Koken Lens Tags (for tag search, 'order by' in For this particular site there's no need to provide any functionality beyond what is already included within Koken's official site/plug-in releases, and I won't add anything theme-wise to modify something that isn't presentation related. That's what plug-ins and core files are meant to cover, and I won't jeopardize a later clash with core code to fix site behavior issues just to end up with a broken site. And... what about other users who don't use a paid or custom theme or can't/won't do their own paid/custom theme or site coding? They should benefit from any fix by doing a standard site and theme update. My entire .htaccess file [below] shows my alternate code at the top that forces SSL site-wide (which doesn't alter any paths whatsoever - only the protocol to use), then the newly added 301 redirects to handle the Google issue. The remainder of the file from line # 25 on [i.e., # DO NOT EDIT BELOW THIS LINE #] is all of Koken's original coding that obviously does alter the site's paths for navigation and creating pretty/clean URL's, all the page/image caching, image resolution display redirects, and more. If there is anything that could be included in ANY theme to fix a pathing issue with a theme's use of .lens templates and/or layout files, then it should be included with any Koken-supplied theme as the official patch. If there's something I can add into my theme in the mean time, I'd be happy to insert the approved code while that fix is in the works for the standard themes. If core code needs changing - including anything below line 25 in htaccess, as in my case - then I'll wait until Koken publishes it's official change before editing or updating. The site's current .htaccess file:
|
This may be a very minor issue, unless it's a result of some change in Google's own code and then it's more of a non-Koken issue as far as their report goes, but....
Google's crawl report for my site (in their webmaster search console) shows a single consistent error starting on 2/10/2017 for 'error/404/' as a "page not found". I understand 404's, so it's not that the error itself is entirely incorrect - but it hasn't shown up as an error in any Google reports between last November on up to February 10th, and the bot regularly crawls the site according to my reports and site logs. I've made no template changes to cause the issue.
After some testing I found that my 404 page generally works as expected on errors, and it also displays the results for routed_variables.code as an error code from the template. The one exception where it won't render correctly is when I manually type in /error after my domain name as a directory/folder route, I see a direct rendering of the theme's 'error.lens' template with a blank error code. It's still looks complete, with header and footer templates - otherwise it's what you'd visually expect from a non-existent resource producing a 404 error. The only problem seems to be that there's no proper redirect or a display of Koken's internal 404 error code.
i.e., https://lumiworx.com/error/ will show error.lens as-is, versus something like https://lumiworx.com/jo4deswqut that will properly redirect to /error/404/ and show the 404 error code.
This all may be trivial and not worth investigating - and/or unrelated - but experience tells me that when Google's reports start showing errors there may be something else in the works.
The text was updated successfully, but these errors were encountered: