Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter none

    (@fanchyfanch)

    Hi!

    You’re right dude, sorry about that. I didn’t think to the archive filesize but effectively, it grew over the 10Mb limit since last months and it couldn’t be send by email.

    I had to download them by FTP, which is not a problem.

    Maybe you could improve your extension to check those filesize before making operation on it (and give a specified error message for those that exceed mail attachment size limit)?

    Thanks anyway for your answer and for your excellent plugin.

    none

    (@fanchyfanch)

    Hi,

    Got the same problem here with the following debug log:

    WP-Piwik 1.0.17
    Mode: http
    
    Test 1/3: global.getPiwikVersion
    
    bool(false)
    
    array(2) {
      [0]=>
      string(603) "HTTP/1.1 301 Moved Permanently
    Set-Cookie: startBAK=R3415744843; path=/; expires=Wed, 06-Sep-2017 16:06:46 GMT
    Date: Wed, 06 Sep 2017 14:50:14 GMT
    Content-Type: text/html; charset=iso-8859-1
    Content-Length: 250
    Set-Cookie: start=R1548370258; path=/; expires=Wed, 06-Sep-2017 15:57:29 GMT
    Server: Apache
    X-FRAME-OPTIONS: DENY
    X-Content-Type-Options: nosniff
    Strict-Transport-Security: max-age=63072000; includeSubDomains
    Location: https://www.digitemis.com/analytics/piwik/
    Cache-Control: max-age=172800
    Expires: Fri, 08 Sep 2017 14:50:14 GMT
    Vary: Accept-Encoding
    X-IPLB-Instance: 1077
    
    "
      [1]=>
      string(256) "http://www.digitemis.com/analytics/piwik/?module=API&method=API.getBulkRequest&format=json&urls[0]=method%3DVisitsSummary.getUniqueVisitors%26idSite%3Dn%2Fa%26period%3Dday%26date%3Dlast30&urls[1]=method%3DAPI.getPiwikVersion%26idSite%3Dn%2Fa&token_auth=..."
    }
    
    Test 2/3: SitesManager.getSitesWithAtLeastViewAccess
    
    bool(false)
    
    array(2) {
      [0]=>
      string(602) "HTTP/1.1 301 Moved Permanently
    Set-Cookie: startBAK=R3415744843; path=/; expires=Wed, 06-Sep-2017 15:55:22 GMT
    Date: Wed, 06 Sep 2017 14:50:14 GMT
    Content-Type: text/html; charset=iso-8859-1
    Content-Length: 250
    Set-Cookie: start=R1548370258; path=/; expires=Wed, 06-Sep-2017 15:57:29 GMT
    Server: Apache
    X-FRAME-OPTIONS: DENY
    X-Content-Type-Options: nosniff
    Strict-Transport-Security: max-age=63072000; includeSubDomains
    Location: https://www.digitemis.com/analytics/piwik/
    Cache-Control: max-age=172800
    Expires: Fri, 08 Sep 2017 14:50:14 GMT
    Vary: Accept-Encoding
    X-IPLB-Instance: 456
    
    "
      [1]=>
      string(333) "http://www.digitemis.com/analytics/piwik/?module=API&method=API.getBulkRequest&format=json&urls[0]=method%3DVisitsSummary.getUniqueVisitors%26idSite%3Dn%2Fa%26period%3Dday%26date%3Dlast30&urls[1]=method%3DAPI.getPiwikVersion%26idSite%3Dn%2Fa&urls[2]=method%3DSitesManager.getSitesWithAtLeastViewAccess%26idSite%3Dn%2Fa&token_auth=..."
    }
    
    Test 3/3: SitesManager.getSitesIdFromSiteUrl
    
    bool(false)
    
    array(2) {
      [0]=>
      string(602) "HTTP/1.1 301 Moved Permanently
    Set-Cookie: startBAK=R3415742665; path=/; expires=Wed, 06-Sep-2017 16:03:42 GMT
    Date: Wed, 06 Sep 2017 14:50:14 GMT
    Content-Type: text/html; charset=iso-8859-1
    Content-Length: 250
    Set-Cookie: start=R1548370258; path=/; expires=Wed, 06-Sep-2017 15:54:30 GMT
    Server: Apache
    X-FRAME-OPTIONS: DENY
    X-Content-Type-Options: nosniff
    Strict-Transport-Security: max-age=63072000; includeSubDomains
    Location: https://www.digitemis.com/analytics/piwik/
    Cache-Control: max-age=172800
    Expires: Fri, 08 Sep 2017 14:50:14 GMT
    Vary: Accept-Encoding
    X-IPLB-Instance: 392
    
    "
      [1]=>
      string(442) "http://www.digitemis.com/analytics/piwik/?module=API&method=API.getBulkRequest&format=json&urls[0]=method%3DVisitsSummary.getUniqueVisitors%26idSite%3Dn%2Fa%26period%3Dday%26date%3Dlast30&urls[1]=method%3DAPI.getPiwikVersion%26idSite%3Dn%2Fa&urls[2]=method%3DSitesManager.getSitesWithAtLeastViewAccess%26idSite%3Dn%2Fa&urls[3]=method%3DSitesManager.getSitesIdFromSiteUrl%26idSite%3Dn%2Fa%26url%3Dhttps%3A%2F%2Fwww.digitemis.com&token_auth=..."
    }
    
    array(2) {
      ["global_settings"]=>
      array(63) {
        ["revision"]=>
        string(10) "2017080901"
        ["last_settings_update"]=>
        string(10) "1504709181"
        ["piwik_mode"]=>
        string(4) "http"
        ["piwik_url"]=>
        string(41) "http://www.digitemis.com/analytics/piwik/"
        ["piwik_path"]=>
        string(20) "/www/analytics/piwik"
        ["piwik_user"]=>
        string(0) ""
        ["piwik_token"]=>
        string(3) "set"
        ["auto_site_config"]=>
        string(1) "1"
        ["default_date"]=>
        string(5) "today"
        ["stats_seo"]=>
        string(1) "1"
        ["dashboard_widget"]=>
        string(6) "last30"
        ["dashboard_chart"]=>
        string(1) "1"
        ["dashboard_seo"]=>
        string(1) "1"
        ["toolbar"]=>
        string(1) "1"
        ["capability_read_stats"]=>
        array(5) {
          ["administrator"]=>
          string(1) "1"
          ["editor"]=>
          string(1) "0"
          ["author"]=>
          string(1) "0"
          ["contributor"]=>
          string(1) "0"
          ["subscriber"]=>
          string(1) "0"
        }
        ["perpost_stats"]=>
        string(1) "1"
        ["plugin_display_name"]=>
        string(8) "WP-Piwik"
        ["piwik_shortcut"]=>
        string(1) "0"
        ["shortcodes"]=>
        string(1) "0"
        ["track_mode"]=>
        string(7) "default"
        ["track_codeposition"]=>
        string(6) "footer"
        ["track_noscript"]=>
        string(1) "0"
        ["track_nojavascript"]=>
        string(1) "0"
        ["proxy_url"]=>
        string(0) ""
        ["track_content"]=>
        string(8) "disabled"
        ["track_search"]=>
        string(1) "1"
        ["track_404"]=>
        string(1) "1"
        ["add_post_annotations"]=>
        array(0) {
        }
        ["add_customvars_box"]=>
        string(1) "0"
        ["add_download_extensions"]=>
        string(0) ""
        ["set_download_extensions"]=>
        string(0) ""
        ["set_link_classes"]=>
        string(0) ""
        ["set_download_classes"]=>
        string(0) ""
        ["disable_cookies"]=>
        string(1) "0"
        ["limit_cookies"]=>
        string(1) "0"
        ["limit_cookies_visitor"]=>
        string(8) "34186669"
        ["limit_cookies_session"]=>
        string(4) "1800"
        ["limit_cookies_referral"]=>
        string(8) "15778463"
        ["track_admin"]=>
        string(1) "0"
        ["capability_stealth"]=>
        array(0) {
        }
        ["track_across"]=>
        string(1) "0"
        ["track_across_alias"]=>
        string(1) "0"
        ["track_crossdomain_linking"]=>
        string(1) "0"
        ["track_feed"]=>
        string(1) "0"
        ["track_feed_addcampaign"]=>
        string(1) "0"
        ["track_feed_campaign"]=>
        string(4) "feed"
        ["track_heartbeat"]=>
        string(1) "0"
        ["track_user_id"]=>
        string(8) "disabled"
        ["cache"]=>
        string(1) "1"
        ["http_connection"]=>
        string(4) "curl"
        ["http_method"]=>
        string(4) "post"
        ["disable_timelimit"]=>
        string(1) "0"
        ["connection_timeout"]=>
        string(1) "5"
        ["disable_ssl_verify"]=>
        string(1) "0"
        ["disable_ssl_verify_host"]=>
        string(1) "0"
        ["piwik_useragent"]=>
        string(3) "php"
        ["piwik_useragent_string"]=>
        string(8) "WP-Piwik"
        ["dnsprefetch"]=>
        string(1) "0"
        ["track_datacfasync"]=>
        string(1) "0"
        ["track_cdnurl"]=>
        string(0) ""
        ["track_cdnurlssl"]=>
        string(0) ""
        ["force_protocol"]=>
        string(8) "disabled"
        ["update_notice"]=>
        string(7) "enabled"
      }
      ["settings"]=>
      array(6) {
        ["name"]=>
        string(0) ""
        ["site_id"]=>
        string(3) "n/a"
        ["noscript_code"]=>
        string(0) ""
        ["tracking_code"]=>
        string(0) ""
        ["last_tracking_code_update"]=>
        string(10) "1504709181"
        ["dashboard_revision"]=>
        string(1) "0"
      }
    }

    Any suggestion to debug ?

    none

    (@fanchyfanch)

    Hi Jeroen,

    Glad to hear to you’re working on user management; this was only what I needed!

    Can you tell more about the release of that part please?

    none

    (@fanchyfanch)

    Up?

    😀

    none

    (@fanchyfanch)

    OK, it goes like this for those who search for a solution :


    // in case of using the WPML plugin
    if(function_exists('icl_object_id')){
    // adjust field 'element_type' in table 'wp_icl_translations'
    // from 'post_OLDNAME' to 'post_NEWNAME'
    // the post_id you look for is in column: 'element_id'

    if($post->post_type == 'revision'){
    if(is_array($post->ancestors)){
    $ID = $post->ancestors[0];
    }
    }else{
    $ID = $post->ID;
    }

    $wpdb->update("{$wpdb->prefix}icl_translations", array('element_type' => 'post_' . $new_post_type_object->name), array('element_id' => $ID));
    }

    none

    (@fanchyfanch)

    Hi,

    Thanks for the tip but don’t you have the complete correct code to put exactly so the WPML plugin works properly ?

Viewing 6 replies - 1 through 6 (of 6 total)