• Resolved silverstar23

    (@silverstar23)


    Hello,

    we used the plugin “Optimize Database after Deleting Revisions” from CAGE Web Design to cleanup the revisions and transients. After that almost in all Downloads in single view the reference to the file did not show up and the download was also not working. To fix that problem we had to publish the download (by hand) and then everything was there again and worked. So, we have a lot of downloads and we tried to automate the publish procedure e.g. with wp cli / php script / bulk edit but none of that worked. Do you know a way to automate it?

    Thanks & Cheers.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support beatrice12

    (@beatrice12)

    Hello @silverstar23,

    Thanks for reaching out to us!

    Please go to your WP dashboard > Downloads > Settings > Advanced > Miscellaneous > Clear transients. Also go to your WP dashboard > Settings > Permalinks > save without changing anything.
    Please let us know if this fixes it!

    Warm regards,
    Beatrice.

    Thread Starter silverstar23

    (@silverstar23)

    Hello Beatrice,
    I tried it and it doesn’t work unfortunately.
    Cheers.

    Thread Starter silverstar23

    (@silverstar23)

    It seems like *some* got fixed by this procedure some are not…

    Thread Starter silverstar23

    (@silverstar23)

    we use wpml btw.

    Thread Starter silverstar23

    (@silverstar23)

    So we ended up publish all downloads by hand. You might check if you delete transients that it might remove the file reference, but maybe it’s just our WordPress setup that we use (with a lot of custom code)…

    Plugin Author Razvan Aldea

    (@raldea89)

    Hey @silverstar23 ,

    Trying to replicate your issue. Did you delete all transients or just the expired ones? Also, did you select anything else than revisions/transients in the optimization process?

    Warmly,
    Razvan

    Thread Starter silverstar23

    (@silverstar23)

    Hi Razvan,

    we deleted all transients. As far I can tell we just deleted revisions and transients with that optimization plugin. So when we deleted the transients as told with downnload monitor plugin the downloads we had fixed were unuseable again with no file path.

    Cheers.

    Hello @beatrice12

    I had the same problem with your latest update, all my pdf downloads ending in a ??File not found?? page.

    This is the third times it happens, at each new minor update, and at each time I have users complaining about downloads not working.

    For the third time I used your magic but meaningless trick ??save your permalink structure without changing anything?? and for the third time it worked.

    But I’m tired with this error you make again and again. At last give some kind of warning before your customers update your plug-in.

    I answer to myself, having no feedback from the plugin team.
    I updated DM to 4.5.98 and was prepared for the recurring bug (downloads not working)
    So I used (for the fourth time at this day) the comic_and_absurd trick : ? save your permalink structure without changing anything ?

    Plugin Support beatrice12

    (@beatrice12)

    Hi @jean-michel-ferrard,

    I’m sorry for the late reply!
    Can you please let us know if you make any other changes? There are a lot of users which update the plugin and they did not report any issues.

    Warmly,
    Beatrice.

    Hi Beatrice12

    The only thing which is “non-standard” is I use php files to modify your “content-download-filename.php”.
    For example my “content-download-pdf.php”

    <?php
    /**
     * Shows title only.
     */
    
    if ( ! defined( 'ABSPATH' ) ) {
    	exit;
    } // Exit if accessed directly
    
    /** @var DLM_Download $dlm_download */
    ?>
    <a class="download-link" title="<?php if ( $dlm_download->get_version()->has_version_number() ) {
    	printf( __( 'Version %s', 'download-monitor' ), $dlm_download->get_version()->get_version_number() );
    } ?>" href="<?php $dlm_download->the_download_link(); ?>" rel="nofollow">
    	(pdf)
    </a>

    All these files are located in my Child Theme (folder download-monitor)

    Warmly
    Jean-Michel

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘File Path missing and Download is not working’ is closed to new replies.