That didn’t work either. Please just visit the screenshot here.
Looks like Google Photos images don’t show up. Here’s what I tried to attach:
There’s no “Update Card” button on the order details page.
Also, I don’t see any way to click on the order before hitting the missing “Update Card” button.
The logging issue has been resolved. I found a section on the root download page that contained a incorrectly formatted shortcut query parameter. The correct parameter name is “items_per_page”, this error was entered as “items-per-page”. It apparently causes bad things to happen if it is incorrect.
I have been tracking the continued divide by zero warnings. There is a repeatable pattern using the URL below that triggers the PHP warnings. These appear to be coming from search engines. This one is a URL that Bing submitted. When I load this up in a browser, it takes me to our root downloads page but still logs two divide by zero warnings.
I should also note that we are still seeing the divide by zero errors noted in the original report on this issue.
More background on this issue. We are using shortcodes in Elementor to render lists of downloads based upon category. The pagination setting “items_per_page” used to be “item_per_page”. I don’t know if this is a recent change or if our developer fat-fingered the setting and it has always just worked.
The second thing we found was that the template setting seems to work with link templates, but not page templates. This appears to be a change from previous versions.
This is eventually what we were able to get working. The template is a very slightly modified version of the “link-template-default-icon” link template.
[wpdm_category id="bss-primary-downloads" operator="IN" toolbar="1" order_by="field name" order="asc or desc" items_per_page="10" template="link_default_icon_custom" cols=1 colspad=2 colsphone=1]
Hi,
When you say to update the page templates again, are you saying that we need to update the pages that contain references to the Download Manage templates? Or, are we supposed to update something within the Download Manager settings?
There are problems. The Apache error log is filling with PHP Warning: Divide by zero… errors. The download pages are also complaining about
page-template-default.php
page-template-default.php
page-template-default.php
so it looks like the default page template is no longer working as expected.
Hello Tanvir,
The error is not getting logged because of the patch I applied to the download-manager/src/Package/Shortcodes.php at about line 239 that checks $items_per_page for zero. I noted this in my original submission.
Remove the patch and the site will start logging the divide by zero events again. Or, if you like, I can remove the patch.
Thank you for that detail. When I tried this, I received a response that said “Auto-Sync is not active!”. Enabling the Auto-Sync feature corrected the error.
For anyone with the same issue, please note that this appears to work only if the Auto-Sync Local Files Attached With Packages setting in the Cloud Storage -> Amazon S3 Direct Upload is checked and the target S3 bucket and first-level folder are selected.
The cron job appears to locate a single package that has not been uploaded to S3 and uploads it. This continues for each invocation of the cron job until there are no more local packages to upload into S3.
Please explain how providing admin access to our website answers this question? I just want to know what the procedure is to sync existing packages. What steps are necessary to accomplish the goal?
Can you please add an option in the Bucket drop-down list for ‘None’. The use case is that some roles should not have any access to our S3 buckets.
Thanks for confirming the observations. May I request that the drop-down bucket selector include an option for “None”?
There are use cases where we want to exclude specific roles from having access to any S3 bucket. Until we have this capability, we have to create IAM policies that specifically allow access to a specific bucket and apply them to the user account.
The user interface for the Amazon S3 Bucket Access Control lists each role. Next to each role is a drop-down that lists the S3 buckets that are accessible from the defined AWS access key(s). The dropdown also has an option for All Buckets. I am looking for an option that allows no access to any available S3 bucket.
For example, I do not want the Editor or Author roles to be able to access any S3 folder. How do I accomplish that?