Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

editing the include/func.php file

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-07-2003, 11:03 AM
 
sky sky is offline
 

Member
  
Join Date: Oct 2002
Posts: 27
 

Default 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.
Reply With Quote
  #2  
Old 07-07-2003, 02:07 PM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

what were you told to do ?
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 07-07-2003, 03:06 PM
 
sky sky is offline
 

Member
  
Join Date: Oct 2002
Posts: 27
 

Default 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
Reply With Quote
  #4  
Old 07-07-2003, 03:22 PM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

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
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #5  
Old 07-07-2003, 05:27 PM
 
sky sky is offline
 

Member
  
Join Date: Oct 2002
Posts: 27
 

Default 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
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020