Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2006
    Posts
    163
    Plugin Contributions
    1

    Default Probs While Porting Module

    Hello

    I have been trying to port a module across from OSC and everything seemed to have been going fine.

    I loaded it up for a first stab and it showed ok in Modules >> Payment in ZC Admin.

    However, clicking the install button leaves me with a blank page (Note 1). If I use "Back" on the browser, I find that it has actually installed. Clicking "Edit" brings up the edit display ok but clicking "Update" results in a blank page again (Note 2). "Remove" did not work so I had to delete the files and fields from the config table manually. Since I tried this install, clicking "Update" on every other payment module leads to a blank page (Note 3).

    Note 1: Anyone got any ideas got might be causing this given the info given?
    Notes 2 & 3. Seems the url "http://ZC_Site.com/admin/modules.php?set=payment&module=any&action=save" just doesn't work no more.

  2. #2
    Join Date
    Dec 2006
    Posts
    163
    Plugin Contributions
    1

    Default Re: Probs While Porting Module

    Checking the various actions open for payment modules.

    "http://ZC_Site.com/admin/modules.php?set=payment&module=any&action=save" NOT OK

    "http://ZC_Site.com/admin/modules.php?set=payment&module=any&action=remove" NOT OK

    "http://ZC_Site.com/admin/modules.php?set=payment&module=any&action=edit" OK

    "http://ZC_Site.com/admin/modules.php?set=payment&module=any&action=install" NOT OK

    As you can see, I am truly stuffed and cannot change or install any new payment modules.

    Any help will be appreciated.

    Thanks

  3. #3
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Probs While Porting Module

    Perhaps the utility mentioned in 2(a) of this article may be of some help. Substitute the /admin/includes/ path when it mentions the /includes/ folder ...
    https://www.zen-cart.com/tutorials/index.php?article=82

    Hopefully the logging it produces will help you see the PHP error you're creating in the process.

    You should also check your server's apache errorlog.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Dec 2006
    Posts
    163
    Plugin Contributions
    1

    Default Re: Probs While Porting Module

    Thanks

    The server error log pointed me to /includes/filenames.php. Seems there was some sort of corruption at the end of the file. It now works.

    It is a port of the Moneybookers module. I know there are existing versions that still work but the one from OSC has had closer integration with MBookers implemented.

    I just have to run a few tests before committing it to the downloads area.

    How is that done by the way?

  5. #5
    Join Date
    Dec 2006
    Posts
    163
    Plugin Contributions
    1

    Default Re: Probs While Porting Module

    I noticed that the Wiki page on porting at http://www.zen-cart.com/wiki/index.p...dules_from_osC could do with these items

    #1
    Code:
    if ($osC_Customer->isLoggedOn() == false) {
     Some Action
    }
    to

    Code:
    if (zen_get_customer_validate_session($_SESSION['customer_id']) == false) {
     Some Action
    }
    #2
    Code:
    $osC_Session->exists('xyz')
    to
    Code:
    $_SESSION['xyz']
    #3
    Code:
    $osC_Session->value('xyz')
    to
    Code:
    $_SESSION['xyz']
    #4
    Code:
    $osC_Session->remove('xyz')
    to
    Code:
    unset($_SESSION['xyz'])

 

 

Similar Threads

  1. Porting module from osCommerce to Zen Cart
    By local1970 in forum Addon Payment Modules
    Replies: 4
    Last Post: 4 Apr 2011, 08:23 AM
  2. Porting osCommerce iTransact CC Module
    By wulfmaer in forum Addon Payment Modules
    Replies: 12
    Last Post: 25 May 2010, 11:38 PM
  3. Porting CCBill Module
    By dbailey1980 in forum Addon Payment Modules
    Replies: 2
    Last Post: 4 May 2010, 02:13 PM
  4. Payment module porting from oscommerce problem
    By filippo in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 12 May 2009, 09:32 AM
  5. porting a payment module from osC
    By Michi71 in forum Addon Payment Modules
    Replies: 1
    Last Post: 14 Feb 2008, 01:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg