Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jul 2006
    Posts
    4
    Plugin Contributions
    0

    Default Paypal Sessions Viewer Error

    I'm getting this messagae when using the module "Paypal Sessions Viewer":

    Catchable fatal error: Object of class shoppingCart could not be converted to string in /home/.harold/jimharrison/store.jimharrison.com/admin/view_stuck_paypal_orders.php on line 71

    Any tips? Thanks.

    Wes

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Paypal Sessions Viewer Error

    The suggestion in this post might help:
    http://www.zen-cart.com/forum/showpo...52&postcount=1

    Make a backup of the mentioned file before editing, just in case.
    .

    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 2006
    Posts
    4
    Plugin Contributions
    0

    Default Re: Paypal Sessions Viewer Error

    I'd love to try that fix but I don't know enough php to know what from that suggestion would apply to the file I'm getting the error with.

    I tried changing in the functions_general.php file but since that's not the file I'm getting the error with, it did nothing to fix the problem.

    Here's the file reporting the error:

    Code:
    <?php
    //
    // +----------------------------------------------------------------------+
    // |zen-cart Open Source E-commerce                                       |
    // +----------------------------------------------------------------------+
    // | Copyright (c) 2003 The zen-cart developers                           |
    // |                                                                      |
    // | http://www.zen-cart.com/index.php                                    |
    // |                                                                      |
    // | Portions Copyright (c) 2003 osCommerce                               |
    // | Portions may be Copyright (c) 2004 DevosC.com                       |
    // |                                                                      |
    // +----------------------------------------------------------------------+
    // | This source file is subject to version 2.0 of the GPL license,       |
    // | that is bundled with this package in the file LICENSE, and is        |
    // | available through the world-wide-web at the following url:           |
    // | http://www.zen-cart.com/license/2_0.txt.                             |
    // | If you did not receive a copy of the zen-cart license and are unable |
    // | to obtain it through the world-wide-web, please send a note to       |
    // | [email protected] so we can mail you a copy immediately.          |
    // +----------------------------------------------------------------------+
    //  $Id: DEBUG_Paypal_session_list.php 1002 2005-02-11 20:34:18Z drbyte $
    //
    
      require('includes/application_top.php');
    
    ?>
    <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html <?php echo HTML_PARAMS; ?>>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
    <title><?php echo TITLE; ?></title>
    <link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
    <link rel="stylesheet" type="text/css" href="includes/cssjsmenuhover.css" media="all" id="hoverJS">
    <script language="javascript" src="includes/menu.js"></script>
    <script language="javascript" src="includes/general.js"></script>
    <script type="text/javascript">
      <!--
      function init()
      {
        cssjsmenu('navbar');
        if (document.getElementById)
        {
          var kill = document.getElementById('hoverJS');
          kill.disabled = true;
        }
      }
      // -->
    </script>
    </head>
    <body onload="init()">
    <!-- header //-->
    <?php require(DIR_WS_INCLUDES . 'header.php'); ?>
    <!-- header_eof //-->
    
    <!-- body //-->
    <?php
    
    $session_post = (isset($_GET['Session_ID'])) ? $_GET['Session_ID'] : '';
    $sql = "select * from " . TABLE_PAYPAL_SESSION ;
    $sql .= ($session_post=='') ? '' : " where session_id = '" . $_GET['Session_ID'] . "'";
    //echo 'SQL='.$sql.'<br />';
    $stored_sessions = $db->Execute($sql);
    $records = $stored_sessions->RecordCount();
    if ($records > 0) {
    echo 'Displaying '.$records.' records...';
    while (!$stored_sessions->EOF) {
      $_SESSION = unserialize(base64_decode($stored_sessions->fields['saved_session']));
      echo '<br /><u><font color=blue>PAYPAL SESSION INFO for record #'.$stored_sessions->fields['unique_id'].'</font>, which expires on '.$stored_sessions->fields['expiry'].'</u><br /><strong>Session_ID='.$stored_sessions->fields['session_id'].'</strong><br />';
      foreach($_SESSION as $key=>$value) { 
        echo "<strong>$key</strong> => <em>$value</em><br />"; 
          if (is_array($value) || is_object($value)) {
            foreach($value as $key2=>$value2) { 
              echo "&nbsp;&nbsp;&nbsp;&nbsp;<strong>$key2</strong> => <em>$value2</em><br />"; 
              if (is_array($value2) || is_object($value2)) {
                foreach($value2 as $key3=>$value3) { 
                  echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>$key3</strong> => <em>$value3</em><br />"; 
                  if (is_array($value3) || is_object($value3)) {
                    foreach($value3 as $key4=>$value4) { 
                      echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>$key4</strong> => <em>$value4</em><br />"; 
                      if (is_array($value4) || is_object($value4)) {
                        foreach($value4 as $key5=>$value5) { 
                          echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>$key5</strong> => <em>$value5</em><br />"; 
    if (is_array($value5) || is_object($value5)) echo '<font color=red>MORE</font>';
    
                        }
                        } elseif( is_a( $value, 'queryFactoryResult' ) ) {
          if (sizeof($value->result) > 0) {
            return true;
          } else {
            return false;
          }
                      }
                    }
                  }
                }
              }
            }
          }
      } 
      echo '--------------------------------------<br /><strong>Raw version:</strong><br />';
      print_r($_SESSION);
      echo '<br /><br />===========================================================<br />';
      $stored_sessions->MoveNext();
    }//end while
      echo '-------------------------------------------------------<br />END OF INFO';
    } else {
      echo '<br /><br />No records to display.<br />';
    }//endif $records > 0
    ?>
    <!-- body_eof //-->
    
    <!-- footer //-->
    <?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
    <!-- footer_eof //-->
    </body>
    </html>
    <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

  4. #4
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Paypal Sessions Viewer Error

    Try this for the file contents instead:
    Code:
    <?php
    //
    // +----------------------------------------------------------------------+
    // |zen-cart Open Source E-commerce                                       |
    // +----------------------------------------------------------------------+
    // | Copyright (c) 2003 The zen-cart developers                           |
    // |                                                                      |
    // | http://www.zen-cart.com/index.php                                    |
    // |                                                                      |
    // | Portions Copyright (c) 2003 osCommerce                               |
    // | Portions may be Copyright (c) 2004 DevosC.com                       |
    // |                                                                      |
    // +----------------------------------------------------------------------+
    // | This source file is subject to version 2.0 of the GPL license,       |
    // | that is bundled with this package in the file LICENSE, and is        |
    // | available through the world-wide-web at the following url:           |
    // | http://www.zen-cart.com/license/2_0.txt.                             |
    // | If you did not receive a copy of the zen-cart license and are unable |
    // | to obtain it through the world-wide-web, please send a note to       |
    // | [email protected] so we can mail you a copy immediately.          |
    // +----------------------------------------------------------------------+
    //  $Id: DEBUG_Paypal_session_list.php 1002 2005-02-11 20:34:18Z drbyte $
    //
    
      require('includes/application_top.php');
    
    ?>
    <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html <?php echo HTML_PARAMS; ?>>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
    <title><?php echo TITLE; ?></title>
    <link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
    <link rel="stylesheet" type="text/css" href="includes/cssjsmenuhover.css" media="all" id="hoverJS">
    <script language="javascript" src="includes/menu.js"></script>
    <script language="javascript" src="includes/general.js"></script>
    <script type="text/javascript">
      <!--
      function init()
      {
        cssjsmenu('navbar');
        if (document.getElementById)
        {
          var kill = document.getElementById('hoverJS');
          kill.disabled = true;
        }
      }
      // -->
    </script>
    </head>
    <body onload="init()">
    <!-- header //-->
    <?php require(DIR_WS_INCLUDES . 'header.php'); ?>
    <!-- header_eof //-->
    
    <!-- body //-->
    <?php
    
    $session_post = (isset($_GET['Session_ID'])) ? $_GET['Session_ID'] : '';
    $sql = "select * from " . TABLE_PAYPAL_SESSION ;
    $sql .= ($session_post=='') ? '' : " where session_id = '" . $_GET['Session_ID'] . "'";
    //echo 'SQL='.$sql.'<br />';
    $stored_sessions = $db->Execute($sql);
    $records = $stored_sessions->RecordCount();
    if ($records > 0) {
    echo 'Displaying '.$records.' records...';
    while (!$stored_sessions->EOF) {
      $SESSINFO = unserialize(base64_decode($stored_sessions->fields['saved_session']));
      if (isset($SESSINFO['navigation'])) unset($SESSINFO['navigation']);
      echo '<br /><u><font color=blue>PAYPAL SESSION INFO for record #'.$stored_sessions->fields['unique_id'].'</font>, which expires on '.$stored_sessions->fields['expiry'].'</u><br /><strong>Session_ID='.$stored_sessions->fields['session_id'].'</strong><br />';
      echo '<pre>' . print_r($SESSINFO, true) . '</pre>';
      echo '<br /><br />===========================================================<br />';
      $stored_sessions->MoveNext();
    }//end while
      echo '-------------------------------------------------------<br />END OF INFO';
    } else {
      echo '<br /><br />No records to display.<br />';
    }//endif $records > 0
    ?>
    <!-- body_eof //-->
    
    <!-- footer //-->
    <?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
    <!-- footer_eof //-->
    </body>
    </html>
    <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
    .

    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.

  5. #5
    Join Date
    Jul 2006
    Posts
    4
    Plugin Contributions
    0

    Default Re: Paypal Sessions Viewer Error

    Brilliant!

    Thank you VERY much... That took care of the error.

    Wes

  6. #6
    Join Date
    May 2007
    Posts
    10
    Plugin Contributions
    0

    Default Re: Paypal Sessions Viewer Error

    DrByte

    I have just downloaded and installed your "Paypal Sessions Viewer" add on and it is giving me a fatal error as well.

    Here is the error;

    Displaying 100 records...
    PAYPAL SESSION INFO for record #1, which expires on 1147940832
    Session_ID=c7275ed7944dffd6188583a3bf8ba044
    customers_host_address => 203-206-239-7.dyn.iinet.net.au
    cartID =>

    Catchable fatal error: Object of class shoppingCart could not be converted to string in /home/directco/public_html/adminfolder/view_stuck_paypal_orders.php on line 71


    I have overwritten the file with the changes you advised the other member in this forum, but it still comes up with the same error.

    I am using V1.3.7 which was upgraded from a fresh install of V1.2.5.

    I have seen mentioned on the forums about a version 2 of the "Paypal Sessions Viewer" but I can't find it anywhere.

    In the notes on the download page it mentions if you have renamed your admin folder then you need to make a change to the file pushorder.php. I have renamed the admin folder, but I cannot see the pushorder.php file in your download?

    Could you give me some ideas on what might be going wrong and how to fix it.

    cheers

    One other thing I forgot to mention, after I get this error I have to log back into the admin area????
    Last edited by bradelaide; 30 Nov 2007 at 01:46 AM. Reason: forgot to mention

  7. #7
    Join Date
    May 2007
    Posts
    10
    Plugin Contributions
    0

    Default Re: Paypal Sessions Viewer Error

    Ok that's weird it appears to be working now?????

    it is just displaying the info as Array's flowing way down the page ... 100 results .. is this what it should be doing.

    It's gonna take a while to sort through them.

  8. #8
    Join Date
    Jul 2007
    Posts
    132
    Plugin Contributions
    0

    Default Re: Paypal Sessions Viewer Error

    DrByte

    Any way you can help me too

    I am using v2.0 and having the same error

    Catchable fatal error: Object of class shoppingCart could not be converted to string in /hsphere/[...]/admin/view_stuck_paypal_orders.php on line 88

    here is the code

    Code:
    <?php
    
    
    
    
    //
    // +----------------------------------------------------------------------+
    // |zen-cart Open Source E-commerce                                       |
    // +----------------------------------------------------------------------+
    // | Copyright (c) 2003 The zen-cart developers                           |
    // |                                                                      |
    // | http://www.zen-cart.com/index.php                                    |
    // |                                                                      |
    // | Portions Copyright (c) 2003 osCommerce                               |
    // | Portions may be Copyright (c) 2004 DevosC.com                       |
    // |                                                                      |
    // +----------------------------------------------------------------------+
    // | This source file is subject to version 2.0 of the GPL license,       |
    // | that is bundled with this package in the file LICENSE, and is        |
    // | available through the world-wide-web at the following url:           |
    // | http://www.zen-cart.com/license/2_0.txt.                             |
    // | If you did not receive a copy of the zen-cart license and are unable |
    // | to obtain it through the world-wide-web, please send a note to       |
    // | [email protected] so we can mail you a copy immediately.          |
    // +----------------------------------------------------------------------+
    //  $Id: DEBUG_Paypal_session_list.php 1002 2005-02-11 20:34:18Z drbyte $
    //
    
      require('includes/application_top.php');
    $secret = PAYPAL_SECRET_WORD;
    ?>
    <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html <?php echo HTML_PARAMS; ?>>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
    <title><?php echo TITLE; ?></title>
    <link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
    <link rel="stylesheet" type="text/css" href="includes/cssjsmenuhover.css" media="all" id="hoverJS">
    <script language="javascript" src="includes/menu.js"></script>
    <script language="javascript" src="includes/general.js"></script>
    <script type="text/javascript">
      <!--
      function init()
      {
        cssjsmenu('navbar');
        if (document.getElementById)
        {
          var kill = document.getElementById('hoverJS');
          kill.disabled = true;
        }
      }
      // -->
    </script>
    </head>
    <body onload="init()">
    <!-- header //-->
    <?php require(DIR_WS_INCLUDES . 'header.php'); ?>
    <!-- header_eof //-->
    
    <!-- body //-->
    <?php
    
    $session_post = (isset($_GET['Session_ID'])) ? $_GET['Session_ID'] : '';
    $sql = "select * from " . TABLE_PAYPAL_SESSION . " ORDER BY unique_id DESC";
    $sql .= ($session_post=='') ? '' : " where session_id = '" . $_GET['Session_ID'] . "'";
    
    $stored_sessions = $db->Execute($sql);
    $records = $stored_sessions->RecordCount();
    if ($records > 0) {
    echo 'Displaying '.$records.' records...';
    while (!$stored_sessions->EOF) {
      $mysess = unserialize(base64_decode($stored_sessions->fields['saved_session']));
    
      
      
      echo '<br /><u><font color=blue>PAYPAL SESSION INFO for record #'.$stored_sessions->fields['unique_id'].'</font>, which expires on '.$stored_sessions->fields['expiry'].'</u><br /><strong>Session_ID='.$stored_sessions->fields['session_id'].'</strong><br />';
    
    echo "<form action=/pushorder.php method=GET>\n";
    echo "<input type=hidden name=secret value=\"$secret\">"; // you can change this here and in pushorder.php for a little more security
    echo "<input type=hidden name=id value=\"".$stored_sessions->fields['session_id']."\">\n";
    echo "<input type=submit value=\"Move to Orders database\">\n";
    
    echo "</form><BR>";
    
      
      foreach($mysess as $key=>$value) { 
      if ($key != "cart" && $key != "customer_id" && $key != "customer_first_name") { continue; }
        echo "<strong>$key</strong> => <em>$value</em><br />"; 
          if (is_array($value) || is_object($value)) {
            foreach($value as $key2=>$value2) { 
              echo "&nbsp;&nbsp;&nbsp;&nbsp;<strong>$key2</strong> => <em>$value2</em><br />"; 
              if (is_array($value2) || is_object($value2)) {
                foreach($value2 as $key3=>$value3) { 
                  echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>$key3</strong> => <em>$value3</em><br />"; 
                  if (is_array($value3) || is_object($value3)) {
                    foreach($value3 as $key4=>$value4) { 
                      echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>$key4</strong> => <em>$value4</em><br />"; 
                      if (is_array($value4) || is_object($value4)) {
                        foreach($value4 as $key5=>$value5) { 
                          echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>$key5</strong> => <em>$value5</em><br />"; 
    if (is_array($value5) || is_object($value5)) echo '<font color=red>MORE</font>';
                        }
                      }
                    }
                  }
                }
              }
            }
          }
      } 
     // echo '--------------------------------------<br /><strong>Raw version:</strong><br />';
      //print_r($mysess);
      echo '<br /><br />===========================================================<br />';
      $stored_sessions->MoveNext();
    }//end while
      echo '-------------------------------------------------------<br />END OF INFO';
    } else {
      echo '<br /><br />No records to display.<br />';
    }//endif $records > 0
    ?>
    <!-- body_eof //-->
    
    <!-- footer //-->
    <?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
    <!-- footer_eof //-->
    </body>
    </html>
    <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

  9. #9
    Join Date
    May 2007
    Posts
    10
    Plugin Contributions
    0

    Default Re: Paypal Sessions Viewer Error

    NullMind,

    My problem was that I had uploaded a file into the wrong spot. I can't remember exactly which file it was but i had put it into my CUSTOM folder instead of the original folder required by the module.

    So all I can really suggest is that you check all of the Paypal Sessions Viewer files are in the exact folders required.

    I hope this helps.

    Cheers

  10. #10
    Join Date
    Oct 2005
    Posts
    273
    Plugin Contributions
    0

    Default Re: Paypal Sessions Viewer Error

    How do i use the viewer to understand what was ordered?
    Thanks,
    KWW

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. PayPal Sessions viewer error
    By splishsplashbb in forum Addon Payment Modules
    Replies: 0
    Last Post: 14 Jul 2008, 05:50 AM
  2. PayPal Sessions Viewer 2.0
    By Spinner in forum All Other Contributions/Addons
    Replies: 17
    Last Post: 12 Jun 2008, 05:01 PM
  3. Paypal Sessions Viewer
    By seobb in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 23 Apr 2008, 04:17 AM
  4. Paypal Sessions viewer
    By keystonewebworks in forum General Questions
    Replies: 0
    Last Post: 16 Mar 2008, 05:05 AM
  5. Paypal Sessions Viewer
    By digidiva-kathy in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 3 Dec 2006, 09:43 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