When my customers add products to the cart, log in etc etc and go to step 2 of 3 where they choose the payment method, im getting a blank page.
What has happened here and what can i do to get this sorted out.
Thanks in advance
Printable View
When my customers add products to the cart, log in etc etc and go to step 2 of 3 where they choose the payment method, im getting a blank page.
What has happened here and what can i do to get this sorted out.
Thanks in advance
Try the suggestions on this FAQ, esp the debug logging suggestion in step 2:
https://www.zen-cart.com/tutorials/index.php?article=82
ok i tried that, but cant do this step
Open the latest /cache/myDEBUG-xxxxxxx.log file to see the list of any PHP errors that occurred while the page/test was running.
its not there, am i doing something wrong
ok found them, i have loads of reports, what do i do at this stage
[18-Mar-2008 22:09:32] PHP Parse error: syntax error, unexpected '<' in /home/directpc/public_html/includes/templates/directpc/templates/tpl_checkout_payment_default.php on line 123
These are all the messages im getting, im really stuck now, as this is not my thing, i understand what the messages mean, but do not know what the coding should be in the first error
[18-Mar-2008 22:09:32] PHP Parse error: syntax error, unexpected '<' in /home/directpc/public_html/includes/templates/directpc/templates/tpl_checkout_payment_default.php on line 123
and
[18-Mar-2008 21:58:24] PHP Fatal error: Call to undefined function: zen_get_languages() in /home/directpc/public_html/index.php on line 25
and
[18-Mar-2008 21:59:16] PHP Warning: main(includes/functions/functions_email.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in /home/directpc/public_html/includes/init_includes/init_general_funcs.php on line 26
[18-Mar-2008 21:59:16] PHP Fatal error: main() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/functions/functions_email.php' (include_path='.:/usr/lib/php') in /home/directpc/public_html/includes/init_includes/init_general_funcs.php on line 26
and
[18-Mar-2008 22:00:29] PHP Warning: main(includes/languages/english/other_images_names.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in /home/directpc/public_html/includes/languages/directpc/english.php on line 673
[18-Mar-2008 22:00:29] PHP Fatal error: main() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/languages/english/other_images_names.php' (include_path='.:/usr/lib/php') in /home/directpc/public_html/includes/languages/directpc/english.php on line 673
thanks in advance
for the first error, here is the contents around line 123
line 121 </td>
line 122 </tr>
123 <?php
124 } // end foreach ($productArray as $product)
125 ?>
126 <!-- Finished loop through all products /-->
Also,
- what version of Zen Cart?
- when did these problems "start"? Have you or your hosting company been changing anything lately?
- what addons are installed on your site?
sorry line 115 to 130
<?php
}
if ($product['checkBoxDelete'] ) {
echo zen_draw_checkbox_field('cart_delete[]', $product['id']);
}
?>
</td>
</tr>
<?php
} // end foreach ($productArray as $product)
?>
<!-- Finished loop through all products /-->
</table>
<div id="cartSubTotal"><?php echo SUB_TITLE_SUB_TOTAL; ?> <?php echo $cartShowTotal; ?></div>
<br class="clearBoth" />
latest version, my hosting company went down the other day, saying something on security on their servers, i have addons, do you mean like google checkout etc, i stopped the google checkout ages ago though as this was causing problems. I have a few payment addons, paypal, nocheq, then just some feeders for google, yahoo etc
sorry your right, im making this even harder! lol
here is the proper one
Code:<?php
foreach($payment_modules->modules as $pm_code => $pm) {
if(substr($pm, 0, strrpos($pm, '.')) == 'googlecheckout') {
unset($payment_modules->modules[$pm_code]);
}
}
line 123 <?php
foreach($payment_modules->modules as $pm_code => $pm) {
if(substr($pm, 0, strrpos($pm, '.')) == 'googlecheckout') {
unset($payment_modules->modules[$pm_code]);
}
}
$selection = $payment_modules->selection();
if (sizeof($selection) > 1) {
Im on the same server, they say there new securirty shut the system down when somebody tried to hack, but it looks like everything is the same according to them. I have tried uploading the backups that i have and they have the same effect, so many this has been going on longer than i though, and i have this feeling its google checkout
You should clear out the log files that were created before you fixed that error.
Then go do several tests in your store ... browse around; add things to your cart, complete a checkout, etc.
Check the log files everytime you do something, and see what's showing up there. Fix the errors as you find them. Then do more testing until they stop.
time for another back up