Page 45 of 357 FirstFirst ... 3543444546475595145 ... LastLast
Results 441 to 450 of 3563
  1. #441
    Join Date
    Mar 2005
    Location
    California
    Posts
    663
    Plugin Contributions
    0

    Default Re: Google Base Feeder Support Thread

    I redownloaded 1.61 and compared to 1.60, this time the changes did show up, not sure why they didn't show the first time.

    Anyway, I added the line of code to the function just like you indicated:
    PHP Code:
        function zen_xml_sanitizer ($str) {
            
    $_strip_search = array("![\t ]+$|^[\t ]+!m",'%[\r\n]+%m'); // remove CRs and newlines
            
    $_strip_replace = array('',' ');
            
    $_cleaner_array = array(">" => "> ""®" => """®" => """™" => """™" => """\t" => """    " => "");
            
    $str html_entity_decode($str);
            
    $str strtr($str$_cleaner_array);
            
    $str preg_replace($_strip_search$_strip_replace$str);
            
    $str strip_tags($str);
            
    $str eregi_replace("[^[:alnum:][:space:].,!()'-_/+=?]"""$str);
            
    $str htmlentities($str);
            
    $str htmlspecialchars($str);
            
    //$partial_entity_array = array("quot;", "lt;", "gt;", "amp;", "apos;", "nbsp;", "deg;", "plusmn;", "ordm;", "sect;", "up2;", "circ;", "up3;", "uml;", "acute;", "ordf;", "frac12;");
            //$full_entity_array = array(""", "<", ">", "&", "'", " ", "deg", "+/-", "", "", "^2", "^", "^3", "", "", "", "1/2");
            //$str = str_replace($partial_entity_array, $full_entity_array, $str);
            
    return $str;
        } 
    However, this didn't work. I created the file again and reuploaded and I still get the same error from Google and line 4 still says:
    <title>S&A</title>

    Any other ideas?
    In the meantime, I've manually edited the xml file and changed that line to
    <title>S&amp;A</title>

  2. #442
    Join Date
    Mar 2005
    Location
    California
    Posts
    663
    Plugin Contributions
    0

    Default Re: Google Base Feeder Support Thread

    What exactly does the 'Compress feed file' setting do? Is it supposed to create .zip/.gz file?

    I actually end up with a bigger file if I set this to true.
    If this setting is turned on, file size is 20.08MB. If turned off file size is 18.18MB.

  3. #443
    Join Date
    Feb 2006
    Posts
    588
    Plugin Contributions
    0

    Default Re: Google Base Feeder Support Thread

    I keep getting this Connection failed: uploads.google.com . can anyone tell me whats wrong?

  4. #444
    Join Date
    Apr 2007
    Location
    Vancouver, Canada
    Posts
    1,555
    Plugin Contributions
    70

    Default Re: Google Base Feeder Support Thread

    However, this didn't work. I created the file again and reuploaded and I still get the same error from Google and line 4 still says:
    <title>S&A</title>

    Any other ideas?
    In the meantime, I've manually edited the xml file and changed that line to
    <title>S&amp;A</title>
    Take that line out, it will actually create more bugs than it'll fix. Let's try this instead:

    PHP Code:
        function zen_xml_sanitizer ($str) {
            
    $_strip_search = array("![\t ]+$|^[\t ]+!m",'%[\r\n]+%m'); // remove CRs and newlines
            
    $_strip_replace = array('',' ');
            
    $_cleaner_array = array(">" => "> ""&reg;" => """®" => """&trade;" => """™" => """\t" => """    " => "");
            
    $str html_entity_decode($str);
            
    $str strtr($str$_cleaner_array);
            
    $str preg_replace($_strip_search$_strip_replace$str);
            
    $str strip_tags($str);
            
    $str eregi_replace("[^[:alnum:][:space:].,!()'-_/+=?]"""$str);
            
    $str str_replace('&''&amp;'$str); // changes & to &amp
            
    $str htmlentities($str);
            
    $str str_replace('&amp;amp;''&amp;'$str); // replaces occurences of &amp;amp; with &amp;
        


  5. #445
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Google Base Feeder Support Thread

    did you create the ftp account on google base?
    (you have to create it, even if you have a google base account already)
    Quote Originally Posted by rxalex View Post
    I keep getting this Connection failed: uploads.google.com . can anyone tell me whats wrong?
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  6. #446
    Join Date
    Mar 2005
    Location
    California
    Posts
    663
    Plugin Contributions
    0

    Default Re: Google Base Feeder Support Thread

    Quote Originally Posted by numinix View Post
    Take that line out, it will actually create more bugs than it'll fix. Let's try this instead:

    PHP Code:
        function zen_xml_sanitizer ($str) {
            
    $_strip_search = array("![\t ]+$|^[\t ]+!m",'%[\r\n]+%m'); // remove CRs and newlines
            
    $_strip_replace = array('',' ');
            
    $_cleaner_array = array(">" => "> ""&reg;" => """®" => """&trade;" => """™" => """\t" => """    " => "");
            
    $str html_entity_decode($str);
            
    $str strtr($str$_cleaner_array);
            
    $str preg_replace($_strip_search$_strip_replace$str);
            
    $str strip_tags($str);
            
    $str eregi_replace("[^[:alnum:][:space:].,!()'-_/+=?]"""$str);
            
    $str str_replace('&''&amp;'$str); // changes & to &amp
            
    $str htmlentities($str);
            
    $str str_replace('&amp;amp;''&amp;'$str); // replaces occurences of &amp;amp; with &amp;
        


    Unfortunately, that didn't work either, still getting this on line 4:
    <title>S&A</title>



    Also, with a different file feed from another website I get this error from Google:
    Error Bad data Line #6
    We found a mismatched XML tag. - help

    This is what line 6 has for this file:
    Code:
    <description>Sells fine solid gold jewelry.</description>r-jewelry.com/images/large/gld/r3248_LRG.jpg</g:image_link>
    Any ideas on this other one?

    Thanks.

  7. #447
    Join Date
    Apr 2007
    Location
    Vancouver, Canada
    Posts
    1,555
    Plugin Contributions
    70

    Default Re: Google Base Feeder Support Thread

    Could it be possible that your title is too short??? I think the XML editor is displaying it as &. Try opening with a text editor like notepad and see if it really is & or &amp;

  8. #448
    Join Date
    Feb 2006
    Posts
    588
    Plugin Contributions
    0

    Default Re: Google Base Feeder Support Thread

    Quote Originally Posted by yellow1912 View Post
    did you create the ftp account on google base?
    (you have to create it, even if you have a google base account already)
    Yes I did create the ftp account but get this error any idea?

  9. #449
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Google Base Feeder Support Thread

    The ftp account takes a while to be ready to use. Make sure you can login directly to that ftp server first,
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  10. #450
    Join Date
    Feb 2006
    Posts
    588
    Plugin Contributions
    0

    Default Re: Google Base Feeder Support Thread

    Quote Originally Posted by yellow1912 View Post
    The ftp account takes a while to be ready to use. Make sure you can login directly to that ftp server first,
    Thanks I am able to login though but tried again with adding ftp:// in config still not doing it

    Google Base Feeder v.1.5.3 28.08.2007 10:25 started 2007/09/24 15:44:54
    Feed file - /home/fae/public_html/sun/feed/1800_google_base.xml
    Processing: Feed - No, Upload - Yes
    Upload started...
    Connection failed: ftp://uploads.google.com
    Warning: ftp_connect() [function.ftp-connect]: php_network_getaddresses: getaddrinfo failed: Name or service not known
    Upload failed...

 

 

Similar Threads

  1. v150 Google Merchant Center Feeder for ZC v1.5.x [Support Thread]
    By DivaVocals in forum Addon Admin Tools
    Replies: 504
    Last Post: 19 Nov 2024, 03:50 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