Page 8 of 8 FirstFirst ... 678
Results 71 to 76 of 76
  1. #71
    Join Date
    Mar 2011
    Posts
    93
    Plugin Contributions
    0

    Default Re: "Google Plus One (+1), Facebook Send and Twitter Follow" addon Support

    Quote Originally Posted by Limitless View Post
    Not sure why these errors are now popping up.


    Code:
    [20-Nov-2013 19:10:55] PHP Warning:  simplexml_load_string(): Entity: line 1: parser error : EntityRef: expecting ';' in /common/html_header.php on line 63
    [20-Nov-2013 19:10:55] PHP Warning:  simplexml_load_string(): prop="image" src="images/large/gs/mecgpicmgcgov40n.jpg" alt="Mecgar 1911 .40 S&W in XXXXXXXXXXXX/common/html_header.php on line 63
    [20-Nov-2013 19:10:55] PHP Warning:  simplexml_load_string(): ^ in XXXXXXXXXXXX/common/html_header.php on line 63
    [20-Nov-2013 19:10:55] PHP Warning:  simplexml_load_string(): Entity: line 1: parser error : EntityRef: expecting ';' in XXXXXXXXXXXX/common/html_header.php on line 63
    [20-Nov-2013 19:10:55] PHP Warning:  simplexml_load_string(): 40n.jpg" alt="Mecgar 1911 .40 S&W 8 Standard Nickel" title=" Mecgar 1911 .40 S&W in XXXXXXXXXXXX/common/html_header.php on line 63
    [20-Nov-2013 19:10:55] PHP Warning:  simplexml_load_string(): ^ in XXXXXXXXXXXX/common/html_header.php on line 63
    I can't remember what my error message was, but I added a line before the call to simplexml_load_string. You can try it:

    Code:
    $myImage = zen_get_products_image((int)$_GET['products_id']);
    $myImage = str_replace(" ", "", $myImage);
    $img = simplexml_load_string($myImage);

  2. #72
    Join Date
    Jun 2007
    Posts
    65
    Plugin Contributions
    0

    Default Re: "Google Plus One (+1), Facebook Send and Twitter Follow" addon Support

    Quote Originally Posted by Limitless View Post
    Doesn't look like you modified your templates html_header.php file, but the default one.
    Nope the changes are in my template

  3. #73
    Join Date
    Jan 2012
    Posts
    488
    Plugin Contributions
    0

    Default Re: "Google Plus One (+1), Facebook Send and Twitter Follow" addon Support

    Quote Originally Posted by kamion View Post
    I can't remember what my error message was, but I added a line before the call to simplexml_load_string. You can try it:

    Code:
    $myImage = zen_get_products_image((int)$_GET['products_id']);
    $myImage = str_replace(" ", "", $myImage);
    $img = simplexml_load_string($myImage);
    I think that did it.

  4. #74
    Join Date
    Jan 2012
    Posts
    488
    Plugin Contributions
    0

    Default Re: "Google Plus One (+1), Facebook Send and Twitter Follow" addon Support

    Spoke too soon. Same error.

    This is what I have :


    //get defined image or default
    $myImage= zen_get_products_image((int)$_GET['products_id']);
    $price= zen_get_products_base_price((int)$_GET['products_id']);
    $stock= zen_get_products_stock((int)$_GET['products_id']);
    $myImage = str_replace(" ", "", $myImage);
    $img = simplexml_load_string($myImage);
    $img = $img['src'];
    if($this_is_home_page){ $depends = $store_name; $product_type = "website"; }
    else if ($categories_name){ $depends = $categories_name; $product_type = "website"; }
    else if ($products_name){ $depends = $products_name; }
    else { $depends = META_TAG_TITLE; $product_type = "website"; }
    //print_r($product_info_metatags);
    ################# end of AutoOpenGraph ####################

  5. #75
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,296
    Plugin Contributions
    22

    Default Re: "Google Plus One (+1), Facebook Send and Twitter Follow" addon Support

    I tried substituting the lines for the extract but it's a no go - still getting extract() expects parameter 1 to be array for those lines. Has anyone solved this problem?
    The full-time Zen Cart Guru. WizTech4ZC.com

  6. #76
    Join Date
    Nov 2011
    Posts
    121
    Plugin Contributions
    0

    Default Re: "Google Plus One (+1), Facebook Send and Twitter Follow" addon Support

    Is anyone supporting this plugin anymore? If so, please let me know if there is an incompatibility issue with image handler. It seems that none of the functions can pull the product image at all.

 

 
Page 8 of 8 FirstFirst ... 678

Similar Threads

  1. Facebook, Twitter, Google buttons and W3C validation
    By crazysarah in forum General Questions
    Replies: 0
    Last Post: 6 Sep 2012, 10:49 AM
  2. v150 Facebook google plus twitter
    By oitem in forum General Questions
    Replies: 0
    Last Post: 4 Jun 2012, 06:56 PM
  3. Replies: 0
    Last Post: 22 Dec 2011, 12:59 AM
  4. Facebook Sidebox, identifying "profile" and "api"
    By styledata in forum Addon Sideboxes
    Replies: 4
    Last Post: 3 Nov 2011, 08:25 PM
  5. Replies: 1
    Last Post: 22 Aug 2010, 01:16 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