Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

popup_paypal.php Fatal error


Irin

Recommended Posts

Hello,

 

I'm getting the following error when opening popup_paypal.php:

Fatal error: Call to a member function on a non-object in ...........\httpdocs\osCommerce\popup_paypal.php on line 34

My popup_paypal.php is:

<?php

/*

$Id: popup_paypal.php,v 1.1.1.1 2004/09/22 13:45:11 devosc Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

DevosC, Developing open source Code

http://www.devosc.com

 

Copyright ? 2003 osCommerce

Copyright ? 2004 DevosC.com

 

Released under the GNU General Public License

*/

require('includes/modules/payment/paypal/classes/Page/Page.class.php');

$page = new PayPal_Page();

$page->setBaseDirectory('includes/modules/payment/paypal/');

 

$action = (isset($HTTP_GET_VARS['action'])) ? $HTTP_GET_VARS['action'] : '';

 

switch($action) {

case 'css':

header("Content-Type: text/css");

echo $page->getCSS($HTTP_GET_VARS['id']);

exit;

break;

}

 

require("includes/application_top.php");

 

$navigation->remove_current_page();

 

$page->setBaseURL(DIR_WS_MODULES . 'payment/paypal/');

$page->addCSS('popup_paypal.php?action=css&id=general');

$page->addCSS('popup_paypal.php?action=css&id=stylesheet');

 

switch($action) {

default:

$page->setContentLangaugeFile($page->baseDirectory.'catalog/languages',$language,'info_cc.inc.php');

$page->setTemplate('osC_Catalog');

break;

}

require($page->template());

require("includes/counter.php");

require(DIR_WS_INCLUDES . 'application_bottom.php');

?>

What's wrong? Any help would be greatly appreciated.

 

Thanks.

Edited by Irin
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...