Porsche032 Posted March 8, 2006 Posted March 8, 2006 when i go to catalog Utility import/export. When i click on a file to download it doesnt do anything. It just refreshes the page. Download .txt file with TAB delimited to edit ( Complete ) Download .txt file with TAB delimited to edit ( Model / Price / Quantity ) Download .txt file with TAB delimited to edit ( Model / Category ) Download .txt file with TAB delimited to edit ( Model / Attributes ) Download .txt file with TAB delimited to edit ( Products extra fields ) Download .txt file with TAB delimited to edit ( Froogle ) these are the files. Please someone tell me what could be causing this. Thank you Quote
Porsche032 Posted March 8, 2006 Author Posted March 8, 2006 when i go to catalog Utility import/export. When i click on a file to download it doesnt do anything. It just refreshes the page. Download .txt file with TAB delimited to edit ( Complete ) Download .txt file with TAB delimited to edit ( Model / Price / Quantity ) Download .txt file with TAB delimited to edit ( Model / Category ) Download .txt file with TAB delimited to edit ( Model / Attributes ) Download .txt file with TAB delimited to edit ( Products extra fields ) Download .txt file with TAB delimited to edit ( Froogle ) these are the files. Please someone tell me what could be causing this. Thank you can someone help???????? what is the log file i can check for error messages? its weird because it just refreshes the page without giving errors. Thanks Quote
frimipiso Posted March 9, 2006 Posted March 9, 2006 (edited) Hi, I justed added to some debug messages to easypopulate.php. It looks as if the form data passed in the http address field http://XXXXXXXXX/admin/easypopulate.php?download=stream&dltype=full is not received in the php code. The variables $download and $dltype remain empty. What could be the reason for that? Any ideas? Cheers, Jens Edited March 9, 2006 by frimipiso Quote
frimipiso Posted March 10, 2006 Posted March 10, 2006 Hello again, I got a little bit further by inserting the following lines into easypopulate.php: //inserted by JH to remove download problems $download = $HTTP_GET_VARS('download'); $dltype = $HTTP_GET_VARS('dltype'); Now, easypopulate gets the http variables and progresses in downloading. I am not yet done, but at least something is happening. I'm just wondering why nobody else except "Porsche" and me is having these Problems. I mean how does the original version of easypopulate get the html variables into $download and $dltype??? Did I miss something during installation? Cheers, Jens Quote
ramiroei Posted March 10, 2006 Posted March 10, 2006 I?m having the same probem... Where should I insert: ---------------------------------- //inserted by JH to remove download problems $download = $HTTP_GET_VARS('download'); $dltype = $HTTP_GET_VARS('dltype'); ---------------------------------- To make it work??? Thanks Rama Quote
Porsche032 Posted March 10, 2006 Author Posted March 10, 2006 I?m having the same probem... Where should I insert: ---------------------------------- //inserted by JH to remove download problems $download = $HTTP_GET_VARS('download'); $dltype = $HTTP_GET_VARS('dltype'); ---------------------------------- To make it work??? Thanks Rama Good job, Im also confused about this problem. I guess its not only us, Im not sure why nobody is helping us though. Can you also tell me where you inserted that code. Thank you Quote
frimipiso Posted March 10, 2006 Posted March 10, 2006 Good job, Im also confused about this problem. I guess its not only us, Im not sure why nobodyis helping us though. Can you also tell me where you inserted that code. Thank you Sorry. Here is what I did. Insert the following section after line 9 (require('includes/application_top.php');): //inserted by JH to remove download problems $download = $HTTP_GET_VARS['download']; $dltype = $HTTP_GET_VARS['dltype']; Basically you can insert it anywhere BEFORE the firs usage of these variables. Download works for me now. But I haven't tested it extensively. Keep me updated if you find anything else. Enjoy, Jens Quote
frimipiso Posted March 10, 2006 Posted March 10, 2006 Hey, I think I found the reason for all of our problems: You probably have the register_globals turned off. If you look here: http://www.oscommerce.com/community/contri...egister_globals (post of 26.5.2005) you can see whats causing the problems. We are supposed to do this (haven't tried it yet) - credit goes to Ciprian Z: ----------------------------------------------------------------------------------------------------- // WARNING: I'm not sure about this line - maybe this is why 'Upload EP File' doesn't work the following will fix the problem: Quote:"2. The next and biggest problem I had lies in the server I use had "Register globals off" which caused form post and other variables to come back empty. Since my host don't allow register globals to be turned on - this is common on all new PHP versions (PHP 4.2.0 and later). I solved this by adding a couple of lines at the top of easypopulate.php, after the $tempdir declarations: // fix by jb 20040815 set the strings to http post/request, since they don't seem to work on the new server, with register globals=off... $dltype=$_REQUEST['dltype']; $download=$_REQUEST['download']; global $HTTP_POST_FILES; foreach( $HTTP_POST_FILES as $varname => $fileinfo ){ $GLOBALS[$varname] = $fileinfo["tmp_name"]; $GLOBALS[$varname.'_name'] = $fileinfo["name"]; } // end fix jb I hope this will give some people a few days less work on how to get EasyPopulate to work! Regards Jonas " end Quote Read the following topic for more http://www.oscommerce.com/forums/index.php?showtopic=108825&hl= all credits goes Regards Jonas Thank you! Quote
frimipiso Posted March 10, 2006 Posted March 10, 2006 GREAT! It works. We should put a link to this discussion into the main easypopulate contribution discussion ... Quote
Porsche032 Posted March 11, 2006 Author Posted March 11, 2006 GREAT! It works. We should put a link to this discussion into the main easypopulate contribution discussion ... Nice good job, yes we should. I think this should also get posted with the contribution because its a problem and can give alot of people a headache. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.