Irin Posted December 1, 2005 Share Posted December 1, 2005 (edited) 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 December 1, 2005 by Irin Quote Link to comment Share on other sites More sharing options...
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.