1. REGISTRATION REQUIREMENTS:

    Register with your xenforo.com Username then 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:

    PHP:
    Invalid data writer 'NFLJ_Downloads_DataWriter_Event' specified

    XenForo_DataWriter
    ::create() in NFLJ/Sportsbook/Model/Thread.php at line 104
    NFLJ_Sportsbook_Model_Thread
    ->postToThread() in NFLJ/Sportsbook/DataWriter/Event.php at line 404
    NFLJ_Sportsbook_DataWriter_Event
    ->_postDelete() in XenForo/DataWriter.php at line 1779
    XenForo_DataWriter
    ->delete() in NFLJ/Sportsbook/ControllerPublic/Sportsbook.php at line 854
    NFLJ_Sportsbook_ControllerPublic_Sportsbook
    ->actionDelete() in XenForo/FrontController.php at line 347
    XenForo_FrontController
    ->dispatch() in XenForo/FrontController.php at line 134
    XenForo_FrontController
    ->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:
    Code:
    'NFLJ_Sportsbook_DataWriter_Event'
    And tried delete event, I got this error:
    Code:
    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.
    nflj_sportsbook_please_enter_valid_event_title
    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.
    This:
    PHP:
    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.
    nflj_sportsbook_please_enter_valid_event_title
    Please enter a value 
    for the required field 'event_timezone'.
    happened when I add this code:
    PHP:
    simply edit the file /library/NFLJ/Sportsbook/Model/Thread.php
    find on line 104
    'NFLJ_Downloads_DataWriter_Event'
    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.