Forum Replies Created
I’m aware about that package base URL settings.
How can I declare something like this in package URL base settings.
download/%wpdmcategory%
How can I use permalink structure tags.
So, the package url for the packages in category apps will be – https://example/download/apps/app-name/
Instead of – https://example.com/download/app-name/
I hope you got my point now.
The updated version of WPDM Lazy Load is not working. After the timer ends it doesn’t download anything. The page doesn’t request any URL.
I have found the fix and it was caused because of the templates. The problem lies in the below code:
jQuery.post("'.site_url('/').'",{wpdm_lazy_download_timer:"clear",pid:'<?php echo $lazy_download_id; ?>'}, function(){
location.href = "<?php echo $lazy_download_url; ?>";
I have modified it to below code and it works:
jQuery.post("<?php echo site_url('/'); ?>",{wpdm_lazy_download_timer:"clear",pid:'<?php echo $lazy_download_id; ?>'}, function(){
location.href = "<?php echo $lazy_download_url; ?>";
The issue was because site_url('/') was not able to get the site URL. Please fix this issue and release the update.
EDIT:
Also, This code needs to be fixed as well in the files on the templates folder.
From:
<div id="wpdm_lazy_download_<?php echo $lazy_download_id; ?>" class="circle '.$class.'" >
To:
<div id="wpdm_lazy_download_<?php echo $lazy_download_id; ?>" class="circle <?php echo $class; ?>" >
Thank you for the fix.
I have purchased WPDM Lazy Load Addon and I see this warning in debug.log
[16-Apr-2019 21:30:01 UTC] PHP Warning: session_start(): Cannot start session when headers already sent in /home/user/public_html/wp-content/plugins/wpdm-lazy-download/wpdm-lazy-download.php on line 13
I’m also looking for a way to use default image or icon if Thumbnail is not available for a package. Have you solved your query? If so, how you did that. Please provide the code if possible.