Tickets Fixed I know it's not supported, but here are some current errors...

So I've installed the 2.1 beta (yay!) and it installed without an issue. I also went and rebuilt caches. However when I try to view and old, legacy, ticket or try to open a new one I get these errors:

Code:
An exception occurred: [TypeError] Argument 5 passed to XF\App::getCustomFieldsForEdit() must be of the type array or null, boolean given in src/XF/App.php on line 1824

    XF\App->getCustomFieldsForEdit()
    call_user_func_array() in src/XF/Template/Templater.php at line 985
    XF\Template\Templater->method() in internal_data/code_cache/templates/l1/s21/public/custom_fields_macros.php at line 174
    XF\Template\Templater->{closure}() in src/XF/Template/Templater.php at line 701
    XF\Template\Templater->callMacro() in internal_data/code_cache/templates/l1/s21/public/nf_tickets_category_create_ticket.php at line 66
    XF\Template\Templater->{closure}() in src/XF/Template/Templater.php at line 1301
    XF\Template\Templater->renderTemplate() in src/XF/Template/Template.php at line 24
    XF\Template\Template->render() in src/XF/Mvc/Renderer/Html.php at line 48
    XF\Mvc\Renderer\Html->renderView() in src/XF/Mvc/Dispatcher.php at line 418
    XF\Mvc\Dispatcher->renderView() in src/XF/Mvc/Dispatcher.php at line 400
    XF\Mvc\Dispatcher->renderReply() in src/XF/Mvc/Dispatcher.php at line 360
    XF\Mvc\Dispatcher->render() in src/XF/Mvc/Dispatcher.php at line 53
    XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2177
    XF\App->run() in src/XF.php at line 390
    XF::runApp() in index.php at line 20

Code:
Server error log

    TypeError: Argument 3 passed to XF\App::getCustomFields() must be of the type array or null, boolean given src/XF/App.php:1796

    Generated by: Chernabog May 8, 2019 at 7:25 PM

Stack trace

#0 [internal function]: XF\App->getCustomFields('tickets', 'sidebar_user_in...', false, Array)
#1 src/XF/Template/Templater.php(985): call_user_func_array(Array, Array)
#2 internal_data/code_cache/templates/l1/s21/public/custom_fields_macros.php(56): XF\Template\Templater->method(Object(XF\Pub\App), 'getCustomFields', Array)
#3 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}(Object(AddonFlare\PaidRegistrations\XF\Template\Templater), Array, Array)
#4 internal_data/code_cache/templates/l1/s21/public/custom_fields_macros.php(28): XF\Template\Templater->callMacro('custom_fields_m...', 'custom_fields_v...', Array, Array)
#5 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}(Object(AddonFlare\PaidRegistrations\XF\Template\Templater), Array, Array)
#6 internal_data/code_cache/templates/l1/s21/public/nfTickets_ticket_wrapper.php(110): XF\Template\Templater->callMacro('custom_fields_m...', 'custom_fields_v...', Array, Array)
#7 src/XF/Template/Templater.php(1301): XF\Template\Templater->{closure}(Object(AddonFlare\PaidRegistrations\XF\Template\Templater), Array)
#8 src/XF/Template/Templater.php(856): XF\Template\Templater->renderTemplate('nfTickets_ticke...', Array, false)
#9 src/XF/Template/Templater.php(1356): XF\Template\Templater->applyWrappedTemplate('





    
    
    
        
...')
#10 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('nf_tickets_tick...', Array)
#11 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#12 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Html->renderView('NF\\Tickets:Tick...', 'public:nf_ticke...', Array)
#13 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#14 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#15 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#16 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#17 src/XF.php(390): XF\App->run()
#18 index.php(20): XF::runApp('XF\\Pub\\App')
#19 {main}

Request state

