Export product error

Hi,



When exporting products via direct download, the system tells me that the download was initially successful, and then gives me the following error message.



Fatal error: Call to undefined function apache_setenv() in /usr/www/users/ganooa/core/fn.fs.php on line 238



As such, I cannot seem to export products.



Please advise Guru’s.



Thanks

[quote name=‘troyconstandakis’]Hi,



When exporting products via direct download, the system tells me that the download was initially successful, and then gives me the following error message.



Fatal error: Call to undefined function apache_setenv() in /usr/www/users/ganooa/core/fn.fs.php on line 238



As such, I cannot seem to export products.



Please advise Guru’s.



Thanks[/QUOTE]



[url]http://forum.cs-cart.com/showthread.php?t=19107[/url]

What does this mean? I am not alone?



Is there no fix?

[quote name=‘troyconstandakis’]What does this mean? I am not alone?



Is there no fix?[/QUOTE]



Have raised as a bug…[url]http://forum.cs-cart.com/vbugs.php?do=view&vbug_id=2072[/url] Would post on it too if I was you!

Open core/fn.fs.php and go to line 238



Find



```php apache_setenv(“no-gzip”, “1”); ```



Replace with



```php if (function_exists(‘apache_setenv’)) {

apache_setenv(‘no-gzip’, ‘1’);

} ```

[quote name=‘S-Combs’]Open core/fn.fs.php and go to line 238



Find



```php apache_setenv(“no-gzip”, “1”); ```



Replace with



```php if (function_exists(‘apache_setenv’)) {

apache_setenv(‘no-gzip’, ‘1’);

} ```[/QUOTE]

EDIT* have raised as bug [url]http://forum.cs-cart.com/vbugs.php?do=view&vbug_id=2072[/url]



Hi Scott



Still get “do you want to navigate away” message then no error but throws me to front of site ie home page!

I had to comment out this in order to make the above work:



header (“200 HTTP/1.0 OK”);



Thanks to Scott !

That line is also in fn.fs.php just under apache_setenv(“no-gzip”, “1”);



Barry, if this still doesn’t resolve your problem please check your error_log to see if there is additional info in it that will help diagnose.

[quote name=‘S-Combs’]That line is also in fn.fs.php just under apache_setenv(“no-gzip”, “1”);



Barry, if this still doesn’t resolve your problem please check your error_log to see if there is additional info in it that will help diagnose.[/QUOTE]





Hi Scott



Will have to try this later as am busy trying to get my products listed on Google. Lost them all coz of CS not working properly.



Thanks will let you know.

[quote name=‘BarryH’]Hi Scott



Will have to try this later as am busy trying to get my products listed on Google. Lost them all coz of CS not working properly.



Thanks will let you know.[/QUOTE]



I think this problem is related to that Barry

[quote name=‘S-Combs’]I think this problem is related to that Barry[/QUOTE]



Hi Scott



As have always said “you are a genius” works perfectly now.



Just need CS to sort the export to google base now.



Thanks a lot :stuck_out_tongue:

Ok. Way over my head. I am just a beginner.



Edited fn.fs.php but still get error message when i attempt to export.



I only replaced line 238.



Please assist.

Please paste the exact error you are receiving afer the code modicication to fn.fs.php

Here is the code



if (function_exists(‘apache_setenv’)) {

apache_setenv(‘no-gzip’, ‘1’);

}

ini_set(“zlib.output_compression”, “Off”);

header (“200 HTTP/1.0 OK”);

header(“Pragma: public”);

header(“Expires: 0”);



and attached the error message

error.jpg

[quote name=‘S-Combs’]Please paste the exact error you are receiving afer the code modicication to fn.fs.php[/QUOTE]



IGNORE!!! LOL

Hi Barry,



That went straight over my head. Am i missing something here?



Cheers

[quote name=‘troyconstandakis’]Hi Barry,



That went straight over my head. Am i missing something here?



Cheers[/QUOTE]



No you not missing anything!



Scott asked for the error message. I posted mine but I had mis-read the request and he was referring to another post!!!

[quote name=‘troyconstandakis’]Here is the code



if (function_exists(‘apache_setenv’)) {

apache_setenv(‘no-gzip’, ‘1’);

}

ini_set(“zlib.output_compression”, “Off”);

header (“200 HTTP/1.0 OK”);

header(“Pragma: public”);

header(“Expires: 0”);



and attached the error message[/QUOTE]



Sorry for late resonse



That edit is correct but it seems your server is still not liking one of the other demands… Without seeing your error_log it is difficult to determine but try this.



Make the same change above but this time ‘also’ comment out the following line below that.



header (“200 HTTP/1.0 OK”);



change to



//header (“200 HTTP/1.0 OK”);

ha. you are a genius. yeah!



now to solve the import problem???