• Resolved mzwach

    (@mzwach)


    Hi,

    yesterday I have upgraded the waterwoo Plugin from
    2.4.5 to 2.7.4

    Afterwards PDF Files were not anymore generated, because the source PDF File was not found on server.

    
    file_get_contents(/wp-content/uploads/woocommerce_uploads/2017/07/x123.pdf): failed to open stream: No such file or directory in /var/www/wordpress/wp-content/plugins/waterwoo-pdf/inc/tcpdi/tcpdi.php on line 111
    

    The problem is, that the php function file_get_contents gets with the 2.7.4 version only a sub-path, instead of the complete linux path.
    I have tried to correct this as quick fix, but afterwards I get some memory overflow problems.

    Would you please help me fixing this problem.

    Thank you in advance,
    Best Regards
    Michael

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Little Package

    (@littlepackage)

    Hi @mzwach

    Thanks for letting me know, I appreciate that. I’m curious: are you listing your Woo product using a URL or absolute path?

    Thread Starter mzwach

    (@mzwach)

    Hi,

    at the Woocommerce Product within the file-path field I have a relative path. So this can either be a local path or a url sub-path.

    It sound like:
    /wp-content/uploads/2020/09/GP-01_2020.pdf

    I am used to it, but maybe this sub patch is caused by the plugin Relative URL.
    Till your upgrade, everything was fine…

    Regards,
    Michael

    Plugin Author Little Package

    (@littlepackage)

    Wish I had known about this “Relative URL” plugin 24 hours ago. What is the URL of this plugin so that I can see?

    Thread Starter mzwach

    (@mzwach)

    Hi,

    this is the plugin:
    https://de.www.ads-software.com/plugins/relative-url/

    Does WordPress and your plugin use URLs for the file manipulation? I have assumed it uses local file path…

    Regards,
    Michael

    Plugin Author Little Package

    (@littlepackage)

    The plugin description states

    Notice: This plugin SHOULD be used for local development only. I haven’t tested on a production environment; it may work with some issues, like unwanted URLs in RSS feed or sharing URLs are replaced with relative URLs, etc.

    Yikes!

    Yes, WooCommerce solicits URLs and absolute paths for its products. Changing those fields with this Relative URL plugin is beyond the support of the WaterWoo plugin. Please change your WooCommerce product paths to be as WooCommerce requests: URL or absolute path, and try again.

    Thread Starter mzwach

    (@mzwach)

    Hi,

    yes, the note exist and WooCommerce default is using an absolute path or an URL. I have disabled this plugin for test purpose and corredtedthe document path to an complete URL. It works.

    After changing all values with an php script in DB meta-tags, it should be fine for all of our downloadable documents.

    But it is strange, since although the relative pathes, your plugin worked great till this upgrade!

    Plugin Author Little Package

    (@littlepackage)

    It is maybe strange, so I took a look, and rolled things back to the way they were with version 2.7.6. Give it a shot.

    Thread Starter mzwach

    (@mzwach)

    Hi,

    wow. Thank you for your work!
    I have tested version 2.7.6 and it works great (again) !
    ??

    Best Regards,
    Michael

    Plugin Author Little Package

    (@littlepackage)

    You’re welcome.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Source PDF File not found after upgrade to 2.7.4’ is closed to new replies.