[4.1 Alpha 3] Problem with one specific template showing as link with [template] bbcode
1)
One template refuses to render its content on other pages
This template will only show up as a link (clicking the link will load the template OK, although it does add the ?expecttypeid=# URL parameter. I have tried some troubleshooting but I cannot determine what a cause might be as I cannot reproduce the issue with any other template. I'll attempt to describe what I've tried in the hope that you might have an idea what the cause could be.
Let's call the template "Fruit box". So
[template]Fruit box[/template] =
Fruit box.
---
The template name contains a space, "Fruit box", so I tried changing the title to something without spaces, "Fruitbox". Trying to include the template on another page under this new name renders as a red link (with parameters da and expecttypeid). After clicking the red link, the template contents displays on its own page just fine.
So
[template]Fruitbox[/template] =
Fruitbox. As this did not help, I moved the template back to its original name (with space). The template showing as link problem remained.
---
I then copied the entire template contents to a new template page under a different name. This name was the same one as above, but without the space, "Fruitbox". This time
[template]Fruitbox[/template] works as expected with the template contents displayed.
[template]Fruit box[/template] is still a link.
[template]Fruitbox[/template] =
template contents rendered!
[template]Fruit box[/template] =
Fruit box.
---
Then I tried creating another copy of the template with identical content but under a different name. This name is the original name plus a test suffix, "Fruit box test". But this time
[template]Fruit box test[/template] works as intended.
[template]Fruit box test[/template] =
template contents rendered!
---
As a last resort, I permanently deleted the funky template and then re-created it under the same name. Now there is no issue with the template only rendering as a link and not showing its contents on other pages


.
[template]Fruit box[/template] =
template contents rendered!!!
---
So far, I have only experienced the [template] quirk with the one template. I can't reproduce this behaviour for other templates (even though their contents are exactly the same). From first noticing this quirk, the problem template would have been at most an hour old.
----------------
2)
Rebuild content URLs
While rebuilding content URLs , accessing the funky template from 1) resulted in a fatal error:
Fatal Error: attempted to instantiate non-existent class vw_UI_Tab_Template_Model
[vw-core]/model/ui/tab/template/vw.php does not exist or does not contain the specified class.
After rebuilding content URLs is complete, no fatal error occurs anymore. Having said that, the funky template showing as a text link with [template] remained a problem until I permanently deleted and then recreated that template.
Code:
#0: vw_Hard_Core::fetch_object() in [vw-platform]/src/addons/vw/vw/_hard/core.php at line 762
#1: vw_Hard_Core::model() in [vw-core]/controller/ui/index/vw.php at line 128
#2: vw_UI_Index_Controller->can_create() in [vw-core]/view/ui/error/vw.php at line 38
#3: vw_UI_Error_View->view() in [vw-core]/view/reply/view/vw.php at line 48
#4: vw_Reply_View_View->render_type() in [vw-core]/view/reply/base/vw.php at line 134
#5: vw_Reply_base_View->render() in [vw-core]/view/reply/stack/vw.php at line 44
#6: vw_Reply_Stack_View->render() in [vw-platform]/src/addons/vw/vw/XF/Mvc/View.php at line 25
#7: vw\vw\XF\Mvc\View->renderHtml() in [vw-platform]/src/XF/Mvc/Renderer/AbstractRenderer.php at line 91
#8: XF\Mvc\Renderer\AbstractRenderer->renderViewObject() in [vw-platform]/src/XF/Mvc/Renderer/Html.php at line 45
#9: XF\Mvc\Renderer\Html->renderView() in [vw-platform]/src/XF/Mvc/Dispatcher.php at line 418
#10: XF\Mvc\Dispatcher->renderView() in [vw-platform]/src/XF/Mvc/Dispatcher.php at line 400
#11: XF\Mvc\Dispatcher->renderReply() in [vw-platform]/src/XF/Mvc/Dispatcher.php at line 360
#12: XF\Mvc\Dispatcher->render() in [vw-platform]/src/XF/Mvc/Dispatcher.php at line 53
#13: XF\Mvc\Dispatcher->run() in [vw-platform]/src/XF/App.php at line 2177
#14: XF\App->run() in [vw-platform]/src/XF.php at line 390
#15: XF::runApp() in [vw-platform]/index.php at line 20