Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

edit to payment.php page made it show blank on site


doanbertoni

Recommended Posts

Hi i'm new to oscommerce, my boss has a website that he wanted me to edit...

I have edited the main payment.php file to change the text, now that i have uploaded it to the the website the site shows a blank page.

Do you know why this happened? and how can i fix it?

this is the site:

pepspice.net

if you click on payments under the information menu you'll se it shows a blank page and it was showing a normal page like the others under information (like the attached image).

What can i do?

Thank you,

Doan

post-321298-0-54652100-1367265985_thumb.jpg

Link to comment
Share on other sites

@@doanbertoni

 

If you have a 'blank' page, it typically means that you have left 'whitespace' on the page you edited. Ensure that you only use a text editor to edit PHP files (Notepad++ or Editplus+) to prevent 'whitespace' errors.

 

 

Chris

 

ps. Your IP ban worked when I check the security. I was banned.....lol.. I am glad to see you have that old version secured.

Link to comment
Share on other sites

Hi Christ thank you for your reply, i'm cheching to see if there is something wrong with the page but i can't see it yet...

could you tell me if you see something wrong?

this is the code of the file (it's really small):

 

<?php

/*

$Id: profile.php 1739 2007-12-20 00:52:16Z hpdl $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

define('NAVBAR_TITLE', 'Payment Methods');

define('HEADING_TITLE', 'Payment Methods');

 

define('TEXT_INFORMATION', '

<p>Electronic payments through this site are processed via PayPal, you do NOT need to enter any credit/debit card information. Simply proceed with your order and you will be sent a payment link via PayPal. You simply follow this link to pay from your PayPal account or use PayPal payment processing and pay using your credit/debit card if you do not have a PayPal account.</p>

<p><b>Your order will be dispatched same day as payment has been received.</b></p>

<span class="imgL"><a href="http://www.alertpay.com" target="_blank"><img src="images/p1.gif" alt="Alertpay" class="imgL"></a></span>');

?>

 

Thank you.

Doan

Link to comment
Share on other sites

It looks like i have replaced by accident a main payment.php file that had all the php code, i replaced it for the payment.php code that is supoused to go inside laguages/english. Is there any way i could get that code back from another installation because i dont have the original file i replaced... Dummy me.

Link to comment
Share on other sites

Thanks Chris, looks like i have managed to fix it by copying the file disclaimer.php and name it payment.php and simply change these two lines to PAYMENT instead of DISCLAIMER:

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DISCLAIMER);

 

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_DISCLAIMER));

 

Thanks.

Doan

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...