Results 1 to 10 of 39

Hybrid View

  1. #1
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: (10401) order error with one language, other two works fine

    Quote Originally Posted by Nandor View Post
    the result : this error only occurs in hungarian language shopping and
    whats more weird only in case of one category : pendants. Other categories like : rings, personalized, bangles...work well with all three languages!
    Well, that's really narrowed it down. A LOT.

    At a guess, I'd have to say this is being caused by some sort of character encoding issue.. In other words, there is *something* in the hungarian language file(s) that is only being invoked by the pendants category (what makes that so 'special'?).

    I think the way *I'd* be approaching this one would be
    1) Make a backup of the hungarian language files.
    2) Replace the originals, one at a time with the English (or german) files of the same name.
    3) When the problem goes away you'll have identified the file causing the problem.
    4) Restore all the original hungarian files from the backups.

    5. Attempt to identify exactly what is amiss with the file you've identified. The fix will depend on the actual problem (obviously).

    Hopefully this helps.

    Cheers
    Rod

  2. #2
    Join Date
    Sep 2012
    Posts
    104
    Plugin Contributions
    0

    Default Re: (10401) order error with one language, other two works fine

    Quote Originally Posted by RodG View Post
    Well, that's really narrowed it down. A LOT.

    At a guess, I'd have to say this is being caused by some sort of character encoding issue.. In other words, there is *something* in the hungarian language file(s) that is only being invoked by the pendants category (what makes that so 'special'?).

    I think the way *I'd* be approaching this one would be
    1) Make a backup of the hungarian language files.
    2) Replace the originals, one at a time with the English (or german) files of the same name.
    3) When the problem goes away you'll have identified the file causing the problem.
    4) Restore all the original hungarian files from the backups.

    5. Attempt to identify exactly what is amiss with the file you've identified. The fix will depend on the actual problem (obviously).

    Hopefully this helps.

    Cheers
    Rod
    Did you mean the language file php-s? there are a lot. or should i look for them in admin?
    if i replace the one hungarian l. file with an english wont it crash or something?

    thanks
    Nandor

  3. #3
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: (10401) order error with one language, other two works fine

    Quote Originally Posted by Nandor View Post
    Did you mean the language file php-s? there are a lot.
    Yes, thems the ones I meant. Yes, there are a lot.
    Start with the 'obvious' or most likely ones first, namely, those dealing with the PayPal payments.

    Quote Originally Posted by Nandor View Post
    if i replace the one hungarian l. file with an english wont it crash or something?
    No. It will simply display those particular pages in English rather than hungarian.

    If you take a look at the contents of these files, you'll see that they are actually very simple in the way they are structured. They don't contain any actual code (or very little), just a lot of 'defines'.

    These 'defines' will be near identical (other than the actual text component) regardless of the language.

    For example: /languages/english/modules/payment/paypal.php contains:
    ---------------------------------------------------------
    define('MODULE_PAYMENT_PAYPAL_ENTRY_FIRST_NAME', 'First Name:');
    define('MODULE_PAYMENT_PAYPAL_ENTRY_LAST_NAME', 'Last Name:');
    define('MODULE_PAYMENT_PAYPAL_ENTRY_BUSINESS_NAME', 'Business Name:');
    define('MODULE_PAYMENT_PAYPAL_ENTRY_ADDRESS_NAME', 'Address Name:');
    define('MODULE_PAYMENT_PAYPAL_ENTRY_ADDRESS_STREET', 'Address Street:');
    define('MODULE_PAYMENT_PAYPAL_ENTRY_ADDRESS_CITY', 'Address City:');
    define('MODULE_PAYMENT_PAYPAL_ENTRY_ADDRESS_STATE', 'Address State:');
    ------------------------------------------------------------------------

    /languages/hungarian/modules/payment/paypal.php will contain:

    define('MODULE_PAYMENT_PAYPAL_ENTRY_FIRST_NAME', 'First Name (in hungarian) :');
    define('MODULE_PAYMENT_PAYPAL_ENTRY_LAST_NAME', 'Last Name (in hungarian):');
    define('MODULE_PAYMENT_PAYPAL_ENTRY_BUSINESS_NAME', 'Business Name (in hungarian):');
    define('MODULE_PAYMENT_PAYPAL_ENTRY_ADDRESS_NAME', 'Address Name (in hungarian):');
    define('MODULE_PAYMENT_PAYPAL_ENTRY_ADDRESS_STREET', 'Address Street (in hungarian):');
    define('MODULE_PAYMENT_PAYPAL_ENTRY_ADDRESS_CITY', 'Address City (in hungarian):');
    define('MODULE_PAYMENT_PAYPAL_ENTRY_ADDRESS_STATE', 'Address State (in hungarian:');

    --------------------------------------------------------------------------------------

    /languages/binary/modules/payment/paypal.php (should such a language file exist) will contain:

    define('MODULE_PAYMENT_PAYPAL_ENTRY_FIRST_NAME', '00010011000111000');
    define('MODULE_PAYMENT_PAYPAL_ENTRY_LAST_NAME', '11000100011110000');
    define('MODULE_PAYMENT_PAYPAL_ENTRY_BUSINESS_NAME', '101010111100000');

    Note that in all cases, there is the 'english' component (in all upper case). These are a bit like 'placeholders' that is used throughout the zencart code, and then there is the actual text to be used whenever these 'placeholders' are found. If/when you replace the /hungarian/..../paypal.php file with the /english/.../paypal.php file the only difference is the text. Does that make sense?

    I am working on the *assumption* that it is one of these hungarian language files that is causing your problem.

    Cheers
    Rod

  4. #4
    Join Date
    Sep 2012
    Posts
    104
    Plugin Contributions
    0

    Default Re: (10401) order error with one language, other two works fine

    Quote Originally Posted by RodG View Post
    Yes, thems the ones I meant. Yes, there are a lot.
    Start with the 'obvious' or most likely ones first, namely, those dealing with the PayPal payments.



    No. It will simply display those particular pages in English rather than hungarian.

    If you take a look at the contents of these files, you'll see that they are actually very simple in the way they are structured. They don't contain any actual code (or very little), just a lot of 'defines'.

    These 'defines' will be near identical (other than the actual text component) regardless of the language.

    For example: /languages/english/modules/payment/paypal.php contains:
    ---------------------------------------------------------
    define('MODULE_PAYMENT_PAYPAL_ENTRY_FIRST_NAME', 'First Name:');
    define('MODULE_PAYMENT_PAYPAL_ENTRY_LAST_NAME', 'Last Name:');
    define('MODULE_PAYMENT_PAYPAL_ENTRY_BUSINESS_NAME', 'Business Name:');
    define('MODULE_PAYMENT_PAYPAL_ENTRY_ADDRESS_NAME', 'Address Name:');
    define('MODULE_PAYMENT_PAYPAL_ENTRY_ADDRESS_STREET', 'Address Street:');
    define('MODULE_PAYMENT_PAYPAL_ENTRY_ADDRESS_CITY', 'Address City:');
    define('MODULE_PAYMENT_PAYPAL_ENTRY_ADDRESS_STATE', 'Address State:');
    ------------------------------------------------------------------------

    /languages/hungarian/modules/payment/paypal.php will contain:

    define('MODULE_PAYMENT_PAYPAL_ENTRY_FIRST_NAME', 'First Name (in hungarian) :');
    define('MODULE_PAYMENT_PAYPAL_ENTRY_LAST_NAME', 'Last Name (in hungarian):');
    define('MODULE_PAYMENT_PAYPAL_ENTRY_BUSINESS_NAME', 'Business Name (in hungarian):');
    define('MODULE_PAYMENT_PAYPAL_ENTRY_ADDRESS_NAME', 'Address Name (in hungarian):');
    define('MODULE_PAYMENT_PAYPAL_ENTRY_ADDRESS_STREET', 'Address Street (in hungarian):');
    define('MODULE_PAYMENT_PAYPAL_ENTRY_ADDRESS_CITY', 'Address City (in hungarian):');
    define('MODULE_PAYMENT_PAYPAL_ENTRY_ADDRESS_STATE', 'Address State (in hungarian:');

    --------------------------------------------------------------------------------------

    /languages/binary/modules/payment/paypal.php (should such a language file exist) will contain:

    define('MODULE_PAYMENT_PAYPAL_ENTRY_FIRST_NAME', '00010011000111000');
    define('MODULE_PAYMENT_PAYPAL_ENTRY_LAST_NAME', '11000100011110000');
    define('MODULE_PAYMENT_PAYPAL_ENTRY_BUSINESS_NAME', '101010111100000');

    Note that in all cases, there is the 'english' component (in all upper case). These are a bit like 'placeholders' that is used throughout the zencart code, and then there is the actual text to be used whenever these 'placeholders' are found. If/when you replace the /hungarian/..../paypal.php file with the /english/.../paypal.php file the only difference is the text. Does that make sense?

    I am working on the *assumption* that it is one of these hungarian language files that is causing your problem.

    Cheers
    Rod

    Hi Rod,

    tried first /languages/english/modules/payment/paypal.php - replaced hungarian with english. nothing happened.

    everything is the same. So i can buy with hungarian language, but only one category is problematic(pendants/angels). If the hungarian language php would be the problem couldnt i order nothing at all in hungarian?

    havent found a file like this : languages/binary/modules/payment/paypal.php

    do you think i should try replacing other language php-s?

    or try searching elsewhere? How come that costumer can order bangles in hungarian, rings in hungarian but not pendants? Maybe when i uploaded this one category, did something different? The problem only comes with pendants shopping in hungarian with paypal.
    In the meantime i enabled cash on delivery for a try. It is ok, all languages , all products can be bought. No problem with this. so definitely paypal, this one type of product and language.

    Thanks in advance

    Nandor

  5. #5
    Join Date
    Sep 2012
    Posts
    104
    Plugin Contributions
    0

    Default Re: (10401) order error with one language, other two works fine

    Quote Originally Posted by Nandor View Post
    Hi Rod,

    tried first /languages/english/modules/payment/paypal.php - replaced hungarian with english. nothing happened.

    everything is the same. So i can buy with hungarian language, but only one category is problematic(pendants/angels). If the hungarian language php would be the problem couldnt i order nothing at all in hungarian?

    havent found a file like this : languages/binary/modules/payment/paypal.php

    do you think i should try replacing other language php-s?

    or try searching elsewhere? How come that costumer can order bangles in hungarian, rings in hungarian but not pendants? Maybe when i uploaded this one category, did something different? The problem only comes with pendants shopping in hungarian with paypal.
    In the meantime i enabled cash on delivery for a try. It is ok, all languages , all products can be bought. No problem with this. so definitely paypal, this one type of product and language.

    Thanks in advance

    Nandor


    I just saw that the error emails subject is :MODULE_PAYMENT_PAYPALWPP_TEXT_EMAIL_ERROR_SUBJECT (10401)

    So i replaced the hungarian paypalwpp.php with the english.The problem is still the same. One thing changed. in hungarian a paypal button appeared, when shopping but as previously you cannot buy pendant in hungarian.
    thought i finally found it......not

    Nandor

  6. #6
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: (10401) order error with one language, other two works fine

    Quote Originally Posted by Nandor View Post
    I just saw that the error emails subject is :MODULE_PAYMENT_PAYPALWPP_TEXT_EMAIL_ERROR_SUBJECT (10401)

    So i replaced the hungarian paypalwpp.php with the english.The problem is still the same.
    When you say 'still the same', do you mean that the email is still showing : MODULE_PAYMENT_PAYPALWPP_TEXT_EMAIL_ERROR_SUBJECT?

    If YES, then it means your changes to the hungarian paypalwpp.php haven't taken effect.

    This file contains a line that reads (in English)
    define('MODULE_PAYMENT_PAYPALWPP_TEXT_EMAIL_ERROR_SUBJECT', 'ALERT: PayPal Express Checkout Error');

    If/when working 'correctly' (and assuming an error is still present), the error emails subject would/should be reading 'ALERT: PayPal Express Checkout Error'

    Quote Originally Posted by Nandor View Post
    One thing changed. in hungarian a paypal button appeared, when shopping but as previously you cannot buy pendant in hungarian.
    thought i finally found it......not
    It looks to me like your on the right track. If you can figure out WHY the "MODULE_PAYMENT_PAYPALWPP_TEXT_EMAIL_ERROR_SUBJECT" isn't being replaced by its defined value 'ALERT: PayPal Express Checkout Error' (or the hungarian equivalent) you'll probably have the problem licked..

    Important: It probably *won't* be this particular 'define' that is causing the actual problem, this is just another clue that is telling me that the fault is probably in this *file* though (the hungarian paypalwpp.php).

    Getting closer by the minute. ;)

    Cheers
    Rod

  7. #7
    Join Date
    Sep 2012
    Posts
    104
    Plugin Contributions
    0

    Default Re: (10401) order error with one language, other two works fine

    Quote Originally Posted by RodG View Post
    When you say 'still the same', do you mean that the email is still showing : MODULE_PAYMENT_PAYPALWPP_TEXT_EMAIL_ERROR_SUBJECT?

    If YES, then it means your changes to the hungarian paypalwpp.php haven't taken effect.

    This file contains a line that reads (in English)
    define('MODULE_PAYMENT_PAYPALWPP_TEXT_EMAIL_ERROR_SUBJECT', 'ALERT: PayPal Express Checkout Error');

    If/when working 'correctly' (and assuming an error is still present), the error emails subject would/should be reading 'ALERT: PayPal Express Checkout Error'



    It looks to me like your on the right track. If you can figure out WHY the "MODULE_PAYMENT_PAYPALWPP_TEXT_EMAIL_ERROR_SUBJECT" isn't being replaced by its defined value 'ALERT: PayPal Express Checkout Error' (or the hungarian equivalent) you'll probably have the problem licked..

    Important: It probably *won't* be this particular 'define' that is causing the actual problem, this is just another clue that is telling me that the fault is probably in this *file* though (the hungarian paypalwpp.php).

    Getting closer by the minute. ;)

    Cheers
    Rod
    Hi Rod!

    till now i replaced the following:

    paypal wpp.php
    paypal.php
    paypaldp.php

    define checkout success.php

    checkout confirmation.php
    checkout payment.php
    checkout payment address.php
    checkout process.php
    checkout shipping.php
    checkout shipping address.php
    checkout success.php


    After these nothing was solved. Still cant shop pendants in hungarian. still can shop everything else in all languages.
    Then i stood up for a waking coffee.
    Then i (before continuing the replacement process) i uploaded a new item to the problematic(pendants) category/subcategory and this new product
    can be bought in hungarian, but the others in the same category not.

    How do we proceed in your opinion?

    thanks
    Nandor


  8. #8
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: (10401) order error with one language, other two works fine

    Quote Originally Posted by Nandor View Post
    Hi Rod,
    tried first /languages/english/modules/payment/paypal.php - replaced hungarian with english. nothing happened.
    Please define 'nothing' for me :)

    Quote Originally Posted by Nandor View Post
    everything is the same.
    That would simply mean the hungarian file you replaced isn't/wasn't even being used in this part of the code processing.. If it was, the text would show in English rather than hungarian.

    Quote Originally Posted by Nandor View Post
    So i can buy with hungarian language, but only one category is problematic(pendants/angels). If the hungarian language php would be the problem couldnt i order nothing at all in hungarian?
    If there were only *ONE* hungarian language file then the problem would be in that one file. You have more than one file to consider. First you need to identify the *relevant* file, and THEN you'll need to identify the *part* of the file that is causing the issue.

    Quote Originally Posted by Nandor View Post
    do you think i should try replacing other language php-s?
    I think the way *I'd* be approaching this one would be
    1) Make a backup of the hungarian language files.
    2) Replace the originals, one at a time with the English (or german) files of the same name.
    3) When the problem goes away you'll have identified the file causing the problem.
    4) Restore all the original hungarian files from the backups.

    Yes. You'll need to replace the others (unless you have a better way of narrowing the problem down). Hhhm, we did discuss looking at the server error logs for clues, didn't we? They are generally good for identifying problem files)

    Quote Originally Posted by Nandor View Post
    or try searching elsewhere? How come that costumer can order bangles in hungarian, rings in hungarian but not pendants?
    THAT is what we are trying to figure out.

    Quote Originally Posted by Nandor View Post
    Maybe when i uploaded this one category, did something different?
    Maybe, but that doesn't fully explain the problem. You've already narrowed things down a little further than that.

    Quote Originally Posted by Nandor View Post
    The problem only comes with pendants shopping in hungarian with paypal.
    As I stated before, this narrows down the possibilities a LOT.

    Fact is, I think we have all the clues we need to theoretically be able to identify the exact line in the exact file that is triggering the error without any further testing.

    What we are looking for is a file, in the hungarian language that contains reference to the 'pendant' category (or more specifically, something that makes this category different from the others, in theory, it could even be the name itself. What is the hungarian translation for 'pendant'?) AND is something that is used by the PayPal module, (this has be the most puzzled, because I can't think of any connection between a product category and the paypal needs/requirements, regardless of the language).

    There would probably only be ONE file that meets ALL of these 'requirements'. I'm not able to join the dots though, which is why my suggestion is to use a process of elimination until we can identify it.

    Perhaps someone else here can see the connection where I can't? If they can, that'll be easier than the process of elimination. Meanwhile, it may appear daunting (because there are so many hungarian language files to eliminate), but you *did* already install them once, so replacing one at a time shouldn't be too much of a challenge.
    Oh, you can also try re-installing all of the hungarian language files, just in case one of them didn't get uploaded properly.

    Cheers
    Rod
    Last edited by RodG; 9 Mar 2013 at 06:25 AM.

 

 

Similar Threads

  1. v139h With one language the homepage loads partially. Other languages are fine. How to fix?
    By ilmarchez in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 Aug 2014, 09:37 PM
  2. v151 CSS buttons works in one language and not other?
    By McLovin in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 7 Feb 2014, 09:13 AM
  3. two stores - one paypal account - works fine BUT
    By josefine in forum PayPal Website Payments Pro support
    Replies: 9
    Last Post: 23 Jul 2009, 12:00 PM
  4. White space below Header in IE only--works fine in other browsers
    By avantik in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 17 Jun 2009, 12:44 PM
  5. CSS buttons works in one language and not other?
    By edgecrusher in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Feb 2007, 06:02 PM

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