Warning message on Manually Sync

Discussion in 'WordPress' started by anto74, Mar 13, 2014.

  1. Have feature suggestions for the WordPress plugin? Post or vote here.
  1. anto74

    anto74 Member

    Hi @xfrocks
    i have tried the manually sync on WP in your plugin settings and i have two warnings messages:
    Code:
    Warning: file_get_contents(http://www.macroforum.org/api/index.php?posts/&thread_id=23593&page=1&order=natural_reverse&oauth_token=): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/emtvqmnh/public_html/blog/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 /home/emtvqmnh/public_html/blog/wp-content/plugins/xenforo-api-consumer/includes/helper/api.php:310) in /home/emtvqmnh/public_html/blog/wp-includes/pluggable.php on line 896
    and in XenForo Log error i have 70 pages of this error
    Code:
    ErrorException: Array to string conversion - library/bdApi/ControllerApi/Thread.php:40
    Generato Da: Account Sconosciuto, 3 minuti fa
    Analisi dello Stack
    #0 [internal function]: XenForo_Application::handlePhpError(8, 'Array to string...', '/home/emtvqmnh/...', 40, Array)
    #1 /home/emtvqmnh/public_html/library/bdApi/ControllerApi/Thread.php(40): array_unique(Array)
    #2 /home/emtvqmnh/public_html/library/XenForo/FrontController.php(347): bdApi_ControllerApi_Thread->actionGetIndex()
    #3 /home/emtvqmnh/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
    #4 /home/emtvqmnh/public_html/api/index.php(71): XenForo_FrontController->run()
    #5 {main}
    Stato Richiesta
    array(3) {
      ["url"] => string(404) "http://www.macroforum.org/api/index.php?threads/&forum_id=236,237,238,239,253,254,255,256,257,258,259,261,262,263,264,266,275,276,277,278,279,280,286,295,301,302,303,304,305,334,337,338,339,341,354,362,365,366,374,378,380,381,382,383,384,385,386,387,402,410,412,414,423,424,425,426,427,428,429,433,434,435,436,443,444,445,453&page=1&order=thread_create_date_reverse&oauth_token=&_xfac=threads.php&limit=5"
      ["_GET"] => array(7) {
        ["threads/"] => string(0) ""
        ["forum_id"] => string(267) "236,237,238,239,253,254,255,256,257,258,259,261,262,263,264,266,275,276,277,278,279,280,286,295,301,302,303,304,305,334,337,338,339,341,354,362,365,366,374,378,380,381,382,383,384,385,386,387,402,410,412,414,423,424,425,426,427,428,429,433,434,435,436,443,444,445,453"
        ["page"] => string(1) "1"
        ["order"] => string(26) "thread_create_date_reverse"
        ["oauth_token"] => string(0) ""
        ["_xfac"] => string(11) "threads.php"
        ["limit"] => string(1) "5"
      }
      ["_POST"] => array(0) {
      }
    }
    
     
  2. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    Looks like you deleted the thread and triggered the first error.

    Regarding the 70 pages issue, I'm looking into it.
     
    1. anto74

      anto74 Member

      anto74 @xfrocks Yes, the thread ID was test thread for testing addon.
      The error in XF i think is related to warning in WP....is generated after 2-3 minutes
       
  3. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    Looks like it's coming from the widget. Do you have the Threads widget enabled?
     
    1. anto74

      anto74 Member

      anto74 @xfrocks Yes, is enabled.,.
      New threads, limit=5, all forums
       
  4. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    Please empty the server error log in XenForo, disable the widget and see if the errors come back.
     
    1. anto74

      anto74 Member

      anto74 @xfrocks Ok, widget disabled, sync manually....the same two warnings messages in WP, but now nothing errors in XF
       
  5. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    That's expected. The warning for manual sync will stay there for days unless you delete the respective WordPress post.
    Now, I have to dig into the errors.
     
    anto74 likes this.
    1. anto74

      anto74 Member

      anto74 @xfrocks Ok, thanks :)
       
  6. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    Can you confirm version of [bd] API in XenForo?
     
    1. anto74

      anto74 Member

      anto74 @xfrocks Yes, version 1.2.1 :)
       
  7. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    anto74 likes this.
    1. panda

      panda New Member

    2. anto74

      anto74 Member

      xfrocks likes this.
      1
  8. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    Just upload files in upload directory in the package (the same way when you installed it). Then reimport the XML.
     
Loading...