Title: BUG
Last modified: December 18, 2017

---

# BUG

 *  Resolved [gladiator121](https://wordpress.org/support/users/gladiator121/)
 * (@gladiator121)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/bug-207/)
 * Hello ,
 * The plugin have a serious problem which is it losing characters in the product’s
   name.
    Here is an example to improve your understanding I have entered a product’s
   name with this : Gold Standard 100% Whey Optimum
 * But sadly to inform you sir , that an unknown bug causes to lose a character 
   from this name.
    I got this Gold Standard 100% Whey Optimu
 * we can easily notice that the Character M from the last word.
    also Its important
   to include that the allowed count of characters in zap policy is until 40, which
   means that im allowed to enter a name that contains 40 character without any 
   problem.
 * Here im levaing a link for the XML mirror Page.
    [https://gladiatorr.net/zap-mirror-page/](https://gladiatorr.net/zap-mirror-page/)

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Plugin Author [Ido Friedlander](https://wordpress.org/support/users/idofri/)
 * (@idofri)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/bug-207/#post-9792678)
 * Hi,
 * Do you have any technical reference indicating that the limit is 40 and not 30
   chars?
    I used to follow these instructions: [http://img.zap.co.il/PDFs/ZapTechnicalRequirements.pdf](http://img.zap.co.il/PDFs/ZapTechnicalRequirements.pdf)
 * BTW, since version 1.3 you could easily bypass these saved-settings using filter-
   hooks.
 * Regards,
    Ido
    -  This reply was modified 8 years, 5 months ago by [Ido Friedlander](https://wordpress.org/support/users/idofri/).
 *  Thread Starter [gladiator121](https://wordpress.org/support/users/gladiator121/)
 * (@gladiator121)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/bug-207/#post-9792725)
 * Yes I have contacted them due that , And I have been answered that the allowed
   is 40.
    I can easily prove that for you by taking a look at some of products 
   listed in zap.
 * here is a link for a product that contains
    [http://www.zap.co.il/search.aspx?keyword=elite+dymatize](http://www.zap.co.il/search.aspx?keyword=elite+dymatize)
   [http://www.zap.co.il/model.aspx?modelid=917729](http://www.zap.co.il/model.aspx?modelid=917729)
 * Iam sorry but i just did not understand what you mean by ” bypass these saved-
   settings using filter-hooks”
 *  Thread Starter [gladiator121](https://wordpress.org/support/users/gladiator121/)
 * (@gladiator121)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/bug-207/#post-9792785)
 * Also I would like to attach an Image of the recent email that I have received
   from zap team.
 * [http://tinypic.com/r/9ad6iw/9](http://tinypic.com/r/9ad6iw/9)
 *  Plugin Author [Ido Friedlander](https://wordpress.org/support/users/idofri/)
 * (@idofri)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/bug-207/#post-9795107)
 * Hi,
 * I’ll add this modification to plugin’s next version.
    In the meanwhile, you could
   bypass this setting by adding this filter-hook in your theme’s functions.php 
   file:
 *     ```
       add_action( 'wc_zap_mirror_xml_node', function( &$node, $product ) {
       	$node->PRODUCT_NAME = $product->get_name();
       }, 10, 2 );
       ```
   
 *  Thread Starter [gladiator121](https://wordpress.org/support/users/gladiator121/)
 * (@gladiator121)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/bug-207/#post-9795444)
 * Can you please explain more which class should i this method ? I have some of
   abilities of coding but defentily not as same as you , Give some of tips which
   class and where especially should i have add this function , I cannot find functions.
   php file.
    Thanks
 *  Thread Starter [gladiator121](https://wordpress.org/support/users/gladiator121/)
 * (@gladiator121)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/bug-207/#post-9795470)
 * I have found the class functions.php in my theme folder , but every time i add
   this code , my website got crashed and doesn’t run properly.
 * Can you please explain where should this method/code have to be added in ?
 *  Plugin Author [Ido Friedlander](https://wordpress.org/support/users/idofri/)
 * (@idofri)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/bug-207/#post-9795476)
 * `Fatal error: Call-time pass-by-reference has been removed; If you would like
   to pass argument by reference, modify the declaration of add_action(). in /home3/
   gladiator/public_html/wp-includes/functions.php on line 153`
 * I said your theme’s functions.php, that’s not the right file.
    You should really
   avoid coding if you’re not sure what you’re doing.
 * Your file should be under:
    `/public_html/wp-content/themes/cardio/functions.
   php`
    -  This reply was modified 8 years, 5 months ago by [Ido Friedlander](https://wordpress.org/support/users/idofri/).
 *  Thread Starter [gladiator121](https://wordpress.org/support/users/gladiator121/)
 * (@gladiator121)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/bug-207/#post-9795541)
 * You are right.
    I have found the right file and i have added this code but it
   doesn’t do any thing.
 * here is a screenshot : [http://tinypic.com/r/68zwo7/9](http://tinypic.com/r/68zwo7/9)
 * it still keeps the limits until 30 chars.
 *  Plugin Author [Ido Friedlander](https://wordpress.org/support/users/idofri/)
 * (@idofri)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/bug-207/#post-9795628)
 * You kinda missed the purpose of this filter-hook.
    Nevermind that, Just remove
   it and upgrade to version 1.3.6.
 *  Thread Starter [gladiator121](https://wordpress.org/support/users/gladiator121/)
 * (@gladiator121)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/bug-207/#post-9795989)
 * It’s alright now , Alot of thanks for you. It was a pleasure for me to contact
   with you sir. Have a good day in Israel 🙂
 *  Plugin Author [Ido Friedlander](https://wordpress.org/support/users/idofri/)
 * (@idofri)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/bug-207/#post-9799012)
 * 👍

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘BUG’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woo-zap-mirror.svg)
 * [Mirror Zap for WooCommerce](https://wordpress.org/plugins/woo-zap-mirror/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-zap-mirror/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-zap-mirror/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-zap-mirror/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-zap-mirror/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-zap-mirror/reviews/)

 * 11 replies
 * 2 participants
 * Last reply from: [Ido Friedlander](https://wordpress.org/support/users/idofri/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/bug-207/#post-9799012)
 * Status: resolved