blueriver / MuraGoogleSitemaps

Google Sitemap plugin for Mura CMS
Apache License 2.0
5 stars 11 forks source link

500 error when first hitting a site Lucee 5 #19

Open Tigerlady opened 6 years ago

Tigerlady commented 6 years ago

Hello, so I am not totally sure this is a Sitemaps issue but the error codes generated on several sites point in this direction.

We recently upgraded all of our servers to Lucee 5 and Windows 2016. When Lucee does a restart and the site is a Mura site with the Sitemap plugin installed it throws a 500 error. You have to refresh the page 2 times to get the error to clear.

The first error is String index out of range -7 and the second error is -6 then you refresh again and the site works. This is across all Mura sites that have the plugin installed.

Message lucee.runtime.exp.NativeException: String index out of range: -7

2 hours ago: 4 Apr. 2018 08:58:52 ajp-nio-8001-exec-6 ERROR /muraWRM/config/appcfc/onApplicationStart_include.cfm, line 455 12, from 22 Mar. 2018 23:01 untill 4 Apr. 2018 08:58 "ERROR","ajp-nio-8001-exec-6","03/22/2018","23:01:25","","lucee.runtime.exp.NativeException: String index out of range: -7at java. lang.String.substring(String.java:1931)at lucee.runtime.PageSourceImpl.getPhyscalFile(PageSourceImpl.java:480)at lucee.runtime.PageSourceImpl.loadPhysical(PageSourceImpl.java:290)at lucee.runtime.PageSourceImpl.loadPageThrowTemplateException(PageSourceImpl.java:219)at lucee.runtime.PageSourceImpl.loadPage(PageSourceImpl.java:946)at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:934)at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:833)at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:817)at application_cfc$cf.initComponent(/MeldGoogleSitemaps/Application.cfc:22)at application_cfc$cf.newInstance(/MeldGoogleSitemaps/Application.cfc:20)at lucee.runtime.component.ComponentLoader.initComponent(ComponentLoader.java:556)at lucee.runtime.component.ComponentLoader._loadComponent(ComponentLoader.java:493)

I have more logs and we have fusion reactor if you need more information.

Thank you.