X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   editing the include/func.php file (https://forum.x-cart.com/showthread.php?t=3497)

sky 07-07-2003 11:03 AM

editing the include/func.php file
 
Help!

I received instructions to correct the "Nobody" email problem in my custom version of x-cart (3.4.1), but whenever I try to edit the func.php file to add the correction, it breaks the file and my cart will not load.

Someone suggested that there might be extra spaces at the end of the file and if I deleted them, the file would not break, but this did not help.

How do I edit the func.php file without breaking it???

Thanks for your assistance.

shan 07-07-2003 02:07 PM

what were you told to do ?

sky 07-07-2003 03:06 PM

editing include/func.php
 
Here are the directions given to fix the problem:

"The problem is caused by the bug in the version 3.4.0. We offer you upgrade X-Cart to latest version.
To fix this problem you should edit file Cart/include/func.php
Alter following lin in the function func_send_mail

$header = "From: $from".$lend."To: $to".$lend."Reply-to: $from".$lend."X-Mailer: PHP/".phpversion().$lend;

to

$headers = "From: $from".$lend."To: $to".$lend."Reply-to: $from".$lend."X-Mailer: PHP/".phpversion().$lend;"

However, as I stated earlier, anytime I touch the func.php file it breaks. I need to know how to effect the above change and still have a working cart.

Thanks for the input.
Sue

shan 07-07-2003 03:22 PM

i would just use your ftp client or file manager on your hosting account to edit the file. the problem maybe because you edit the file and then dont upload it in unix format. edit it on the server and you should be ok

sky 07-07-2003 05:27 PM

It's working
 
Hi,

Thank you for the file manager suggestion. My "Nobody" problem is now fixed.

I took a combination of advise. Not only did I have to correct the line of code, but it was also pointed out by my hosting company, that sometimes there is blank space at the end of the file that causes it to break.

By fixing the code AND removing the extra spaces at the end of the file from my file manager, I was able to correct the problem.

Thanks again. This has been a baptism by fire and I appreciate all your input.

Sue


All times are GMT -8. The time now is 01:15 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.