Thanks! It would be great to get this fixed once and for all. At the moment I can’t regularly rely and trust that new versions will work. When is next update planned for? Until next update is released I will continue running version 4.7.2 in my production environment.
PHP Version 7.0.22-0ubuntu0.16.04.1
The error reported by Apache is:
[Mon Feb 19 15:21:22.506436 2018] [:error] [pid 5115] [client 83.219.211.214:60364] PHP Fatal error: Uncaught Error: Cannot access property started with ‘\\0’ in /var/www/dev.domain/wp-content/plugins/download-manager/libs/class.Package.php:267\nStack trace:\n#0 /var/www/dev.domain/wp-content/plugins/download-manager/libs/class.Package.php(1174): WPDM\\Package->Prepare(1450, ‘<!– WPDM Templ…’, ‘page’)\n#1 /var/www/dev.domain/wp-content/plugins/download-manager/wpdm-functions.php(1289): WPDM\\Package::fetchTemplate(‘<!– WPDM Templ…’, Array, ‘page’)\n#2 /var/www/dev.domain/wp-content/plugins/download-manager/wpdm-functions.php(572): wpdm_fetch_template(‘page-template-m…’, 1450, ‘page’)\n#3 /var/www/dev.domain/wp-includes/class-wp-hook.php(286): wpdm_downloadable(‘<div class=”pag…’)\n#4 /var/www/dev.domain/wp-includes/plugin.php(203): WP_Hook->apply_filters(‘<div class=”pag…’, Array)\n#5 /var/www/dev.domain/wp-content/plugins/timber-library/lib/Post.php(1015): apply_filters(‘the_content’, ‘<div class=”pag…’)\n#6 /var/www/dev.domain/wp-content/plugins/timber-library/lib/Post.php(1027): Timber\\Post->co in /var/www/dev.domain/wp-content/plugins/download-manager/libs/class.Package.php on line 267, referer: https://dev.domain.tld/dokument/
Hi!
Today I updated to Download Manager 4.7.3. The original problem is STILL not fully solved. The end result has though changed. I ma no longer doing this in production environment, but instead in a development environment.
I did:
* Inactivate the old plugin version 4.7.1 and removed it
* Installed the latest downloadable version (4.7.3)
* Activated
* Went to the front-end page with all docs -> Looked alright
* Clicked the link/package name of one of the available items in front-end page to get to more details and descriptions -> Blank white page without any details on what went wrong
Everything seems to work perfectly at the first glance. Thanks!
Sorry, forgot to activate Bangladesh as an allowed country to access the site. It is done now.
Now the problems has started to show in another way. The admin and frontend interface is really “corrupted” and can’t find it’s icons and the styling in the admin interface really is out of wack. This happened after updating to 4.7.1 I believe. Se screenshots.
With 4.7.2 the problem still exist. Same lines in class.Package.php is still braking everything. An additional problem introduced in 4.7.2 is that the presentation of icon for the type of document for a download package seems to be broken. See attached picture.
I solved the problem yet again by commenting out line 261 and 262 in class.Package.php.
Isn’t it time to solve this finally?
Regards
Michael
Hi!
With the latest version 4.7.1 this problem is still existing. To get it to work I go in and comment line 258 and 259 in
wp-content/plugins/download-manager/class.Package.php
I can give you WP admin access but not FTP access to servers.
The code that creates the problem is (with my commentation):
foreach($post_vars as $key ► $val){
try {
// if(preg_match(‘/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/’,$key))
// $this->$key = $val;
}catch (\Exception $e){}
}
Screen shots on the list of plugins is attached to this post.
If I comment out line 258 and 259 in class.Package.php it solves the issue, but I guess that you should try to find a permanent solution instead.
Nope, it doesn’t. Installing version 4.7.1 together with latest Gantry version and a Rockettheme theme give me this error:
Fatal error: Cannot access property started with ‘\0’ in /var/www/my-catalogue-name/wp-content/plugins/download-manager/libs/class.Package.php on line 259
Kind regards
Michael
Hi!
I saw that 4.6.9 is released for updating previous versions. Is it safe to upgrade with regards to this topic? Or do I need to remove the line 258 according to above to get it to work again?
Kind regards
Michael
Thanks for the info. The download button now shows, but the descriptive text does not. I would like the Metro style page template to be used, or as a minimum that the descriptive text on the downloadable item to be shown. Can you please solve this?
I will send the Apache error log.
Kind regards
Michael
When you do your thing at our site, please edit Page Template to use the Meta Style page template, thanks.
Same problem AGAIN after update to version 4.6.8 of WPDM Download Manager and Short Codes 2.8.1. Please help out. Can you please add a description of what you are doing, so that we may do it ourselves next time?
Hi!
It shows that an update from version 4.6.5 to 4.6.7 break the site login. It is added a ?redirect=/ after the site URL after having put in the login credentials and pressed the button to log in. I have had to inactivate WPDM to make it work again. I will look for the old install file for 4.6.5 to make it work again.
You may try to log in now. You can find the credentials as a private message above.
Kind regards
Michael
Hi!
This problem occurred yet again now when I upgraded from 4.6.5 to 4.6.7. I do not know what you did the last time, so I can’t do it myself. Can’t you solve the problem in an upgrade? Can you help me yet again? I have opened the former account for you and country access as well.
Maybe you can send me a recipe for how to solve it myself when I do an upgrade so I don’t have to bother you overtime you make an upgrade, before you solve it definitely in your plugin?
Kind regards
Michael
Wow! Great! Thanks! What was the actual problem here?
What is so bad with the current theme? I really appreciate the flexibility that Gantry gives me, so I am reluctant to change, since most of the themes out there doesn’t give me this flexibility of changing almost any aspect of the theme.
Kind regards
Michael