XxWickedxX Posted May 19, 2010 Posted May 19, 2010 I have an old OSC store that I rarely work on anymore and is populated with download products. Sales on the site are far and few between right now. The store always functioned correctly in the past. The only thing I can think of right off is that I manually updated my old OsC version to be current and compatible with PHP5. This is possibly my first sale since the upgrade. I have no errors and any other problems on the site that I know but now customers are getting a blank page when clicking to download their item which leads to an angry email. As I said the store always operated fine in the past so Downloads are enabled and the product attributes are correct. Where do I start with this issue? I search around the forum a bit but never really landed on the answer specific to my situation.. Thanks for any help.
XxWickedxX Posted May 20, 2010 Author Posted May 20, 2010 Been 24 hours.. Back for a bump. Any guidance would be helpful. Thanks
germ Posted May 20, 2010 Posted May 20, 2010 Look at the posts here by steve_s on how to get the site to write errors to a log file. That thread is about admin problems but you can do the same thing on the catalog side. You really can't do a whole lot until you find exactly where the error is. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
XxWickedxX Posted May 21, 2010 Author Posted May 21, 2010 Thanks germ. The error reads this Notice: Undefined variable: session_started in /home/www/mysite.com/includes/application_top.php on line 151 This is Lines 151-154 if ( ($session_started == true) && (PHP_VERSION >= 4.3) && function_exists('ini_get') && (ini_get('register_globals') == false) ) { extract($_SESSION, EXTR_OVERWRITE+EXTR_REFS); }
XxWickedxX Posted May 21, 2010 Author Posted May 21, 2010 Since all I am getting is just a notice then this should not being stopping the execution of the script should it? The customer should just be directed prompted to download the product.
XxWickedxX Posted May 21, 2010 Author Posted May 21, 2010 Also if it is any helpful information I upgraded the store from MS2.2 to RC2. Then upgraded my server to php 5 and mysql 5. This blank download page appears to be a problem after that upgrade. Store currently has Register Globals On.
germ Posted May 21, 2010 Posted May 21, 2010 Thanks germ. The error reads this Notice: Undefined variable: session_started in /home/www/mysite.com/includes/application_top.php on line 151 This is Lines 151-154 if ( ($session_started == true) && (PHP_VERSION >= 4.3) && function_exists('ini_get') && (ini_get('register_globals') == false) ) { extract($_SESSION, EXTR_OVERWRITE+EXTR_REFS); } You must have missed a line of code earlier. This is how my unadulterated version of that file looks in that area: // start the session $session_started = false; if (SESSION_FORCE_COOKIE_USE == 'True') { tep_setcookie('cookie_test', 'please_accept_for_session', time()+60*60*24*30, $cookie_path, $cookie_domain); if (isset($HTTP_COOKIE_VARS['cookie_test'])) { tep_session_start(); $session_started = true; } } elseif (SESSION_BLOCK_SPIDERS == 'True') { $user_agent = strtolower(getenv('HTTP_USER_AGENT')); $spider_flag = false; if (tep_not_null($user_agent)) { $spiders = file(DIR_WS_INCLUDES . 'spiders.txt'); for ($i=0, $n=sizeof($spiders); $i<$n; $i++) { if (tep_not_null($spiders[$i])) { if (is_integer(strpos($user_agent, trim($spiders[$i])))) { $spider_flag = true; break; } } } } if ($spider_flag == false) { tep_session_start(); $session_started = true; } } else { tep_session_start(); $session_started = true; } if ( ($session_started == true) && (PHP_VERSION >= 4.3) && function_exists('ini_get') && (ini_get('register_globals') == false) ) { extract($_SESSION, EXTR_OVERWRITE+EXTR_REFS); } (Note the variable in question is defined towards the top of that code) Although I really don't think that is the crux of the problem. If you can't get a more meaningful error I really don't know what to do. :'( If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
XxWickedxX Posted May 22, 2010 Author Posted May 22, 2010 I have that code too. Its actually just below what I have posted. The code I am talking about shows up just above this // define how the session functions will be used require(DIR_WS_FUNCTIONS . 'sessions.php'); I don't know.. Its just an E_error.. It should not keep my customers from being able to download the product. Last customer was not happy at all. I really strive for that not to be the case.
XxWickedxX Posted May 22, 2010 Author Posted May 22, 2010 I also just now tried replacing my download.php with a fresh new one... Still nothing.. I am not using the download redirect so what other files might I be able to switch in for a new copy that controls this process of clicking on the download link and getting the product?
XxWickedxX Posted May 28, 2010 Author Posted May 28, 2010 Really looking for anymore ideas. No error messages and rest of the site works just fine. My downloads used to work but now when a customer clicks on the download link after purchase they are brought to a blank page and no download prompt box pops up so they can get their product. Thanks
Rhans Posted June 11, 2010 Posted June 11, 2010 how do you even upload items for download. I just dont get it?
XxWickedxX Posted July 9, 2010 Author Posted July 9, 2010 how do you even upload items for download. I just dont get it? Rhans you would have to make your own thread in the general support area to discuss this as you probably have already done by now. It really tangents off the subject matter of this thread. Sadly I still have this issue.. Nothing but a blank page when customer clicks the download link. So let me approach this a bit differently. Can someone give me the layout of just which files are controlling the process of delivering a download to the customer? The link is there and it can be clicked but after that it just pops up a blank page. The url in the address bar suggest the attempt to direct the customer to the download but no download happens. It has something like the product id and customer id string in the url after clicked. If someone can tell me exactly what files are making this process happen then perhaps maybe I can track down a history of changes by going back over past documentation and just maybe pull this site to a working order. This is my last attempt. If I am unable to achieve success on this issue then I suppose I am just going to shut down the site and go a similar but different direction with the domain. Nobody wants an email download sent to them when I get around to it. They want it instant. I do not suppose there is mod that would eliminate default way products are downloaded is there? Perhaps something like that would be a work around. I don't know. I have a big notice posted on the site letting every potential customer know that if they purchase it would be emailed to them and lets just say nobody purchases anymore. Its a couple year old site now I guess but its still just a start up status so shutting down is my last option. Thanks again for any able minds
Recommended Posts
Archived
This topic is now archived and is closed to further replies.