Fatal Error: Cannot redeclare class ?? (Zencart module)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bruiseviolet
Forum Newbie
Posts: 1
Joined: Thu May 21, 2009 4:10 pm

Fatal Error: Cannot redeclare class ?? (Zencart module)

Post by bruiseviolet »

While I no zero about php, I'm fairly tech savvy and have a good grasp on many things and other programming languages. So I am asking for some help, because I'm stumped and google search isn't coming up with any results.

Here we go:
I am running Zencart v. 1.3.8a
I am setting up a new payment module for my credit card processing. I am using Payjunction. (payjunction.com). Anyways, when I upload the module and go to payment in the admin console to try and actually install it-- I keep receiving this error:
Fatal error: Cannot redeclare class pj in /.../includes/modules/payment/pj.php on line 433

Code: Select all

 
function keys() {
    return array('MODULE_PAYMENT_PJ_STATUS', 'MODULE_PAYMENT_PJ_COLLECT_CVV', 'MODULE_PAYMENT_PJ_EMAIL', 'MODULE_PAYMENT_PJ_ZONE', 'MODULE_PAYMENT_PJ_ORDER_STATUS_ID', 'MODULE_PAYMENT_PJ_SORT_ORDER');
}
}
?>
 
Is something you can help me with?
Last edited by Benjamin on Thu May 21, 2009 4:31 pm, edited 1 time in total.
Reason: Added [quote] and [code=php] tags.
Post Reply