New Zenner
- Join Date:
- Jan 2015
- Location:
- Pensacola Florida
- Posts:
- 75
- Plugin Contributions:
- 0
Recover Cart [Support Thread]
websmith:
After seeing how this pasted in with all the # signs apparently I have a problem with pasting from my machine. This was copied out from the server using nano. It does not show the number signs but when I turn on the white space I can see spaces are not there. I modified the file with nano and now the spaces show and the error changes so it is something with the way I am editing files. I am working to identify that and will update when I know more.
Ok after several hours of work I know the cause of the problem it is being generated by using FireFox to copy to code from the web it is putting spurious characters in for spaces. I do not know why or how to fix this but I will worry about that later.
Nano nor Vim with see it but cat –A, the ZC website (the # in the previous post), and apparently php8.1 see it. This is a sample of the results of cat -A:
ifM-BM- (!function_exists('defineIfNot'))M-BM- {^M$
M-BM- M-BM- M-BM- M-BM- functionM-BM- defineIfNot(stringM-BM- $name,M-BM- stringM-BM- $definition)^M$
M-BM- M-BM- M-BM- M-BM- {^M$
M-BM- M-BM- M-BM- M-BM- M-BM- M-BM- M-BM- M-BM- ifM-BM- (!defined($name))M-BM- {^M$
M-BM- M-BM- M-BM- M-BM- M-BM- M-BM- M-BM- M-BM- M-BM- M-BM- M-BM- M-BM- define($name,M-BM- $definition);^M$
M-BM- M-BM- M-BM- M-BM- M-BM- M-BM- M-BM- M-BM- }^M$
M-BM- M-BM- M-BM- M-BM- }^M$
}^M$
I have found a work around (I manually typed the code in nano) and now have cleared the error with the changed code. When I click customer and choose Abandoned Carts I get the full page and it is showing abandoned carts (I had a test one sitting in the db) however I get the following Debug error:
[24-Nov-2022 14:50:49 America/Chicago] Request URI: /humphreystow/index.php?cmd=recover_cart_sales, IP address: 98.190.184.37
#0 /var/www/alt1.humphreystowbars.com/public_html/humphreystow/recover_cart_sales.php(577): zen_debug_error_handler()
#1 /var/www/alt1.humphreystowbars.com/public_html/humphreystow/index.php(11): require('...')
--> PHP Warning: Undefined array key "message" in /var/www/alt1.humphreystowbars.com/public_html/humphreystow/recover_cart_sales.php on line 577.
I do not have mail installed on this particular test server, it is just basic, so I cannot check to see if it is sending correctly at the moment.