WordPress.org

Ready to get started?Download WordPress

Forums

invalid post typeproblem ingesting (2 posts)

  1. WebsThatRock
    Member
    Posted 1 year ago #

    This ingested fine before for the state delaware but now won't for the state alabama.

    I turned on debug ingestion and the results are below.

    Invalid post typeProblem Ingesting Alabama Scenic River Trail
    Array
    (
        [post_id] =>
        [publish] => 1
        [function] => wp.newPost
        [args] => Array
            (
                [post_content] => [types field="leashed-dogs-icon" proportional="true" align="left"][/types][types field="fishing-icon" proportional="true" align="left"][/types][types field="swimming-icon" proportional="true" align="left"][/types][types field="diving-snorkeling-icon" proportional="true" align="left"][/types][types field="canoe-kayak-icon" proportional="true" align="left"][/types][types field="rockhounding-icon" proportional="true" align="left"][/types][types field="rock-climbing-icon" proportional="true" align="left"][/types][types field="cave-e| Inline Skating |ploring-icon" proportional="true" align="left"][/types][types field="camping-nearby-icon" proportional="true" align="left"][/types][types field="hiking-icon" proportional="true" align="left"][/types][types field="handicapped-accessible-icon" proportional="true" align="left"][/types][types field="horseback-equestrian-icon" proportional="true" align="left
                [post_type] => trails
                [post_title] => Bartram Canoe Trail
                [terms_names] =>
                [terms] =>
                [custom_fields] => Array
                    (
                        [0] => Array
                            (
                                [key] => wpcf-trail-measurement
                                [value] => 631
                            )
    
                        [1] => Array
                            (
                                [key] => wpcf-state
                                [value] => Alabama (AL)
                            )
    
                        [2] => Array
                            (
                                [key] => wpcf-county-parish-borough
                                [value] => Baldwin
                            )
    
                        [3] => Array
                            (
                                [key] => wpcf-fishing
                                [value] => | Fishing |
                            )
    
                        [4] => Array
                            (
                                [key] => wpcf-swimming
                                [value] => | Swimming |
                            )
    
                        [5] => Array
                            (
                                [key] => wpcf-diving-snorkeling
                                [value] => | Diving/Snorkeling |
                            )
    
                        [6] => Array
                            (
                                [key] => wpcf-canoe-kayak
                                [value] => | Canoe/Kayak |
                            )
    
                    )
    
                [post_status] => publish
            )
    
    )
    POST /wp-content/plugins/supra-csv-parser//xmlrpc/supra_xmlrpc.php HTTP/1.0
    Host: alabama.ustrails.net
    Content-Type: text/xml
    User-Agent: The Incutio XML-RPC PHP Library
    Content-Length: 3608
    
    <?xml version="1.0"?>
    <methodCall>
    <methodName>wp.newPost</methodName>
    <params>
    <param><value><string></string></value></param>
    <param><value><string>admin</string></value></param>
    <param><value><string>r200554</string></value></param>
    <param><value><struct>
      <member><name>post_content</name><value><string>[types field="leashed-dogs-icon" proportional="true" align="left"][/types][types field="fishing-icon" proportional="true" align="left"][/types][types field="swimming-icon" proportional="true" align="left"][/types][types field="diving-snorkeling-icon" proportional="true" align="left"][/types][types field="canoe-kayak-icon" proportional="true" align="left"][/types][types field="rockhounding-icon" proportional="true" align="left"][/types][types field="rock-climbing-icon" proportional="true" align="left"][/types][types field="cave-e| Inline Skating |ploring-icon" proportional="true" align="left"][/types][types field="camping-nearby-icon" proportional="true" align="left"][/types][types field="hiking-icon" proportional="true" align="left"][/types][types field="handicapped-accessible-icon" proportional="true" align="left"][/types][types field="horseback-equestrian-icon" proportional="true" align="left</string></value></member>
      <member><name>post_type</name><value><string>trails</string></value></member>
      <member><name>post_title</name><value><string>Bartram Canoe Trail</string></value></member>
      <member><name>terms_names</name><value><string></string></value></member>
      <member><name>terms</name><value><string></string></value></member>
      <member><name>custom_fields</name><value><array><data>
      <value><struct>
      <member><name>key</name><value><string>wpcf-trail-measurement</string></value></member>
      <member><name>value</name><value><string>631</string></value></member>
    </struct></value>
      <value><struct>
      <member><name>key</name><value><string>wpcf-state</string></value></member>
      <member><name>value</name><value><string>Alabama (AL)</string></value></member>
    </struct></value>
      <value><struct>
      <member><name>key</name><value><string>wpcf-county-parish-borough</string></value></member>
      <member><name>value</name><value><string>Baldwin</string></value></member>
    </struct></value>
      <value><struct>
      <member><name>key</name><value><string>wpcf-fishing</string></value></member>
      <member><name>value</name><value><string>| Fishing |</string></value></member>
    </struct></value>
      <value><struct>
      <member><name>key</name><value><string>wpcf-swimming</string></value></member>
      <member><name>value</name><value><string>| Swimming |</string></value></member>
    </struct></value>
      <value><struct>
      <member><name>key</name><value><string>wpcf-diving-snorkeling</string></value></member>
      <member><name>value</name><value><string>| Diving/Snorkeling |</string></value></member>
    </struct></value>
      <value><struct>
      <member><name>key</name><value><string>wpcf-canoe-kayak</string></value></member>
      <member><name>value</name><value><string>| Canoe/Kayak |</string></value></member>
    </struct></value>
    </data></array></value></member>
      <member><name>post_status</name><value><string>publish</string></value></member>
    </struct></value></param>
    <param><value><string>1</string></value></param>
    </params></methodCall>
    HTTP/1.1 200 OK
    Date: Thu, 18 Oct 2012 20:39:05 GMT
    Server: Apache
    Connection: close
    Set-Cookie: wpmp_switcher=desktop; expires=Fri, 18-Oct-2013 20:39:06 GMT; path=/
    Content-Length: 372
    Content-Type: text/xml
    
    <?xml version="1.0"?>
    <methodResponse>
      <fault>
        <value>
          <struct>
            <member>
              <name>faultCode</name>
              <value><int>403</int></value>
            </member>
            <member>
              <name>faultString</name>
              <value><string>Invalid post type</string></value>
            </member>
          </struct>
        </value>
      </fault>
    </methodResponse>
  2. WebsThatRock
    Member
    Posted 1 year ago #

    I can't figure this out. I started with delaware.ustrails.net and created all of the Types and Views (from the Types and Views plugins) and ingested with Supra and it worked perfectly.

    I went to alabama.ustrails.net and imported the Types and Views and they are the exact same ones and ingested with Supra the trails for Alabama and came up with the above error. I tried ingesting Delaware trails into Alabama and that didn't work either. However I tried to ingest Alabama trails into Delaware and it worked with a glitch.

    I'm at a loss. I tried ingesting the Delaware trails back into Delaware again and it worked perfectly. The next thing to try is to delete the Types and Views in Alabama then upload and ingest the file for testing but I would hate to go through hours of work to not have it work. When comparing the Types and Views between Delaware and Alabama they are exactly the same. The databases are the same just with different info in the cells.

Topic Closed

This topic has been closed to new replies.

About this Topic