Tag Mapping Issue

Discussion in '[bd] API' started by taylor_smith, Aug 2, 2014.

  1. taylor_smith

    taylor_smith New Member

    We've mapped tags and forums.

    WordPress: http://noobist.com
    XenForo: http://noobist.com/community

    Single sign-on is working. Writers submit stories to the "pending" queue. We tag, then click "publish." No threads are created.
     
  2. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    Please check API log in AdminCP, do you see any POST request from WordPress?
     
    1. taylor_smith

      taylor_smith New Member

      taylor_smith @xfrocks I'd pay to get this working smoother.

      api.png wp.png
       
    2. xfrocks

      xfrocks XenForo rocks!
      Staff Member

    3. taylor_smith

      taylor_smith New Member

      taylor_smith @xfrocks Yeah, looks like there are 22k entries.

      logs.png
       
  3. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    Those are from the Threads widget in WordPress I believe. Now please try making a post in WordPress (with the tag that should be sync to XenForo) and check the log again. I think there should be a new entry with "POST".
     
    1. taylor_smith

      taylor_smith New Member

      taylor_smith @xfrocks No, only GET entries still, even after test.
       
    2. taylor_smith

      taylor_smith New Member

      taylor_smith @taylor_smith I just found these in the error log:

      Code:
      ErrorException: Argument 1 passed to UserEss_DataWriter_Discussion_Thread::_discussionPostSave() must be of the type array, none given, called in public_html/community/library/XenForo/DataWriter/Discussion.php on line 453 and defined - library/UserEss/DataWriter/Discussion/Thread.php:13
      Generated By: Jakewriter, Friday at 8:06 PM
      Stack Trace
      #0 public_html/community/library/UserEss/DataWriter/Discussion/Thread.php(13): XenForo_Application::handlePhpError(4096, 'Argument 1 pass...', 'noobist/...', 13, Array)
      #1 public_html/community/library/XenForo/DataWriter/Discussion.php(453): UserEss_DataWriter_Discussion_Thread->_discussionPostSave()
      #2 public_html/community/library/XenForo/DataWriter.php(1409): XenForo_DataWriter_Discussion->_postSave()
      #3 public_html/community/library/bdApi/ControllerApi/Thread.php(246): XenForo_DataWriter->save()
      #4 public_html/community/library/XenForo/FrontController.php(347): bdApi_ControllerApi_Thread->actionPostIndex()
      #5 public_html/community/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
      #6 public_html/community/api/index.php(71): XenForo_FrontController->run()
      #7 {main}
      Request State
      array(3) {
      ["url"] => string(51) "http://noobist.com/community/api/index.php?threads/"
      ["_GET"] => array(1) {
      ["threads/"] => string(0) ""
      }
      ["_POST"] => array(4) {
      ["oauth_token"] => string(32) "5e74d07ecf1737753c36f7a6542b9617"
      ["forum_id"] => string(2) "15"
      ["thread_title"] => string(26) "Top 10 Geek Out Subreddits"
      ["post_body_html"] => string(442) "Reddit calls itself &#8220;The Front Page of the Internet&#8221; for a good reason. It is chock full of subreddits that focus on specific topics. Everything from &#8220;Explain it to me like I&#8217;m 5&#8243; to adult themed content is a simple thumb press away on your smartphone. Reddit just so happens to be a fantastic home [&hellip;]<br /><br /><a href="http://noobist.com/nerdgasm/top-10-geek-subreddits/">Read the whole post here.</a>"
      }
      }
      
       
    3. taylor_smith

      taylor_smith New Member

      taylor_smith @taylor_smith Bump, please. Still errors. :)
       
    4. xfrocks

      xfrocks XenForo rocks!
      Staff Member

      xfrocks @taylor_smith Oh, this is a conflict with User Essentials add-on. Which version of XenForo and the other add-on are you using?
       
    5. taylor_smith

      taylor_smith New Member

      taylor_smith @xfrocks XF 1.3.3
      UE 1.1.2
       
  4. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    According to this page http://xenforo.com/community/resources/user-essentials.408/, latest version is 1.1.9, can you please try to upgrade to that version?
    That is a paid solution so I can't check further but if you still have problem after 1.1.9 upgrade, can you send me the add-on package to check?
     
    1. taylor_smith

      taylor_smith New Member

      taylor_smith @xfrocks 1.1.9 is only for XF 1.4. I have lots and lots of plugins and a couple themes that aren't 1.4 compatible.
       
  5. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    Ah okie. So can you send me v1.1.2 that you are using?
     
    1. taylor_smith

      taylor_smith New Member

      taylor_smith @xfrocks I upgraded to 1.1.8 and it works! Doh! Ugh, thanks for helping me troubleshoot.
       
  6. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    Ah nice :D
     
    1. taylor_smith

      taylor_smith New Member

      taylor_smith @xfrocks Oops. When I tried syncing via WP, got:

      Code:
      Warning: file_get_contents(http://noobist.com/community/api/index.php?posts/&thread_id=185&page=1&order=natural_reverse&oauth_token=): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home2/noobist/public_html/wp-content/plugins/xenforo-api-consumer/includes/helper/api.php on line 310
      
      Warning: Cannot modify header information - headers already sent by (output started at /home2/noobist/public_html/wp-content/plugins/xenforo-api-consumer/includes/helper/api.php:310) in /home2/noobist/public_html/wp-includes/pluggable.php on line 1121
       
  7. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    Looks like you deleted the thread. It should continue synching just fine.
     
    taylor_smith likes this.
Loading...