Jump to content

Claudia M

Member
  • Posts

    847
  • Joined

  • Last visited

  • Days Won

    13

Posts posted by Claudia M

  1. I thought this was fixed in CC or did I miss something?  When I look at my page source I find this:

    NOTE: Store Name Claudia’s Bargains  - showing in page source as Claudia's Bargains

     

    HOMEPAGE

    <meta name="description" content="Antiques, Vintage and Collectibles - We search yard sales, estate sales, flea markets, auctions and attics to find items you didn&#39;t know you were looking for">

     

    CONTACT PAGE

          <meta name="description" content="Claudia&#39;s Bargains Collectibles and More Shop. We search yard sales, estate sales, flea markets, auctions and attics to find items you didn&#39;t know you were looking for. Toss in some brand new items and some handcrafted creations and the mix is complete!">

     

    Claudia

  2. The "Find" line doesn't read the same as what you say:

    My Line reads:

    $error = "[<strong>".$type."</strong>] \t".$error_file.":".$error_line." - ".$error_string;
            $this->_errors[] = $error;

            if($log) {
                $this->_writeErrorLog($error, $type);
            }

    Also I got an error, [11-Sep-2017 15:14:46 UTC] PHP Parse error:  syntax error, unexpected 'public' (T_PUBLIC) in /home/claudias/public_html/classes/debug.class.php on line 467, and the website and admin would not load. But when I put a } after the "Change to" it worked. Is that OK? Or am I going to get problems down the road.

    Find:
    		$error = "[<strong>".$type."</strong>] \t".htmlentities(strip_tags($error_file.":".$error_line." - ".$error_string));
    		$this->_errors[] = $error;
    			$this->_writeErrorLog($error, $type);
    		}
    
    Then find:
    		return false;
    
    Change to:
    		return ($this->_suppress_php_notices && $type == 'Notice') ? true : false; // See PHP manual for set_error_handler() callback function return value
  3. Brian,

    Part of your code changes read:

     

    Find:

                                  $error = "[<strong>".$type."</strong>] \t".htmlentities(strip_tags($error_file.":".$error_line." - ".$error_string));

                                  $this->_errors[] = $error;

                                                 $this->_writeErrorLog($error, $type);

                                  }

     

    Then find:

                                  return false;

     

    Change to:

                                  return ($this->_suppress_php_notices && $type == 'Notice') ? true : false; // See PHP manual for set_error_handler() callback function return value

     

    MY QUESTION

    Am I suppose to change all the “find  and then find” code to the following:  Or was there a “change to” missing after the first “find”

     

    return ($this->_suppress_php_notices && $type == 'Notice') ? true : false; // See PHP manual for set_error_handler() callback function return value

    }

     

    Thanks,

    Claudia

  4. Thanks for looking into this Brian.

    1. By error log I mean the one in CPanel.   The "error_log" file that PHP creates.

    2. Sorry .. didn't mean to include this one. Daren is looking into it:

    This is interesting. Something really outside the bounds of the normal sequence of events must have happened.

    curl_setopt(): Disabling safe uploads is no longer supported

    You will need to get with SemperFi and get an updated version of the "Automatic Social Media Posts" plugin.

    3. This one is because I don't use the sorting method that comes with CubeCart.  I sort by newly listed or by Daren's mod Custom Product Sort. 

    Security Warning: Illegal array key &quot;sort%5Bdate_added%5D&quot; was detected and was removed

    4. I don't know what this is

    [07-Sep-2017 13:59:57 America/Louisville] PHP Warning:  No customer information detected. Order summary was not built or inserted. in /home/claudias/public_html/classes/order.class.php on line 1170

    Whatever you think I can have removed from the error log safely I'd like the code to do it.  It's really annoying getting this large error log.  And I can always put it back if need be.

    Thanks,

    Claudia

  5. So since I updated to 6.1.10 I have gotten these PHP notices, warnings, etc. in my error log – more than once.  Anything here to worry about?  Also, if notices aren’t that big of a deal is there anyway to turn them off so they don’t get reported in the error log?  Or is that a bad idea. Thanks, Claudia

     

    [07-Sep-2017 13:59:57 America/Louisville] PHP Warning:  No customer information detected. Order summary was not built or inserted. in /home/claudias/public_html/classes/order.class.php on line 1170

     

    [07-Sep-2017 18:05:36 UTC] PHP Warning:  Invalid Security Token in /home/claudias/public_html/classes/sanitize.class.php on line 152

     

    [07-Sep-2017 14:19:23 America/Louisville] PHP Warning:  Invalid argument supplied for foreach() in /home/claudias/public_html/classes/ajax.class.php on line 143

     

    [07-Sep-2017 14:21:43 America/Louisville] PHP Warning:  curl_setopt() [&lt;a href='http://docs.php.net/manual/en/function.curl-setopt.php'&gt;function.curl-setopt.php&lt;/a&gt;]: Disabling safe uploads is no longer supported in /home/claudias/public_html/modules/plugins/SFWS_Automatic_Social_Media_Posts/api/pinterest/src/Pinterest/Utils/CurlBuilder.php on line 53

     

    This warning I got before:  I think it has to do with the way I sort my products. But they sort correctly so I don’t bother with it

    [07-Sep-2017 18:54:39 UTC] PHP Warning:  Security Warning: Illegal array key &quot;sort%5Bdate_added%5D&quot; was detected and was removed. in /home/claudias/public_html/classes/sanitize.class.php on line 113

     

    [07-Sep-2017 11:34:39 America/Louisville] PHP Notice:  Undefined variable: title in

    /home/claudias/public_html/classes/seo.class.php on line 506

     

    [07-Sep-2017 11:55:11 America/Louisville] PHP Notice:  Undefined index:  in

    /home/claudias/public_html/classes/catalogue.class.php on line 314

     

    [07-Sep-2017 12:13:04 America/Louisville] PHP Notice:  Undefined index: billing_address in /home/claudias/public_html/classes/cubecart.class.php on line 1130

     

    [07-Sep-2017 12:13:04 America/Louisville] PHP Notice:  Undefined index: delivery_address in /home/claudias/public_html/classes/cubecart.class.php on line 1133

     

    [07-Sep-2017 16:57:19 UTC] PHP Notice:  Undefined index: HTTP_USER_AGENT in /home/claudias/public_html/classes/session.class.php on line 599

     

    [07-Sep-2017 17:57:16 UTC] PHP Notice:  Undefined variable: stock_warning in /home/claudias/public_html/classes/cart.class.php on line 405

     

    [07-Sep-2017 13:57:16 America/Louisville] PHP Notice:  Undefined index: billing_address in /home/claudias/public_html/classes/cart.class.php on line 810

     

    [07-Sep-2017 13:57:19 America/Louisville] PHP Notice:  Undefined index: billing_address in /home/claudias/public_html/classes/cubecart.class.php on line 601

     

    [07-Sep-2017 13:57:19 America/Louisville] PHP Notice:  Undefined index: delivery_address in /home/claudias/public_html/classes/cubecart.class.php on line 633

     

    [07-Sep-2017 13:57:19 America/Louisville] PHP Notice:  Undefined index: coupons in /home/claudias/public_html/classes/cubecart.class.php on line 1595

     

    [07-Sep-2017 13:57:20 America/Louisville] PHP Notice:  Undefined index: free_coupon_shipping in /home/claudias/public_html/classes/cubecart.class.php on line 1619

     [07-Sep-2017 13:57:20 America/Louisville] PHP Notice:  Undefined index: gateway in /home/claudias/public_html/classes/cubecart.class.php on line 1731

     

    [07-Sep-2017 13:57:20 America/Louisville] PHP Notice:  Undefined index: base_folder in /home/claudias/public_html/classes/cubecart.class.php on line 2117

     

    [07-Sep-2017 13:57:20 America/Louisville] PHP Notice:  Undefined index: scope in /home/claudias/public_html/classes/cubecart.class.php on line 2128

     

     [07-Sep-2017 13:59:57 America/Louisville] PHP Notice:  Undefined index: retrieve in /home/claudias/public_html/classes/order.class.php on line 577

     

    [07-Sep-2017 13:59:57 America/Louisville] PHP Notice:  Undefined index: options_identifier in /home/claudias/public_html/classes/order.class.php on line 1102

     

    [07-Sep-2017 13:59:57 America/Louisville] PHP Notice:  Undefined index: options in /home/claudias/public_html/classes/order.class.php on line 1117

     

    [07-Sep-2017 13:59:57 America/Louisville] PHP Notice:  Undefined index: bml in /home/claudias/public_html/modules/plugins/PayPal_Pro/hooks/class.cubecart.construct.gateway.php on line 22

     

    [07-Sep-2017 13:59:57 America/Louisville] PHP Notice:  Undefined variable: inline in /home/claudias/public_html/modules/plugins/PayPal_Pro/hooks/class.cubecart.construct.gateway.php on line 24

     

    [07-Sep-2017 13:59:59 America/Louisville] PHP Notice:  Undefined index: L_ERRORCODE0 in /home/claudias/public_html/modules/plugins/PayPal_Pro/website_payments_pro.class.php on line 456

     

    [07-Sep-2017 14:03:12 America/Louisville] PHP Notice:  Undefined variable: lang in /home/claudias/public_html/modules/plugins/PayPal_Pro/hooks/class.cubecart.construct.confirm.php on line 38

     

    [07-Sep-2017 14:03:12 America/Louisville] PHP Notice:  Undefined index: PAYMENTREQUEST_0_SHIPTOSTREET2 in /home/claudias/public_html/modules/plugins/PayPal_Pro/hooks/class.cubecart.construct.confirm.php on line 60

     

    [07-Sep-2017 14:03:12 America/Louisville] PHP Notice:  Undefined variable: customer_id in /home/claudias/public_html/modules/plugins/PayPal_Pro/hooks/class.cubecart.construct.confirm.php on line 86

     

     [07-Sep-2017 14:03:13 America/Louisville] PHP Notice:  Undefined variable: list_checkouts in /home/claudias/public_html/classes/cubecart.class.php on line 1736

     

     [07-Sep-2017 14:05:24 America/Louisville] PHP Notice:  Undefined index: options_identifier in /home/claudias/public_html/classes/cart.class.php on line 1082

     

     [07-Sep-2017 14:05:25 America/Louisville] PHP Notice:  Undefined index: taxes in /home/claudias/public_html/classes/order.class.php on line 299

     

    [07-Sep-2017 14:05:28 America/Louisville] PHP Notice:  Undefined variable: complete in /home/claudias/public_html/classes/order.class.php on line 514

     

    [07-Sep-2017 14:05:31 America/Louisville] PHP Notice:  Undefined index: L_ERRORCODE0 in /home/claudias/public_html/modules/plugins/PayPal_Pro/hooks/class.cubecart.construct.gateway.php on line 37

     

     [07-Sep-2017 18:05:36 UTC] PHP Notice:  Undefined variable: _GET in /home/claudias/public_html/includes/functions.inc.php on line 196

     

    [07-Sep-2017 14:05:38 America/Louisville] PHP Notice:  Undefined index: taxes in /home/claudias/public_html/classes/cubecart.class.php on line 1302

     

    [07-Sep-2017 18:24:16 UTC] PHP Notice:  Undefined index: X-Forwarded-For in /home/claudias/public_html/includes/functions.inc.php on line 527

     

     [07-Sep-2017 20:55:15 UTC] PHP Notice:  Undefined variable: path in /home/claudias/public_html/classes/seo.class.php on line 323

     

    [07-Sep-2017 16:55:15 America/Louisville] PHP Notice:  Undefined variable: sfws_related_products in /home/claudias/public_html/modules/plugins/SFWS_Deluxe_Related_Products/class.deluxe_related_products.php on line 324

     

     [07-Sep-2017 23:14:42 UTC] PHP Notice:  Undefined variable: _GET in /home/claudias/public_html/includes/functions.inc.php on line 196

     

    [08-Sep-2017 02:36:59 America/Louisville] PHP Notice:  Undefined variable: order_string in home/claudias/public_html/classes/catalogue.class.php on line 1928

     

     [08-Sep-2017 07:48:31 UTC] PHP Notice:  Undefined index: HTTP_USER_AGENT in /home/claudias/public_html/classes/session.class.php on line 599

     

     [08-Sep-2017 10:37:54 America/Louisville] PHP Notice:  Undefined index: cat_id in /home/claudias/public_html/classes/cubecart.class.php on line 826

  6.  

    This is what I did to receive copy of eMails sent to the customer but it isn’t working. See below. Any suggestions?

     

    In admin, Manage Hooks, Code Snippets tab, click Add Snippet.

     

    Create 1st Code Snippet

    Enabled: Checked

    Unique ID: classize_mailer@cubecart

    Execution Order: 99

    Description: Class-izes the Mailer instantiation so that it can be seen outside the orderStatus() method.

    Trigger: class.order.order_status

    Version: 1.0

    Author: https://forums.cubecart.com/topic/52330-how-to-add-admin-as-bcc-of-all-customers-order-status-emails/

    PHP Code:

    <?php

    $this->_mailer =& $mailer;

    Save.

     

    Create 2nd Code Snippet.

    Enabled: Checked

    Unique ID: bcc_admin@cubecart

    Execution Order: 99

    Description: BCC's the admins on all customer emails.

    Trigger: class.order.assign_order_details

    Version: 1.0

    Author: https://forums.cubecart.com/topic/52330-how-to-add-admin-as-bcc-of-all-customers-order-status-emails/

    PHP Code:

    <?php

    //$this->_mailer->SMTPDebug = 2;

    //$this->_mailer->Debugoutput = 'error_log';

    $addBCC_notify_admins = explode(',', $this->_notifyAdmins());

    foreach ($addBCC_notify_admins as $admin) {

    $this->_mailer->addBCC($admin);

    }

    Save.

    In /includes/extra I get these 3 snippet files. 

    snippet_3afa312cdc3acf2182d2144a8cfac7be.php

    Contents: 

    <?php

    //$this->_mailer->SMTPDebug = 2;

    //$this->_mailer->Debugoutput = 'error_log';

    $addBCC_notify_admins = explode(',', $this->_notifyAdmins());

    foreach ($addBCC_notify_admins as $admin) {

    $this->_mailer->addBCC($admin);

    }

     

    snippet_5c6632328d5bb207a40e3ef624488c36.php

    Contents:

    <?php

    $this->_mailer =& $mailer;

     

    Then I get this:

    snippet_cc06e51b963dba490472fc2e1a78f5d8.php

    Contents:

    kz۫���zv���j���bwzg������ޕ���ڙ޶��j���k��+(��޶��~)^��������

    (There’s more but I can’t copy it)

  7. This is what I did to BCC the emails.  I did a test after I added it yesterday and it worked -received the email  in Outlook on my PC and on my smartphone email. With today's order I didn't  get an email when I manually changed the order to processing.  Customer did.

    In admin, Manage Hooks, Code Snippets tab, click Add Snippet.

     

    Create 1st Code Snippet

    Enabled: Checked

    Unique ID: classize_mailer@cubecart

    Execution Order: 99

    Description: Class-izes the Mailer instantiation so that it can be seen outside the orderStatus() method.

    Trigger: class.order.order_status

    Version: 1.0

    Author: https://forums.cubecart.com/topic/52330-how-to-add-admin-as-bcc-of-all-customers-order-status-emails/

    PHP Code:

    <?php

    $this->_mailer =& $mailer;

    Save.

     

    Create 2nd Code Snippet.

    Enabled: Checked

    Unique ID: bcc_admin@cubecart

    Execution Order: 99

    Description: BCC's the admins on all customer emails.

    Trigger: class.order.assign_order_details

    Version: 1.0

    Author: https://forums.cubecart.com/topic/52330-how-to-add-admin-as-bcc-of-all-customers-order-status-emails/

    PHP Code:

    <?php

    //$this->_mailer->SMTPDebug = 2;

    //$this->_mailer->Debugoutput = 'error_log';

    $addBCC_notify_admins = explode(',', $this->_notifyAdmins());

    foreach ($addBCC_notify_admins as $admin) {

    $this->_mailer->addBCC($admin);

    }

    Save.

  8. Hi,

    I received an order today paid for thru PayPal Pro (1.1.9).  I received an email from PayPal showing the payment had been paid and it does show up in my PayPal transactions. However, in my admin the order is showing pending and I had to manually update it to processing.  Also, yesterday I added BSmithers code snippet so I receive (bcc) all the customer's emails sent thru CubeCart. I did not receive the customer's email though it does show in the email log it was sent to the customer. Any suggestions?

    Claudia

     

  9. So is this all I do? Reading the post I don't know if it ever worked correctly.

    In admin, Manage Hooks, Code Snippets tab, click Add Snippet.

    Nevermind!  Adding the Code Snippets worked.  Thank You!!

    Enabled: Checked
    Unique ID: classize_mailer@cubecart
    Execution Order: 99
    Description: Class-izes the Mailer instantiation so that it can be seen outside the orderStatus() method.
    Trigger: class.order.order_status
    Version: 1.0
    Author: https://forums.cubecart.com/topic/52330-how-to-add-admin-as-bcc-of-all-customers-order-status-emails/
    PHP Code:
    <?php
    $this->_mailer =& $mailer;

    Save.

    Start another Code Snippet.

    Enabled: Checked
    Unique ID: bcc_admin@cubecart
    Execution Order: 99
    Description: BCC's the admins on all customer emails.
    Trigger: class.order.assign_order_details
    Version: 1.0
    Author: https://forums.cubecart.com/topic/52330-how-to-add-admin-as-bcc-of-all-customers-order-status-emails/
    PHP Code:
    <?php
    //$this->_mailer->SMTPDebug = 2;
    //$this->_mailer->Debugoutput = 'error_log';
    $addBCC_notify_admins = explode(',', $this->_notifyAdmins());
    foreach ($addBCC_notify_admins as $admin) {
    $this->_mailer->addBCC($admin);
    }

    Save.

  10. Hi,

    I use to have coding that would send customer emails to me also.  Now that we have the email log, the emails aren't sent to me.  I would still like the order complete email sent to me as I use this to check for delivery.  Saves time from having to log in to admin .....  I have the tracking link in the email. Can this still be done?

    Thanks in advance,

    Claudia

  11. What caused all my errors was a bot called Baidu.  Business is located in China, but the IP is from Brazil.  This is concerning.   Ian from Havenswift thinks it might be a spider making itself look like it is from Baidu when it actually isn’t. We both read that Baidu does not respect robots. txt, but this may be why.  It isnt Baidu at all !  Anyway, I added the following to my robots.txt.  I’m going to clear my error log and see what happens.  No more errors we know it’s Baidu.  Lots more errors we know it isn’t and .htaccess changes come into play.  Thank you Ian for all your help.

    User-agent: Baiduspider
    Disallow: /

    and

    User-agent: Baiduspider-image
    Disallow: /

    • Like 1
  12. I did find this:  The IP address A LOT!!!  I didn't know who they were so I looked them up.  IP 104.131.50.243 belongs to Digial Ocean, Inc. a cloud service.  Never heard of them.  also that OpenLinkProfiler.org  Don't know about them

    104.131.50.243 - - [10/Jul/2017:18:40:14 +0100] "GET /deer-or-buck-in-the-woods-small-dreamcatcher.html HTTP/1.1" 200 18041 "https://www.claudiasbargains.com/sitemap.html" "Mozilla/5.0 (compatible; spbot/5.0.3; +http://OpenLinkProfiler.org/bot )"

  13. Hi

    I just checked my error log and found thousands of these errors just for today!

    Help please!

    Claudia

     

    [10-Jul-2017 16:02:55 UTC] PHP Warning:  Security Warning: Illegal array key &quot;$Path&quot; was detected and was removed. in /home/claudias/public_html/classes/sanitize.class.php on line 111
    [10-Jul-2017 16:02:55 UTC] PHP Warning:  Security Warning: Illegal array key &quot;$Domain&quot; was detected and was removed. in /home/claudias/public_html/classes/sanitize.class.php on line 111
    [10-Jul-2017 16:02:55 UTC] PHP Warning:  Security Warning: Illegal array key &quot;$Version&quot; was detected and was removed. in /home/claudias/public_html/classes/sanitize.class.php on line 111
    [10-Jul-2017 16:02:55 UTC] PHP Warning:  Security Warning: Illegal array key &quot;$Path&quot; was detected and was removed. in /home/claudias/public_html/classes/sanitize.class.php on line 111
    [10-Jul-2017 16:02:55 UTC] PHP Warning:  Security Warning: Illegal array key &quot;$Domain&quot; was detected and was removed. in /home/claudias/public_html/classes/sanitize.class.php on line 111

     

×
×
  • Create New...