array(4) {
  ["url"] => string(83) "/tickets/website-crown-donation-50-00-for-5-125-crowns-not-appearing-in-account.19/"
  ["referrer"] => string(49) "https://titanx.games/tickets/members/chernabog.1/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

Delete
 
Getting the same. Plain white site when accessing "old" tickets. Upgraded from 1.6.9 to 2.0.0 Beta 1 on XF 2.1.2
 
Hmm, I can’t repro it here which is odd.

Do you both have custom fields? If so, could you try re-saving them?
 
Guys Now works for me ( old tickets could be read). THe Issue is related to the Location of some custom fields, seems 'Above First Ticket Message option was not working.
1222
I've changed my custom fields with this Location to 'Below first message' and now I can read and create new Tickets as well. Hope this helps you NixFifty. @NixFifty , @SeToY
 
Last edited:
Guys Now works for me ( old tickets could be read). THe Issue is related to the Location of some custom fields, seems 'Above First Ticket Message option was not working.
View attachment 1222
I've changed my custom fields with this Location to 'Below first message' and now I can read and create new Tickets as well. Hope this helps you NixFifty. @NixFifty , @SeToY

I am testing that now with mine. I noticed that all my custom fields were just (well see the picture) and they were also missing titles and descriptions. Must not have carried over from the legacy tickets to the new update.

I am starting to fix that so I can test and see if it corrects the problem. But can someone please remind me what to use in 'possible choices' for doing the callbacks to grab and report the end users:

OS
Browser
JavaScript Settings

Please?

@NixFifty you also gave me a line of code to use in my notices to display a message when someone submits a ticket... does that change now too or should the old NixFifty_Tickets_ControllerPublic_Ticket New work for controller and action?

Thanks everyone!

Screen Shot 2019-05-09 at 10.22.34 AM.png
 
I deleted all custom ticket fields now, now getting:

Code:
An exception occurred: [TypeError] Argument 3 passed to XF\App::getCustomFields() must be of the type array or null, boolean given in src\XF\App.php on line 1796
[LIST=1]
[*]XF\App->getCustomFields()
[*]call_user_func_array() in src/XF/Template/Templater.php at line 985
[*]XF\Template\Templater->method() in internal_data/code_cache/templates/l1/s19/public/custom_fields_macros.php at line 56
[*]XF\Template\Templater->{closure}() in src/XF/Template/Templater.php at line 701
[*]XF\Template\Templater->callMacro() in internal_data/code_cache/templates/l1/s19/public/custom_fields_macros.php at line 28
[*]XF\Template\Templater->{closure}() in src/XF/Template/Templater.php at line 701
[*]XF\Template\Templater->callMacro() in internal_data/code_cache/templates/l1/s19/public/nfTickets_ticket_wrapper.php at line 110
[*]XF\Template\Templater->{closure}() in src/XF/Template/Templater.php at line 1301
[*]XF\Template\Templater->renderTemplate() in src/XF/Template/Templater.php at line 856
[*]XF\Template\Templater->applyWrappedTemplate() in src/XF/Template/Templater.php at line 1356
[*]XF\Template\Templater->renderTemplate() in src/XF/Template/Template.php at line 24
[*]XF\Template\Template->render() in src/XF/Mvc/Renderer/Html.php at line 48
[*]XF\Mvc\Renderer\Html->renderView() in src/XF/Mvc/Dispatcher.php at line 418
[*]XF\Mvc\Dispatcher->renderView() in src/XF/Mvc/Dispatcher.php at line 400
[*]XF\Mvc\Dispatcher->renderReply() in src/XF/Mvc/Dispatcher.php at line 360
[*]XF\Mvc\Dispatcher->render() in src/XF/Mvc/Dispatcher.php at line 53
[*]XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2177
[*]XF\App->run() in src/XF.php at line 390
[*]XF::runApp() in index.php at line 20
[/LIST]
 
This was a very silly typo. I'm a bit surprised that it wasn't triggered here (haven't looked at why yet) so I didn't spot it earlier but should be good now.

You'll need to re-download the package. :)
 
This was a very silly typo. I'm a bit surprised that it wasn't triggered here (haven't looked at why yet) so I didn't spot it earlier but should be good now.

You'll need to re-download the package. :)

so re-download the add on and re-install? Woot.... beta progress! :: happy dance ::
 
Back
Top