Rudolf Ebertshäuser

Forum Replies Created

Viewing 14 posts - 1 through 14 (of 14 total)
Aug 8, 2024 at 6:45 am
#197764
Participant
Rudolf Ebertshäuser
OP

I’ve found the bug in the code and proposed a fix for it. See this thread:

All Downloads JS Table not working since last friday update

Aug 8, 2024 at 6:43 am
#197763
Participant
Rudolf Ebertshäuser
OP

I think I found that bug as well. In all-packages-shortcode.php line 9 there are the default columns defined: page_link,file_count,download_count|categories|update_date|download_link. Calling __::valueof() on them with ‘safetxt’ sanitazation removed the commas, which are needed in line 14 for exploding the column values.

To fix this you’ll need to change the file:
src/__/__.php

There is says:

337 case "safetxt":
338    $value = preg_replace("/([^a-zA-Z0-9_|\-\s])/", "", $value);
339    break;

To fix it change line 338 to:
338 $value = preg_replace("/([^a-zA-Z0-9,_|\-\s])/", "", $value);

Basically you’ll need to insert a comma into the regex.

PLEASE again forward this to you developers – thank you!

Aug 8, 2024 at 6:21 am
#197762
Participant
Rudolf Ebertshäuser
OP

Glad to here that, thank you!

Now we’re still facing the issue with the missing title as written here:

Title is missing after last Friday update

I believe that this is due to the same update. Can you share the details of how to fix that?

Aug 7, 2024 at 4:21 pm
#197750
Participant
Rudolf Ebertshäuser
OP

The forum breaks the quotes for line 43. What I mean is: please simply change the ‘alpha’ to ‘int’ in the first sanitazation in line 43.

Aug 7, 2024 at 4:19 pm
#197749
Participant
Rudolf Ebertshäuser
OP

I debugged this and found out, that you have a bug in the file
src/Package/views/all-packages-shortcode.php

Line 43 of version 6.5.6 is:

"order":

 <?php echo __::sanitize_var($datatable_col, 'alpha'); ?>, "<?php echo __::sanitize_var($datatable_order, 'alpha'); ?>"

,

Problem is here the first sanitazation. Using ‘alpha’ it yields an empty string (without quotes), which leads to this JavaScript code:

"order":

 , "desc"

This is illegal JavaScript syntax (there must be a value before the comma).

Fixed version of line 43:

"order":

 <?php echo __::sanitize_var($datatable_col, 'int'); ?>, "<?php echo __::sanitize_var($datatable_order, 'alpha'); ?>"

,

Explanation: the ‘int’ sanization always returns a number, in fact it converts the value to integer. Now the JavaScript is working fine again.

PLEASE forward this to your developer and include this fix in the next version. Thank you!

Aug 7, 2024 at 1:48 pm
#197740
Participant
Rudolf Ebertshäuser
OP
This reply has been marked as private.
Aug 7, 2024 at 1:08 pm
#197737
Participant
Rudolf Ebertshäuser
OP

We’re expieriencing the same problem. Can you share the necessary fixes here, so that we can apply them ourselves?

Jun 1, 2021 at 11:30 am
#154644
Participant
Rudolf Ebertshäuser
OP

Yes, we’re running it on a german website. Please take a look at my first post in this topic where I explained the bugfix.

May 6, 2021 at 9:26 am
#152003
Participant
Rudolf Ebertshäuser
OP

In your download-manager.php at line 266 you have:

if(!$wpdm_tags)
     $args['supports'][] = 'post_tag';

When you change this to the following it will work again:

if(!$wpdm_tags) $args['taxonomies'] = array('post_tag');

Our experience with the updates of the Download Manager in the lasts months has been quiet frustrating as suddenly things stop working. This is especially annoying when automatic updates are enabled. Please keep this in mind with future updates that you provide a better communication of breaking changes.

EDIT: Please notice that this change will be overridden again by the next update.

May 4, 2021 at 8:17 am
#151759
Participant
Rudolf Ebertshäuser
OP

This issue is still unresolved. After every update I have to fix your plugin in order to work properly.

May 4, 2021 at 7:45 am
#151755
Participant
Rudolf Ebertshäuser
OP

I use this setting in wp-config.php

define('WPDM_USE_POST_TAGS', true);

But now I cannot see or assign any tags at all to the download packages. How can I fix this?

PS: I use tags in my regular posts as well so I don’t want to have to different tags lists.

Sep 1, 2020 at 10:18 am
#135467
Participant
Rudolf Ebertshäuser
OP

Hello support, do I need to create a new post or can you please respond to this issue?

Aug 10, 2020 at 12:25 pm
#134113
Participant
Rudolf Ebertshäuser
OP

Any updates on this?

Aug 4, 2020 at 9:07 am
#133840
Participant
Rudolf Ebertshäuser
OP

Please switch your site to a non-english language. Then you should see this error. The reason is that the php function strtotime() parses only english dates. In our case we’re running a german website and therefore strtotime() returns invalid values.

Please check the php docs, where it’s clearly stated that only english dates are parsed:
https://www.php.net/strtotime

Also see this QA on StackOverflow:
https://stackoverflow.com/questions/6988536/strtotime-with-different-languages

Passing the explicit date Y-m-d format to get_the_date() is the simplest solution for this bug.

Viewing 14 posts - 1 through 14 (of 14 total)