• Resolved acuasif

    (@acuasif)


    Hi Fahad, I still have a problem: the files are correctly stored in the folder dynamically created with the name corresponding to the order number and so everything goes perfectly up to here. The problem occurs in the email I receive as an administrator: in the path of the links of the photos the part (/ NNNN /) of the directory is missing.
    I basically have this link:
    https: //www.sitename.ext/wp-content/uploads/wc-orders/filename.jpeg
    instead it should be
    https: //www.sitename.ext/wp-content/uploads/wc-orders/NNNN/filename.jpeg
    and this, of course, generates a 404 error.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Fahad Mahmood

    (@fahadmahmood)

    I can understand, leave it with me and i will get back to you with this improvement in the plugin.

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    @acuasif this correction has been made in latest version. Kindly update as you do before and let me know if all is good?

    When I try to open the file from email link, it gives me a PHP error. I don’t know how to resolve it. My website is https://www.cakeonrack.com.

    Notice: Only variables should be passed by reference in /home/cakeonrack/public_html/wp-content/plugins/easy-upload-files-during-checkout/inc/functions.php on line 1024

    Warning: Cannot modify header information – headers already sent by (output started at /home/cakeonrack/public_html/wp-content/plugins/easy-upload-files-during-checkout/inc/functions.php:1024) in /home/cakeonrack/public_html/wp-content/plugins/easy-upload-files-during-checkout/inc/functions.php on line 1056

    Warning: Cannot modify header information – headers already sent by (output started at /home/cakeonrack/public_html/wp-content/plugins/easy-upload-files-during-checkout/inc/functions.php:1024) in /home/cakeonrack/public_html/wp-content/plugins/easy-upload-files-during-checkout/inc/functions.php on line 1057

    Warning: Cannot modify header information – headers already sent by (output started at /home/cakeonrack/public_html/wp-content/plugins/easy-upload-files-during-checkout/inc/functions.php:1024) in /home/cakeonrack/public_html/wp-content/plugins/easy-upload-files-during-checkout/inc/functions.php on line 1058

    Warning: Cannot modify header information – headers already sent by (output started at /home/cakeonrack/public_html/wp-content/plugins/easy-upload-files-during-checkout/inc/functions.php:1024) in /home/cakeonrack/public_html/wp-content/plugins/easy-upload-files-during-checkout/inc/functions.php on line 1059

    Warning: Cannot modify header information – headers already sent by (output started at /home/cakeonrack/public_html/wp-content/plugins/easy-upload-files-during-checkout/inc/functions.php:1024) in /home/cakeonrack/public_html/wp-content/plugins/easy-upload-files-during-checkout/inc/functions.php on line 1060

    Warning: Cannot modify header information – headers already sent by (output started at /home/cakeonrack/public_html/wp-content/plugins/easy-upload-files-during-checkout/inc/functions.php:1024) in /home/cakeonrack/public_html/wp-content/plugins/easy-upload-files-during-checkout/inc/functions.php on line 1061

    Warning: Cannot modify header information – headers already sent by (output started at /home/cakeonrack/public_html/wp-content/plugins/easy-upload-files-during-checkout/inc/functions.php:1024) in /home/cakeonrack/public_html/wp-content/plugins/easy-upload-files-during-checkout/inc/functions.php on line 1062

    @cakeonrack You can replace IF Condition till before curly braces start at Line No. 1024 with

    $file_name_array = explode('.', $fileName);
    if(!in_array(end($file_name_array), $whitelist))

    it will resolve the issue. If you don’t have access to code than, please wait for the updated version it will be upload ASAP.

    Thanks

    Now I am getting these errors:

    Notice: Use of undefined constant ‘ – assumed ‘‘’ in /home/cakeonrack/public_html/wp-content/plugins/easy-upload-files-during-checkout/inc/functions.php on line 1023

    Notice: Use of undefined constant ’ – assumed ‘’’ in /home/cakeonrack/public_html/wp-content/plugins/easy-upload-files-during-checkout/inc/functions.php on line 1023
    Invalid file!

    @cakeonrack Please share the screenshot of your code where you make changes I think there is any syntax problem. Maybe it occurred while copy-pasting the code.

    Thanks

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    @cakeonrack i am releasing an updated version with this fix.

    When can I expect that updated version? Please let me know.

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    @cakeonrack already released, please update and try.

    You are a champ. My Cake Shop is fully online.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Issue with files link in order email’ is closed to new replies.