Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

New to OSC, and solved my own problem


geekoasis

Recommended Posts

Posted

I'm new to OSC having recently discovered it, and I love it.

 

Being no stranger to PHP and MySQL, I was merrily fiddling with the code making changes and additions and everything was looking great. I started adding fake inventory and then all of a sudden I started getting this error:

 

Warning: Cannot modify header information - headers already sent by (output started at /home/goasis/public_html/testa/includes/languages/english.php:336) in /home/goasis/public_html/testa/includes/functions/general.php on line 29

 

Well I backed up, slowly replacing everything i'd changed till finally it was all back to 'stock'.. but still I got the error! WTF?!

 

Well to make a long story short, I had been using my domains online cpanel to edit the files, and apparently the file '/includes/languages/english.php' dosen't care to be edited that way.

 

I uploaded a 'fresh' copy of english.php with my FTP program and VOILA! She works perfectly.

 

Just to make sure that was it, I edited the new english.php file with my online editor and got the error again. Uploaded a fresh copy of english.php with my FTP and it worked.

 

Strange that just that file has a problem with the online editor.. all the other 'online' edited .PHP files work just fine.. but I thought i'd post this just in case any other first time users ran into the same problem.

  • 1 month later...
Posted

It's not just that file - - don't use the online editor. Problematic. Use an offline editor - - any one that you like.

 

-jared

Posted
I'm new to OSC having recently discovered it, and I love it.

 

Being no stranger to PHP and MySQL, I was merrily fiddling with the code making changes and additions and everything was looking great. I started adding fake inventory and then all of a sudden I started getting this error:

 

Warning: Cannot modify header information - headers already sent by (output started at /home/goasis/public_html/testa/includes/languages/english.php:336) in /home/goasis/public_html/testa/includes/functions/general.php on line 29

 

Well I backed up, slowly replacing everything i'd changed till finally it was all back to 'stock'.. but still I got the error! WTF?!

 

Well to make a long story short, I had been using my domains online cpanel to edit the files, and apparently the file '/includes/languages/english.php' dosen't care to be edited that way.

 

I uploaded a 'fresh' copy of english.php with my FTP program and VOILA! She works perfectly.

 

Just to make sure that was it, I edited the new english.php file with my online editor and got the error again. Uploaded a fresh copy of english.php with my FTP and it worked.

 

Strange that just that file has a problem with the online editor.. all the other 'online' edited .PHP files work just fine.. but I thought i'd post this just in case any other first time users ran into the same problem.

 

 

Almost the same thing happened to me when I started with oscommerce. The online editor screws everything up.

 

And here's what I do now. Before transferring an altered file, I transfer the "good" file that's already out on the server to a backup folder on my desktop. That way if I need to I have a good file ready to go back out there, so my whole site doesn't go down just because I am making one simple change.

Posted

Its because that stupid online editor creates "whitespace"... If you not new to php and mysql, then why are you even using that editor???

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...