Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Fixed Server Error

Discussion in 'Sportsbook Resolved Bug Reports' started by resonansER, Jul 12, 2014.

  1. resonansER

    resonansER Member

    This happened when I move some events from child category to parent category and change abbreviation for moved category. After that I'm tried delete event and got this error:

    Invalid data writer 'NFLJ_Downloads_DataWriter_Event' specified

    ::create() in NFLJ/Sportsbook/Model/Thread.php at line 104
    ->postToThread() in NFLJ/Sportsbook/DataWriter/Event.php at line 404
    ->_postDelete() in XenForo/DataWriter.php at line 1779
    ->delete() in NFLJ/Sportsbook/ControllerPublic/Sportsbook.php at line 854
    ->actionDelete() in XenForo/FrontController.php at line 347
    ->dispatch() in XenForo/FrontController.php at line 134
    ->run() in /index.php at line 13
    Now i don't delete any event without these errors. I deleted events directly from MySql db. Please, help.
  2. Bob

    Bob Developer Staff Member

    Fixed in the next release, in the mean time simply edit the file /library/NFLJ/Sportsbook/Model/Thread.php

    find on line 104: 'NFLJ_Downloads_DataWriter_Event'

    replace with: 'NFLJ_Sportsbook_DataWriter_Event'
    resonansER likes this.
  3. resonansER

    resonansER Member

    Excellent! You are the best! Really. Very quick and very right.
    When i add recomended code:
    And tried delete event, I got this error:
    The existing data required by the data writer could not be found.
    Please enter a value for the required field 'category_id'.
    Please enter a value for the required field 'user_id'.
    Please enter a valid name.
    Please enter a value for the required field 'event_timezone'.
    Last edited: Jul 12, 2014
  4. Bob

    Bob Developer Staff Member

    is that after you MANUALLY deleted stuff?
  5. resonansER

    resonansER Member

    I don't know. I'll make some tests, and then write back.
    I find out something.
    The existing data required by the data writer could not be found.
    Please enter a value for the required field 'category_id'.
    Please enter a value for the required field 'user_id'.
    Please enter a valid name.
    Please enter a value 
    for the required field 'event_timezone'.
    happened when I add this code:
    simply edit the file /library/NFLJ/Sportsbook/Model/Thread.php
    find on line 104
    replace with'NFLJ_Sportsbook_DataWriter_Event'
    and then deleted event as normally by pressing "Delete" button. BUT before this, was deleted discussion thread belonging this event.
    Last edited: Jul 13, 2014
  6. Bob

    Bob Developer Staff Member

    ok, most likely a new issue because of using the correct DW at that point. I think I know what could be causing it, but won't know until I have time to dig into it (probably tomorrow).
    resonansER likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.