Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2010
    Posts
    6
    Plugin Contributions
    0

    Default messageStack output not returning value sitewide

    Another impossible search it seems.

    messageStack->output doesn't appear to be returning values/text although the size() method is getting tripped. Is there an admin value that I need to turn on/off for these values to be returned, or is there something else evil underneath the rug?

    For example, on an unsuccessful login attempt, this call:

    $messageStack->output('login')

    did not return anything, so I had to override that value with plain text in the template. This is not the only page that is failing, all of the messageStack output calls are not happy.

    Thanks much

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: messageStack output not returning value sitewide

    There are no admin settings for messageStack operation. If it's not working properly, then you've broken your code somewhere, often via a bad template, or PHP errors caused by syntax errors when altering code.
    This is the best approach: http://www.zen-cart.com/wiki/index.p...Obscure_Issues
    This may be useful too: https://www.zen-cart.com/tutorials/index.php?article=82
    .

    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.

  3. #3
    Join Date
    Jul 2010
    Posts
    6
    Plugin Contributions
    0

    Default Re: messageStack output not returning value sitewide

    I opted to add additional logging to the messageStack functions themselves to see if the add() and output() methods were returning useful data. I used the following statement to output the arrays where the messages were being stored (in the respective functions):

    error_log(print_r($theAlert, true), 0);

    error_log(print_r($output, true), 0);

    So, indeed I was getting the correct array information and errors were being logged (error_log writes to your /cache directory at this point). That led me immediately to the tpl_message_stack_default.php file in which I had commented out the return logic so that the client would be happy while Authorize net was in testing mode.

    Removed my local copy of the edited file and error messages are now appearing. Fantastic.

    Likely doing a diff comparison of the entire directories would have eventually led me to this conclusion.

    Thanks much Dr. Byte

    Patrick

 

 

Similar Threads

  1. my messageStack output 2 times, how to fix?
    By linjuming in forum General Questions
    Replies: 0
    Last Post: 14 Mar 2013, 11:17 AM
  2. v150 Is this a bug in v1.50? orders_total doesn't output "text" but "value"
    By inception in forum General Questions
    Replies: 10
    Last Post: 10 Sep 2012, 05:38 AM
  3. Replies: 1
    Last Post: 30 Oct 2009, 05:46 PM
  4. how do I relocate messagestack output?
    By bigjoed in forum General Questions
    Replies: 4
    Last Post: 25 Apr 2008, 07:53 AM
  5. No messageStack output at all
    By ericpeng in forum General Questions
    Replies: 5
    Last Post: 2 Mar 2007, 07:55 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