-
Search Results
-
Topic: WPDM disables caching
We are using the latest WPDM Pro after just upgrading from free edition. Both free and pro seem to somehow send a pragma: no-cache attribute even for pages that have no downloads.
Here’s what our hosting provider found:
—
However after doing some addtional digging on the site, the cause of the
server not caching pages is being caused by a PHP session being served to
anonymous site visitors.curl -I https://revocent.com
HTTP/2 200
date: Wed, 13 Mar 2019 18:21:06 GMT
content-type: text/html; charset=UTF-8
content-length: 78345
server: Apache
expires: Thu, 19 Nov 1981 08:52:00 GMT
cache-control: no-store, no-cache, must-revalidate
pragma: no-cache
x-pingback: https://revocent.com/xmlrpc.php
link: <https://revocent.com/wp-json/>; rel=”https://api.w.org/”,
<https://wp.me/P7uo5D-7Z>; rel=shortlink
set-cookie: PHPSESSID=QmdpyWry%2CMmnIL%2CQGpRsN1; path=/The PHP session cookie above is making it so that varnish is unable to
serve cached pages. This cookie is being generated by the download
manager plugin. You may want to check the plugin settings to see if it is
possible to disable this PHP session cookie and only use it on pages
where it is needed by the plugin.
—We have WPDM configured under https://revocent.com/downloads only.
How do we fix this?
Topic: Download link url
Hello guys,
Right now, I’m using this code to generate my download button:
$data['download_link'] = \WPDM\Package::downloadLink($data['ID'], 0, array( 'template_type' ► 'link' ));It generates this kind of HTML:
<a class="wpdm-download-link btn btn-primary " rel="nofollow" href="#" onclick="location.href='https://mysite.com/?wpdmdl=5286&refresh=5c6d13a29aef41550652322';return false;"><span>Download</span></a>In the
<a>tag, I would like to add a data-url attribute that will contain the href to the file. How can I do that? How can I get only the url, not the full<a>tag ?In fact, I need that because I want to create a “Download selected files” button, that will launch multiple downloads at once, depending on selected packages. (not all-in-one ZIP, but trigger each download separately). How would you do that?
Thank you in advance,
CedricWe have just migrated multiple WordPress sites which use the Download Manager plugin to a new server with php 7.1.26 installed (the old server used 5.3). Ever since, the download buttons on WPDM package pages do not work – they do change the url of the window, but nothing downloads. However, if you remove the “WPDM Package URL Base” and the package name from the URL in the address bar, you not only get the download, but also the BEHAVIOUR configured in Download Manager settings (eg. if it is configured to try and open the file in browser, it does so, otherwise it simply downloads).
Can you please advise why this has happened, and is there a simple config change we can make to correct it?
Thanks in advance
Topic: OneDrive API Credentials
I followed your steps created everything as you show, but now I cannot find where to get the ‘Client ID” , the “Client Secret” or the Redirect URL. I can see other types of numbers but i search hours and hours trying to find the “Client” and there is no such titles anywhere. There are all kinds of other numbers and a Private Key and Password but absolutely nothing with the Word “Client”. I brought up this “Application Manifest” and searched the code, I even went and got my neighbor to come look because i thought i must be blind but he didn’t see anything with the word “Client” and no redirect URL. The only place it shows the word “Client” is in this “allowPublicClient”: null, but definitely no ‘Client ID” , noe “Client Secret” or the Redirect URL.
Neither of these have the word “Client”
Password xXD****************************
Private Key DB845AB67D5E2D34FB85D38BA7ECAB7BE0402B8EI looked at the following script and didn’t find the information either:
“id”: “a15fc0bf-d507-49e4-9e81-ec2054293dbf”,
“acceptMappedClaims”: null,
“addIns”: [],
“allowPublicClient”: null,
“appId”: “d5549f6a-eb38-4cc5-9d7e-1c8a0cc49bf6”,
“oauth2AllowUrlPathMatching”: false,
“createdDateTime”: “2019-01-31T22:33:01Z”,
“identifierUris”: [],
“informationalUrls”: {
“termsOfService”: null,
“privacy”: null
},
“isDeviceOnlyAuthSupported”: null,
“keyCredentials”: [
{
“customKeyIdentifier”: “DB845AB67D5E2D34FB85D38BA7ECAB7BE0402B8E”,
“endDate”: “2099-12-31T12:00:00Z”,
“keyId”: “84e1d7ab-c107-4d71-a684-b9aab95de410”,
“startDate”: “2019-01-31T22:55:22.3021629Z”,
“type”: “AsymmetricX509Cert”,
“usage”: “Verify”,
“value”: “MIIDZDCCAkygAwIBAgIIOpuF44blS8kwDQYJKoZIhvcNAQELBQAwLzEtMCsGA1UEAwwkZDU1NDlmNmEtZWIzOC00Y2M1LTlkN2UtMWM4YTBjYzQ5YmY2MCAXDTE5MDEyNDIyNTUyM1oYDzIwOTkxMjMxMTIwMDAwWjAvMS0wKwYDVQQDDCRkNTU0OWY2YS1lYjM4LTRjYzUtOWQ3ZS0xYzhhMGNjNDliZjYwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCU9T88akv6h8ylj8kpejgJdtHZu2LFj+/J/L2xqIhg3hqN1t9hqMxIGt1+JiiOWsq0uycyJb7FXZXz7pidXyHDYKWfTlKILNLsN8D4MuQN6KihMNT+NtnvHosT4TDvfGpN9D1NYXyxRm7XJ3ieAXxJgSkvCT4SrhatSos+hEJCnq3iW+DNngzhSJCEyJQrGrY18mniGHprrABy3eMNSmXzqaOv0vafNiZ5Tzk+82gH1NuTB+QIBfShaulbCBK46sTe5E7S0vmig+4A3jyXbFE6IS/Lm4gvvt7i2Dw9M6eC1JrDjmOF/yXrlIPUkF+UI9nva3D7yXRztBqiPHpowqPlAgMBAAGjgYEwfzBeBgNVHSMEVzBVgBRKZn78Ep98CQvJKqKujLosSFzku6EzpDEwLzEtMCsGA1UEAwwkZDU1NDlmNmEtZWIzOC00Y2M1LTlkN2UtMWM4YTBjYzQ5YmY2ggg6m4XjhuVLyTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAAV/02goDzK+FHXu4dIGLJWYXNbVb+iBlt+TdMH6gnrrf2s1eJOY1Ynnomd3vOtpY554H+iZJtnYCt6pDTNC5sm6JAp3VQoUXdddoGdY7mJMYESwSmj/TVszqtNNvgrXirD3L8WHYt1P+McFogMUlMO/kfxp1Pz/zA76EWtpqAbbls5aRNlgWRZ1gvjy2xBbs+vjAII24i6jINjcbGkIDCR63QwSJAJmPyXSS8VhoKjtxRVsZmWtnPaucrP1UfkE7d17sPG+5fibqCPdt//B9PwytTWaFFoToDExrS7Z52L2NBcQcAig6zGtoaiNCGXld4X0X2Z7LL71xH1efQ3saYI=”,
“displayName”: “CN=d5549f6a-eb38-4cc5-9d7e-1c8a0cc49bf6”
}
],
“knownClientApplications”: [],
“logoUrl”: null,
“logoutUrl”: null,
“name”: “DM”,
“oauth2AllowIdTokenImplicitFlow”: true,
“oauth2AllowImplicitFlow”: true,
“oauth2Permissions”: [],
“oauth2RequirePostResponse”: false,
“optionalClaims”: null,
“orgRestrictions”: [],
“parentalControlSettings”: {
“countriesBlockedForMinors”: [],
“legalAgeGroupRule”: “Allow”
},
“passwordCredentials”: [
{
“customKeyIdentifier”: null,
“endDate”: “2099-12-31T12:00:00Z”,
“keyId”: “b4f71d85-c821-42fc-8388-1f75b63e6dc1”,
“startDate”: “2019-01-31T22:54:27.5556068Z”,
“value”: null,
“createdOn”: “2019-01-31T22:54:29.0073819Z”,
“hint”: “xXD”,
“displayName”: null
}
],
“preAuthorizedApplications”: [],
“publisherDomain”: null,
“replyUrls”: [
“https://3plagent.fbatrain.com/wp-admin/post-new.php”,
“https://3plagent.fbatrain.com/wp-admin/post.php”
],
“replyUrlsWithType”: [
{
“url”: “https://3plagent.fbatrain.com/wp-admin/post-new.php”,
“type”: “Web”
},
{
“url”: “https://3plagent.fbatrain.com/wp-admin/post.php”,
“type”: “Web”
}
],
“requiredResourceAccess”: [
{
“resourceAppId”: “00000003-0000-0000-c000-000000000000”,
“resourceAccess”: [
{
“id”: “06da0dbc-49e2-44d2-8312-53f166ab848a”,
“type”: “Scope”
},
{
“id”: “10465720-29dd-4523-a11a-6a75c743c9d9”,
“type”: “Scope”
},
{
“id”: “df85f4d6-205c-4ac5-a5ea-6bf408dba283”,
“type”: “Scope”
},
{
“id”: “5447fe39-cb82-4c1a-b977-520e67e724eb”,
“type”: “Scope”
},
{
“id”: “5c28f0bf-8a70-41f1-8ab2-9032436ddb65”,
“type”: “Scope”
},
{
“id”: “863451e7-0667-486c-a5d6-d135439485f0”,
“type”: “Scope”
},
{
“id”: “8019c312-3263-48e6-825e-2b833497195b”,
“type”: “Scope”
},
{
“id”: “17dde5bd-8c17-420f-a486-969730c1b827”,
“type”: “Scope”
},
{
“id”: “7ab1d382-f21e-4acd-a863-ba3e13f7da61”,
“type”: “Role”
},
{
“id”: “19dbc75e-c2e2-444c-a770-ec69d8559fc7”,
“type”: “Role”
},
{
“id”: “01d4889c-1287-42c6-ac1f-5d1e02578ef6”,
“type”: “Role”
},
{
“id”: “75359482-378d-4052-8f01-80520e7db3cd”,
“type”: “Role”
}
]
}
],
“samlMetadataUrl”: null,
“signInUrl”: “https://3plagent.fbatrain.com”,
“signInAudience”: “AzureADandPersonalMicrosoftAccount”,
“tags”: [
“guidedSetupCreatedOrUpdated”,
“appModelVersion:2”,
“accessTokenVersion:1”,
“availableToOtherTenants:true”,
“supportsConvergence:true”
],
“tokenEncryptionKeyId”: null
}Please Help I am desperate to get this completed.
Hello,
Our setup is using the FTP add-on to link files in packages.
After updating both WPDM (4.7.7 to 4.9.0) and WordPress (4.9.9 to 5.0.3) we are experiencing some download problems.Since doing those updated when clicking any file’s download button we get a txt file “download error” that specifies a URL that was not retrievable. It seems like the file ID get’s inserted into the URL? Something like this: http://ftp.example/5b28a0e884de9-filename-example.pdf
I believe that before this ID was not inserted into the URL.I have reverted to a backup for now, any idea what might be causing this?
Hi,
How to remove the download button ( I have attached reference screenshot ). I don’t want download instant I want to redirect to page URL,
None of shortcode is working`<!– WPDM Link Template: Panel –>
<div class=”panel panel-default”>
<div class=”panel-body”>
<div class=”media”>
[thumb_48x48]
<div class=”media-body”>
<h4 class=”media-heading” style=”padding-top: 0px;border:0px;margin: 0px;height: 25px;overflow: hidden;line-height: 25px”>[page_link]</h4>
<i class=”fas fa-hdd color-green”>1570MB | 700MB | 320MB</i> [file_size] <i class=”far fa-arrow-alt-circle-down color-purple”></i> [view_count] Total downloaded</div>
</div>
</div></div>