Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,486
    Plugin Contributions
    88

    Default /includes/modules/pages/redirect/header_php.php has no notifier hook

    The file /includes/modules/pages/redirect/header_php.php does not include a call to $zco_notifier->notify() at its onset, making it impossible to override with an observer class. Suggested correction:
    Code:
    <?php
    /**
     * redirect handler 
     *
     * @package page
     * @copyright Copyright 2003-2011 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: header_php.php 19516 2011-09-14 21:27:30Z wilt $
     */
    if (!defined('IS_ADMIN_FLAG')) {
      die('Illegal Access');
    }
    // This should be the first line of the script
    $zco_notifier->notify('NOTIFY_HEADER_START_REDIRECT');
    
    switch ($_GET['action']) {
    Last edited by lat9; 7 Oct 2012 at 12:29 PM.

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,486
    Plugin Contributions
    88

    Default Re: /includes/modules/pages/redirect/header_php.php has no notifier hook

    OK, it's more than just the redirect page. The following pages' header_php.php files don't include the start/stop notifiers. I've included all of them for completeness, even though some (like page_2) are pretty trivial:

    account_newsletters, advanced_search, conditions, cookie_usage, customers_authorization, discount_coupon, download_timeout, featured_products, gv_redeem, info_shopping_cart, page_2 (and _3 and _4), payer_auth_auth, payer_auth_frame, payer_auth_verifier, popup_* (except for popup_images and popup_images_additional which share the same notifier values), privacy, product_free_shipping_info, product_music_info, products_all, products_new, reviews, shippinginfo, specials and ssl_check

  3. #3
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: /includes/modules/pages/redirect/header_php.php has no notifier hook

    Thoroughness is one thing. Thanks. We'll look into it.

    But much more important is understanding what business cases you're encountering where you feel you need to use observers on any of those pages. Can you give scenarios?
    .

    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
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,486
    Plugin Contributions
    88

    Default Re: /includes/modules/pages/redirect/header_php.php has no notifier hook

    No business case, just completeness ...

    The only one that I can remotely envision is download_timeout. If I've chosen to hook the notifier and perform some special processing for the download page, I might also be interested that the download timed out.

 

 

Similar Threads

  1. Replies: 3
    Last Post: 10 Apr 2013, 03:46 PM
  2. v139h Can I override the /includes/modules/pages/shopping_cart/header_php.php ?
    By devyani in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 30 Mar 2013, 10:59 PM
  3. v151 Target File Already Exists:\includes\modules\pages\payer_auth_verifier\header_php.php
    By EdsGoodStuff in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 21 Dec 2012, 04:27 PM
  4. how to override includes > modules > pages > page_folder > header_php.php
    By monkeytown in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 1 Feb 2008, 05:45 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR