Question

Error when choosing language from drop down in magento

Asked by: ChefMaha

Hi,

I have recently installed the ar_SA extension for arabic translation on my magento site. However, when I choose a language (English or Arabic) on my frontend interface through the "your language" drop down, I get the following error:

Warning: PDO::quote() expects parameter 1 to be string, object given in C:\xampp\htdocs\battery\lib\Zend\Db\Adapter\Pdo\Abstract.php on line 252

However, if I navigate to an arabic page by providing the explicit link: http://localhost/battery/index.php/home?___store=arabic, I can view the page correctly.

Whats causing the error is actually the Your Language drop down.Even if I try to switch back to English, I get the same error.

any help is appreciated..

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-11-04 at 05:03:34ID24870691
Tags

magento

,

bilingual

Topics

E-Commerce

,

PHP Scripting Language

Participating Experts
1
Points
300
Comments
59

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Arabic Language
    i want to make a website in Arabic language like Microsoft.com http://www.microsoft.com/middleeast/arabic/default.mspx how i make in this type of site in arabic language?
  2. how can I make xampp supports arabic
    Hi All, I need a package for php, mysql, apache, perl, jsp so I heard about the Xampp software it have the latest versions of all. the problem is it does not support arabic language which I need to know how to do it to use it in application I'm working on. I tried in php ...
  3. Zend Optimizer not installed error - but it is
    I'm running XAMPP 1.7.3 on my computer. using http://localhost, i get the xampp webpage. I load the phpinfo(), it says Zend Optimizer is installed (see code attachment) I look in the php.ini, i see: zend_extension_manager.optimizer_ts="C:\Program Files (x86)\Zend\Zen...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: fiboPosted on 2009-11-04 at 05:31:50ID: 25739061

Just in case... I have had problems with the transalation, which is done thru javascript.

1 - Check on the server if all the files in /libs/ have the correct access rights, wether php, js or directories

2 - look at the javascript for translation: maybe some apostroph has been uncorrectly escaped, or more exactly non escaped: any ' inside a 'script' should be written \'

 

by: ChefMahaPosted on 2009-11-04 at 05:44:17ID: 25739174

Hi fibo,

thanks for your reply.

1- I'm working on localhost (not uploaded yet)

2- I didn't really understand what you meant by #2

thanks alot

 

by: fiboPosted on 2009-11-04 at 07:51:58ID: 25740544

1- OK. Unless you run Vista you should not have too many problems there

2 - If you look at the source code of your page, you will see just before <body> a huge javascript which handles translations by replacing "on the fly" in the source code of the page english strings by their "local" counterpart. If any of this strings contains an unescaped apostroph, you might have problems.

 

by: ChefMahaPosted on 2009-11-04 at 08:01:37ID: 25740655

ok here's the javascript:

the arabic chars seem to appear in a weird way.. could that be the problem?

<script type="text/javascript">var Translator = new Translate({"Please select an option.":"\u0641\u0636\u0644\u0627 \u0627\u062e\u062a\u0631 \u062e\u064a\u0627\u0631 .","This is a required field.":"\u0647\u0630\u0627 \u0627\u0644\u062d\u0642\u0644 \u0645\u0637\u0644\u0648\u0628.","Please enter a valid number in this field.":"\u0645\u0646 \u0641\u0636\u0644\u0643 \u0642\u0645 \u0628\u0625\u062f\u062e\u0627\u0644 \u0631\u0642\u0645 \u0635\u062d\u064a\u062d \u0641\u064a \u0647\u0630\u0627 \u0627\u0644\u062d\u0642\u0644.","Please use numbers only in this field. please avoid spaces or other characters such as dots or commas.":"\u0645\u0646 \u0641\u0636\u0644\u0643 \u0642\u0645 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0623\u0631\u0642\u0627\u0645 \u0641\u0642\u0637 \u0641\u064a \u0647\u0630\u0627 \u0627\u0644\u062d\u0642\u0644. \u0645\u0646 \u0641\u0636\u0644\u0643 \u062a\u062c\u0646\u0628 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u0645\u0633\u0627\u0641\u0627\u062a \u0623\u0648 \u0623\u064a \u0631\u0645\u0648\u0632 \u0623\u062e\u0631\u0649 \u0643\u0627\u0644\u0646\u0642\u0627\u0637 \u0623\u0648 \u0627\u0644\u0641\u0648\u0627\u0635\u0644.","Please use letters only (a-z) in this field.":"\u0641\u0636\u0644\u0627 \u0627\u0633\u062a\u062e\u062f\u0645 \u0627\u0644\u062d\u0631\u0648\u0641 \u0645\u0646 (\u0627-\u064a )\u0641\u064a \u0647\u0630\u0647 \u0627\u0644\u062e\u0627\u0646\u0647.","Please use only letters (a-z), numbers (0-9) or underscore(_) in this field, first character should be a letter.":"\u0627\u0644\u0631\u062c\u0627\u0621 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u062d\u0631\u0648\u0641 (\u0645\u0646 \u0627\u0644\u0627\u0644\u0641 \u0627\u0644\u0649 \u0627\u0644\u064a\u0627\u0621 \u0627\u0644\u0627\u0642\u0627\u0645\u0629) \u060c \u0627\u0631\u0642\u0627\u0645 (0-9) \u064a\u0624\u0643\u062f \u0627\u0648 (_) \u0641\u064a \u0647\u0630\u0627 \u0627\u0644\u0645\u062c\u0627\u0644 \u060c \u064a\u0646\u0628\u063a\u064a \u0627\u0646 \u064a\u0643\u0648\u0646 \u0627\u0644\u062d\u0631\u0641 \u0627\u0644\u0627\u0648\u0644 \u0631\u0633\u0627\u0644\u0629.","Please use only letters (a-z) or numbers (0-9) only in this field. No spaces or other characters are allowed.":"\u0627\u0644\u0631\u062c\u0627\u0621 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u062d\u0631\u0648\u0641 (\u0645\u0646 \u0627\u0644\u0627\u0644\u0641 \u0627\u0644\u0649 \u0627\u0644\u064a\u0627\u0621 \u0627\u0644\u0627\u0642\u0627\u0645\u0629) \u0627\u0648 \u0627\u0631\u0642\u0627\u0645 (0-9) \u0627\u0644\u0627 \u0641\u064a \u0647\u0630\u0627 \u0627\u0644\u0645\u064a\u062f\u0627\u0646. \u0623\u064a \u0641\u0631\u0627\u063a\u0627\u062a \u0627\u0648 \u0627\u0644\u0634\u062e\u0635\u064a\u0627\u062a \u0627\u0644\u0623\u062e\u0631\u0649 \u064a\u0633\u0645\u062d \u0644\u0644.","Please use only letters (a-z) or numbers (0-9) or spaces and # only in this field.":"\u0627\u0644\u0631\u062c\u0627\u0621 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u062d\u0631\u0648\u0641 (\u0645\u0646 \u0627\u0644\u0627\u0644\u0641 \u0627\u0644\u0649 \u0627\u0644\u064a\u0627\u0621 \u0627\u0644\u0627\u0642\u0627\u0645\u0629) \u0627\u0648 \u0627\u0631\u0642\u0627\u0645 (0-9) \u0623\u0648 \u0627\u0644\u0645\u0633\u0627\u062d\u0627\u062a \u0648# \u0641\u0642\u0637 \u0641\u064a \u0647\u0630\u0627 \u0627\u0644\u0645\u062c\u0627\u0644.","Please enter a valid phone number. For example (123) 456-7890 or 123-456-7890.":"\u0645\u0646 \u0641\u0636\u0644\u0643 \u0642\u0645 \u0628\u0625\u062f\u062e\u0627\u0644 \u0631\u0642\u0645 \u0647\u0627\u062a\u0641 \u0635\u062d\u064a\u062d. \u0643\u0645\u062b\u0627\u0644 (123) 456-7890 \u0623\u0648 123-456-7890.","Please enter a valid date.":"\u0645\u0646 \u0641\u0636\u0644\u0643 \u0642\u0645 \u0628\u0625\u062f\u062e\u0627\u0644 \u062a\u0627\u0631\u064a\u062e \u0635\u062d\u064a\u062d.","Please enter a valid email address. For example johndoe@domain.com.":"\u0645\u0646 \u0641\u0636\u0644\u0643 \u0642\u0645 \u0628\u0625\u062f\u062e\u0627\u0644 \u0628\u0631\u064a\u062f \u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a \u0635\u062d\u064a\u062d. \u0643\u0645\u062b\u0627\u0644 johndoe@domain.com.","Please enter 6 or more characters.":"\u0645\u0646 \u0641\u0636\u0644\u0643 \u0642\u0645 \u0628\u0625\u062f\u062e\u0627\u0644 6 \u0623\u062d\u0631\u0641 \u0623\u0648 \u0623\u0643\u062b\u0631.","Please make sure your passwords match.":"\u0645\u0646 \u0641\u0636\u0644\u0643 \u062a\u0623\u0643\u062f \u0645\u0646 \u062a\u0637\u0627\u0628\u0642 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631.","Please enter a valid URL. http:\/\/ is required":"\u0627\u0644\u0631\u062c\u0627\u0621 \u0627\u062f\u062e\u0627\u0644 \u0639\u0646\u0648\u0627\u0646. http:\/\/ \u0645\u0637\u0644\u0648\u0628","Please enter a valid URL. For example http:\/\/www.example.com or www.example.com":"\u0627\u0644\u0631\u062c\u0627\u0621 \u0627\u062f\u062e\u0627\u0644 \u0639\u0646\u0648\u0627\u0646. \u0641\u0639\u0644\u0649 \u0633\u0628\u064a\u0644 \u0627\u0644\u0645\u062b\u0627\u0644 http:\/\/www.example.com \u0627\u0648 www.example.com","Please enter a valid social security number. For example 123-45-6789.":"\u0627\u0644\u0631\u062c\u0627\u0621 \u0627\u062f\u062e\u0627\u0644 \u0631\u0642\u0645 \u0627\u0644\u0636\u0645\u0627\u0646 \u0627\u0644\u0627\u062c\u062a\u0645\u0627\u0639\u064a. \u0641\u0639\u0644\u0649 \u0633\u0628\u064a\u0644 \u0627\u0644\u0645\u062b\u0627\u0644 123-45-6789.","Please enter a valid zip code. For example 90602 or 90602-1234.":"\u0627\u0644\u0631\u062c\u0627\u0621 \u0625\u062f\u062e\u0627\u0644 \u0627\u0644\u0631\u0645\u0632 \u0627\u0644\u0628\u0631\u064a\u062f\u064a. \u0641\u0639\u0644\u0649 \u0633\u0628\u064a\u0644 \u0627\u0644\u0645\u062b\u0627\u0644 90602 \u0627\u0648 90602-1234.","Please enter a valid zip code.":"\u0627\u0644\u0631\u062c\u0627\u0621 \u0625\u062f\u062e\u0627\u0644 \u0627\u0644\u0631\u0645\u0632 \u0627\u0644\u0628\u0631\u064a\u062f\u064a.","Please use this date format: dd\/mm\/yyyy. For example 17\/03\/2006 for the 17th of March, 2006.":"\u0627\u0644\u0631\u062c\u0627\u0621 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0647\u0630\u0627 \u0627\u0644\u0634\u0643\u0644 \u062d\u062a\u0649 \u0627\u0644\u0622\u0646 : \u0627\u0644\u064a\u0648\u0645 \/ \u0627\u0644\u0634\u0647\u0631 \/ \u0627\u0644\u0633\u0646\u0629. \u0641\u0639\u0644\u0649 \u0633\u0628\u064a\u0644 \u0627\u0644\u0645\u062b\u0627\u0644 17\/03\/2006 \u0644\u0644\u0627\u0644\u0633\u0627\u0628\u0639 \u0639\u0634\u0631 \u0645\u0646 \u0627\u0630\u0627\u0631 \/ \u0645\u0627\u0631\u0633 \u060c 2006.","Please enter a valid $ amount. For example $100.00.":"\u0627\u0644\u0631\u062c\u0627\u0621 \u0627\u062f\u062e\u0627\u0644 \u062f\u0648\u0644\u0627\u0631 \u0645\u0646 \u0627\u0644\u0645\u0628\u0644\u063a. \u0641\u0639\u0644\u0649 \u0633\u0628\u064a\u0644 \u0627\u0644\u0645\u062b\u0627\u0644 100\u060c00 \u062f\u0648\u0644\u0627\u0631..","Please select one of the above options.":"\u0641\u0636\u0644\u0627 \u0627\u062e\u062a\u0627\u0631 \u0645\u0646 \u0627\u0644\u062e\u064a\u0627\u0631\u0627\u062a \u0627\u0644\u0645\u0648\u062c\u0648\u062f\u0647 \u0641\u064a \u0627\u0644\u0627\u0639\u0644\u0649.","Please select one of the options.":"\u0641\u0636\u0644\u0627 \u0627\u062e\u062a\u0627\u0631 \u0648\u0627\u062d\u062f \u0645\u0646 \u0627\u0644\u062e\u064a\u0627\u0631\u0627\u062a.","Please select State\/Province.":"\u0645\u0646 \u0641\u0636\u0644\u0643 \u0627\u062e\u062a\u0631 \u0648\u0644\u0627\u064a\u0629\/\u0645\u0642\u0627\u0637\u0639\u0629.","Please enter valid password.":"\u0645\u0646 \u0641\u0636\u0644\u0643 \u0642\u0645 \u0628\u0625\u062f\u062e\u0627\u0644 \u0643\u0644\u0645\u0629 \u0645\u0631\u0648\u0631 \u0635\u062d\u064a\u062d\u0629.","Please enter 6 or more characters. Leading or trailing spaces will be ignored.":"\u0645\u0646 \u0641\u0636\u0644\u0643 \u0642\u0645 \u0628\u0625\u062f\u062e\u0627\u0644 6 \u0623\u062d\u0631\u0641 \u0623\u0648 \u0623\u0643\u062b\u0631. \u0633\u064a\u062a\u0645 \u062a\u062c\u0627\u0647\u0644 \u0627\u0644\u0645\u0633\u0627\u0641\u0627\u062a \u0642\u0628\u0644 \u0623\u0648 \u0628\u0639\u062f \u0627\u0644\u0623\u062d\u0631\u0641.","Please enter a number greater than 0 in this field.":"\u0645\u0646 \u0641\u0636\u0644\u0643 \u0642\u0645 \u0628\u0625\u062f\u062e\u0627\u0644 \u0631\u0642\u0645 \u0623\u0643\u0628\u0631 \u0645\u0646 0 \u0641\u064a \u0647\u0630\u0627 \u0627\u0644\u062d\u0642\u0644.","Please enter a valid credit card number.":"\u0645\u0646 \u0641\u0636\u0644\u0643 \u0642\u0645 \u0628\u0625\u062f\u062e\u0627\u0644 \u0631\u0642\u0645 \u0628\u0637\u0627\u0642\u0629 \u0625\u0626\u062a\u0645\u0627\u0646 \u0635\u062d\u064a\u062d.","Please wait, loading...":"\u0645\u0646 \u0641\u0636\u0644\u0643 \u0627\u0646\u062a\u0638\u0631\u060c \u062c\u0627\u0631 \u0627\u0644\u062a\u062d\u0645\u064a\u0644...","Your session has been expired, you will be relogged in now.":"\u0644\u0642\u062f \u0627\u0646\u062a\u0647\u062a \u0635\u0644\u0627\u062d\u064a\u0629 \u062c\u0644\u0633\u062a\u0643. \u0633\u064a\u062a\u0645 \u0625\u0639\u0627\u062f\u0629 \u062a\u0633\u062c\u064a\u0644 \u062f\u062e\u0648\u0644\u0643 \u0627\u0644\u0622\u0646."});</script>

                                              
1:

Select allOpen in new window

 

by: fiboPosted on 2009-11-04 at 08:23:00ID: 25740923

The arabic is displayed in utf8 code (rather than utf8 characters), but that should not be a problem.
The fille seems fine.

Problems comes probably from the dropdown list itself. Could you find and post the HTML code corresponding to this dropdown list?

 

by: ChefMahaPosted on 2009-11-04 at 08:58:55ID: 25741364

here's the code:

<?php if(count($this->getStores())>1): ?>
<div class="language-switcher">
    <label for="select-language"><?php echo $this->__('Your Language:') ?> </label>
    <select id="select-language" onchange="window.location.href=this.value">
    <?php foreach ($this->getStores() as $_lang): ?>
        <?php $_selected = ($_lang->getId()==$this->getCurrentStoreId()) ? 'selected="selected"' : '' ?>
        <option value="<?php echo $_lang->getCurrentUrl() ?>" <?php echo $_selected ?>><?php echo $this->htmlEscape($_lang->getName()) ?></option>
    <?php endforeach; ?>
    </select>
</div>
<?php endif; ?>

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:

Select allOpen in new window

 

by: fiboPosted on 2009-11-04 at 11:26:46ID: 25742906

Fine. Now, this php code when it will run will generate html and javascript in the visitor's browser.
Could you post the corresponding html source code from your html page? Just an extra ' is enough to ruin the whole page!

 

by: ChefMahaPosted on 2009-11-04 at 12:59:53ID: 25743864

you mean this?

<div style="position:relative; border:1px dotted red; margin:6px 2px; padding:18px 2px 2px 2px; zoom:1;"><div style="position:absolute; left:0; top:0; padding:2px 5px; background:red; color:white; font:normal 11px Arial; text-align:left !important; z-index:998;" onmouseover="this.style.zIndex='999'" onmouseout="this.style.zIndex='998'" title="frontend\default\default\template\page/switch/languages.phtml">frontend\default\default\template\page/switch/languages.phtml</div><div class="language-switcher"> 
    <label for="select-language">Your Language: </label>
    <select id="select-language" onchange="window.location.href=this.value">
                    <option value="http://localhost/battery/index.php/?___store=default&amp;___from_store=arabic" >English</option>
                    <option value="http://localhost/battery/index.php/?___store=arabic&amp;___from_store=arabic" selected="selected">91(J</option>
        </select>
</div>
                                              
1:
2:
3:
4:
5:
6:
7:
8:

Select allOpen in new window

 

by: fiboPosted on 2009-11-05 at 05:19:57ID: 25749079

OK, yes, this is the code I wanted.

Looking at this code:
- facts: the language name (or rather, the store name) appears as being "91(J" in latin characters (might be different in an arabic display); you did not paste it, but I would bet that there is an extra </div> close to the code you pasted. IF there is no </div> close to the end (with no <div> in between) then this might be the source of the problem. otherwise i see no possible explanation.

Now, a small note of WARNING:
- although Magento code and display suggest a change in language, it is in fact a change in STORE. You are changing from one store to the other.
- this is totally different from the change in language, where all translatable strings are translated by their equivalent.
- it so happens that currently you "default" store is labelled English and that, presumably, default language for this store is English; you have another store labelled Arabic for which I presume you selected Arabic at the default language...

So the problem you currently have is NOT a LANGUAGE switch, but a STORE switch... which does not make it less of a problem, but at least places the focus on the problem.

You said that switching store from the rolldown list does not work, but that browsing directly to
http://localhost/battery/index.php/home?___store=arabic  works.
Can you check if the following links work correctly:
http://localhost/battery/index.php/home?___store=arabic&___from_store=arabic
http://localhost/battery/index.php/home?___store=arabic&___from_store=default

 

by: ChefMahaPosted on 2009-11-05 at 09:47:31ID: 25751962

I tried both links:
http://localhost/battery/index.php/home?___store=arabic&___from_store=arabic
http://localhost/battery/index.php/home?___store=arabic&___from_store=default

They produce the following error:

Warning: PDO::quote() expects parameter 1 to be string, object given  in C:\xampp\htdocs\battery\lib\Zend\Db\Adapter\Pdo\Abstract.php on line 252

.... Which is the same as the error produced by changing languages with the drop down list!

And I can see a div closing the code I pasted:

<div style="position:relative; border:1px dotted red; margin:6px 2px; padding:18px 2px 2px 2px; zoom:1;"><div style="position:absolute; left:0; top:0; padding:2px 5px; background:red; color:white; font:normal 11px Arial; text-align:left !important; z-index:998;" onmouseover="this.style.zIndex='999'" onmouseout="this.style.zIndex='998'" title="frontend\default\default\template\page/switch/languages.phtml">frontend\default\default\template\page/switch/languages.phtml</div><div class="language-switcher"> 
    <label for="select-language">Your Language: </label>
    <select id="select-language" onchange="window.location.href=this.value">
                    <option value="http://localhost/battery/index.php/?___store=default&amp;___from_store=arabic" >English</option>
                    <option value="http://localhost/battery/index.php/?___store=arabic&amp;___from_store=arabic" selected="selected">91(J</option>
        </select>
</div>

                                              
1:
2:
3:
4:
5:
6:
7:

Select allOpen in new window

 

by: fiboPosted on 2009-11-05 at 10:48:55ID: 25752558

1 - There is probably another </div> more or less close.
But it does not matter, because

2 - These 2 links are those generated by the code in the options list. Since they both fail when typed directly, the </div> play no role in the failure.

3 - So the extra part &___from_store=xxxx is responsible for the problem, since when you are not using it all is fine.
This is generated by the php code echo $_lang->getCurrentUrl() (which generates the complete URL).

4 - Can you test first going to http://localhost/battery/index.php/home?___store=arabic  THEN selecting language English. And also http://localhost/battery/index.php/home?___store=arabic   then selecting language arabic? Are they both working for the first url and crashing for the second?

5 - Which options have you selected for url generation, specially for the part that concerns the store?

 

by: ChefMahaPosted on 2009-11-05 at 11:43:16ID: 25753117

4-
 going to http://localhost/battery/index.php/home?___store=arabic:
working fine

 THEN selecting language English:
crash (same error as before)

http://localhost/battery/index.php/home?___store=default:
working fine

 then selecting language arabic:
crash (same error as before)

So, yes they are both working for the first and crashing for the second.

5- How do I select specific options for url generation?

 

by: fiboPosted on 2009-11-05 at 12:16:06ID: 25753458

No idea why you have this problem. I checked on my config and although I have the same html code, I don't have this problem.

Just in case, could you paste here a copy similar to mine?

 

by: ChefMahaPosted on 2009-11-05 at 13:23:20ID: 25754197

ok there you go:

 

by: fiboPosted on 2009-11-05 at 16:33:24ID: 25755696

No idea, sorry.
I have a different setup for url trewriting, but I do not believe it might play a role

My suggestion would be a workaround, changing the php code that generates the option list. Nothing to be proud of...

 

by: ChefMahaPosted on 2009-11-05 at 23:46:35ID: 25757359

change it to what?

I don't care about being proud or not as long as it solves the problem!

 

by: ChefMahaPosted on 2009-11-06 at 22:04:45ID: 25765169

I really need to get a solution to this problem!

 

by: fiboPosted on 2009-11-07 at 05:38:57ID: 25766277

OK.
My idea is simply to preposition HTML code instead of the php generated one.

Starting from the php code you gave in your post 25741364
<?php if(count($this->getStores())>1): ?>
<div class="language-switcher">
    <label for="select-language"><?php echo $this->__('Your Language:') ?> </label>
    <select id="select-language" onchange="window.location.href=this.value">
    <?php foreach ($this->getStores() as $_lang): ?>
        <?php $_selected = ($_lang->getId()==$this->getCurrentStoreId()) ? 'selected="selected"' : '' ?>
        <option value="<?php echo $_lang->getCurrentUrl() ?>" <?php echo $_selected ?>><?php echo $this->htmlEscape($_lang->getName()) ?></option>
    <?php endforeach; ?>
    </select>
</div>
<?php endif; ?>
I would "hardcode" the option list itself, so that would be:

<?php if(count($this->getStores())>1): ?>
<div class="language-switcher">
    <label for="select-language"><?php echo $this->__('Your Language:') ?> </label>
    <select id="select-language" onchange="window.location.href=this.value">
    <?php /* foreach ($this->getStores() as $_lang): // replaced by hard-coded html
    ?>
        <?php $_selected = ($_lang->getId()==$this->getCurrentStoreId()) ? 'selected="selected"' : ''  ?>
        <!-- option value="<?php echo $_lang->getCurrentUrl() ?>" <?php echo $_selected ?>><?php echo $this->htmlEscape($_lang->getName()) ?></option -->
    <?php endforeach; */ ?>
<?php // start of hard-coded html
?>
<option value="http://localhost/battery/index.php/?___store=default" >English</option>
<option value="http://localhost/battery/index.php/?___store=arabic" >91(J</option>
<?php // end of hard-coded html
?>
    </select>
</div>
<?php endif; ?>

Note:
1 - I suggest you comment as I did so that later you remember what was done and why
2 - Unless the phtml file, of which this code is part, is placed in a /theme/ directory tree in parallel with the Magento provided one (whether it is 'default', 'bmlank' or equivalent), these changes will probably be wiped out at the next Magento update

 

by: ChefMahaPosted on 2009-11-07 at 06:11:01ID: 25766381

ok now it's working..

But I'm concerned about 2 issues:

1. when I choose Arabic, it automatically converts back to English (even though it takes me to the arabic page). I want it to stay on Arabic when I'm on the arabic page.

2. is this method safe? or is there a possibility that something may go wrong later?

thanks for your help

 

by: fiboPosted on 2009-11-07 at 07:39:59ID: 25766618

2 - I am just "cleaning" the html code from what is generated to what works. So there should be no ulterior surprise.
It seems though that as you pointed it is not working perfectly.

1 - I could not test fully my change, and did not found the problem you mention.
Just to be sure of what is happening:
- You have 2 stores, one called English which is the default one, another which is called Arabic. (Remember that these are store names, not really languages)
- The default language in your English store is English, the default language in Arabic store is Arabic (we are associating stores and language).

From what I understand:
- With my code, you are changing store but not language, ie when you are on the English store with its default English language, and you switch to the Arabic store, the switch works BUT the language is not switched.

Is that a correct description of the situation?

 

by: ChefMahaPosted on 2009-11-07 at 07:50:09ID: 25766680

actually what I was trying to say is:

when I'm on the English page (default store), and use the drop down to select the Arabic store, the correct page will appear (same page with arabic language). However, the problem is that the drop down menu automatically switches back to "English" (I want it to stay on "arabic"). This is just a display issue. I know there's a simple way to do this but I really can't remember how (I think you need to echo 'selected' when the option is selected or something like that)

Another problem is that if I'm on the let's say the product page, and I choose "arabic", it takes me to the arabic homepage instead of the arabic product page..

 

by: fiboPosted on 2009-11-07 at 08:03:34ID: 25766758

<<However, the problem is that the drop down menu automatically switches back to "English" (I want it to stay on "arabic"). This is just a display issue. I know there's a simple way to do this but I really can't remember how (I think you need to echo 'selected' when the option is selected or something like that)>>
OK. So the problem is that the dropdown list does not reflect correctly that a store is selected. I will change the code for that to-morrow (I need to think to a clever way).


<<Another problem is that if I'm on the let's say the product page, and I choose "arabic", it takes me to the arabic homepage instead of the arabic product page..>>
Oops... sorry for this mistake. Not sure how the change I propose below works..
Change
<option value="http://localhost/battery/index.php/?___store=default" >English</option>
<option value="http://localhost/battery/index.php/?___store=arabic" >91(J</option>
to
<option value="<?php echo getCurrentUrl(); ?>?___store=default" >English</option>
<option value="="<?php echo getCurrentUrl(); ?>?___store=arabic" >91(J</option>

------------
Remark: although I believe this solution to be "safe" once it works,
-- remember that they might be wiped during a Mahento update
-- they do not solve tyhe undelying problem, which might resurface later. it should be considered as a temporary "stop remover" to allow you to proceed.

 

by: ChefMahaPosted on 2009-11-07 at 21:26:08ID: 25769502

ok got it.. This is how the code should look:

	<?php // start of hard-coded html
?> 

 <?php $_selected = ($_lang->getId()==$this->getCurrentStoreId()) ? 'selected="selected"' : '' ?>
<option value="<?php echo $_lang->getCurrentUrl();?>?___store=default"  <?php echo $_selected ?>>English</option>
<option value="<?php echo $_lang->getCurrentUrl();?>?___store=arabic" <?php echo $_selected ?>>91(J</option> 
<?php // end of hard-coded html
?>

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:

Select allOpen in new window

 

by: ChefMahaPosted on 2009-11-08 at 00:03:51ID: 25769749

for some reason, it's not working on the arabic page anymore :S

when I'm on the arabic page and choose English, it just takes me back to the arabic page again. However, the page URL changes to: http://localhost/battery/index.php/?___store=arabic&___from_store=arabic?___store=default

instead of: http://localhost/battery/index.php/?___store=arabic&___from_store=default?___store=arabic

 

by: ChefMahaPosted on 2009-11-08 at 00:04:50ID: 25769751

any idea?

 

by: ChefMahaPosted on 2009-11-08 at 00:40:05ID: 25769830

Also, when I'm on the arabic homepage and choose a category or click on a product to view its details, I get that page in English.. What is going on?!!

 

by: fiboPosted on 2009-11-08 at 01:52:56ID: 25769960

The code you have typed is not the one I suggested. For which BTW i am not suer it works.

The main difference is that instead of using
$_lang->getCurrentUrl();
as you typed, I suggest to use
getCurrentUrl();
which I somehow expect to appear as http://localhost/battery/index.php/
and which would then generate http://localhost/battery/index.php/?___store=arabic etc

 

by: ChefMahaPosted on 2009-11-08 at 04:33:34ID: 25770281

the reason I added "$_ lang->" to your code is that it produced the following error:

Undefined function: getCurrentUrl() in languages.phtml on line 54

 

 

by: ChefMahaPosted on 2009-11-08 at 04:59:56ID: 25770332

ok I was able to figure out the url that magento is trying to navigate to when it produces the error (the original one from the original code -not the hardcoded). It was trying to navigate to the url in the screen shot below.

I was able to figure out the URL by replacing getName() with getCurrentUrl() to see which URL it's trying to open. It turns out it's navigating to some weirdo URL.. could that be the source of the problem?

<?php foreach ($this->getStores() as $_lang): ?>
        <?php $_selected = ($_lang->getId()==$this->getCurrentStoreId()) ? 'selected="selected"' : '' ?>
        <option value="<?php echo $_lang->getCurrentUrl() ?>" <?php echo $_selected ?>><?php echo $this->htmlEscape($_lang->getCurrentUrl()) ?></option>
    <?php endforeach; ?>
                                              
1:
2:
3:
4:

Select allOpen in new window

 

by: ChefMahaPosted on 2009-11-08 at 05:05:17ID: 25770346

Here's the screenshot:

 

by: fiboPosted on 2009-11-08 at 05:17:15ID: 25770370

OK.
getCurrent is a method that needs to be applied to some object.

So I can probably trick by using
$my_current_url = Mage::getModel('core/url') ->getCurrentUrl();

So replace
<option value="<?php echo $_lang->getCurrentUrl();?>?___store=default"  <?php echo $_selected ?>>English</option>
<option value="<?php echo $_lang->getCurrentUrl();?>?___store=arabic" <?php echo $_selected ?>>91(J</option>

With
<?php $my_current_url = Mage::getModel('core/url') ->getCurrentUrl(); ?>
<option value="<?php $my_current_url; ?>?___store=default"  >English</option>
<option value="<?php $my_current_url; ?>?___store=arabic" >91(J</option>

 

by: ChefMahaPosted on 2009-11-08 at 05:32:27ID: 25770409

ok seems to be working fine.. However, I'm still facing the problem where pressing a link on the arabic page will take me to a page on the english store (everything turns english when I click on a link on the arabic store)

 

by: ChefMahaPosted on 2009-11-08 at 05:38:14ID: 25770417

EDIT: all the links take me to arabic pages except the home, category and product pages (they take me to the english interface)

for some reason, pressing on home, category or product links takes me to the default URL (for example: localhost/battery/index.php NOT localhost/battery/index.php/?___store=arabic

 

by: ChefMahaPosted on 2009-11-08 at 05:48:54ID: 25770445

Here's the code for the top links menu bar:

<div class="header-nav-container" dir="rtl">
    <div class="header-nav" dir="rtl">
        <h4 class="no-display"><?php echo $this->__('Category Navigation:') ?></h4>
        <ul id="nav">
        <li class="level0 first nav-home"><a href="<?php echo $this->getUrl() ?>"><span><?php echo $this->__('Home') ?></span></a></li>
		
		<li class="nav-about" onmouseover="toggleMenu(this,1)" onmouseout="toggleMenu(this,0)">
            <a href="<?php echo $this->getUrl('') ?>"><span><?php echo $this->__('Products') ?></span></a>
			<ul>
				<?php foreach ($this->getStoreCategories() as $_category): ?>
				    <?php echo $this->drawItem($_category) ?>
				<?php endforeach ?>
			</ul>
		</li>
		
		<!--
		<?php foreach ($this->getStoreCategories() as $_category): ?>
            <?php echo $this->drawItem($_category) ?>
        <?php endforeach ?>
		-->
		
        <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('menu')->toHtml() ?>
        </ul>
    </div>
    <?php echo $this->getChildHtml('topLeftLinks') ?>
</div>

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:

Select allOpen in new window

 

by: fiboPosted on 2009-11-08 at 06:07:32ID: 25770502

>>EDIT: all the links take me to arabic pages except the home, category and product pages (they take me to the english interface)


Sorry to pinpoint: is it the "English store", or is it the "Arabic store" with texts in "English language"?

 

by: ChefMahaPosted on 2009-11-08 at 22:51:26ID: 25773810

I meant when I'm inside my arabic store (text in arabic), then I  press the home link for example, I get my homepage alright, but not the arabic homepage (just the default one). It just opens localhost/battery/index.php (whereas it is supposed to open: http://localhost/battery/index.php/?___store=arabic

get my point?

 

by: fiboPosted on 2009-11-09 at 01:33:54ID: 25774473

OK. SO the workaround does not work and you have to find and cleanup the original source of the problem.

Recheck your store configuration.

Test the impact of having store names in the generated URLs

 

by: ChefMahaPosted on 2009-11-09 at 04:13:41ID: 25775150

sorry.. I didn't get that

can you plz elaborate?

 

by: ChefMahaPosted on 2009-11-09 at 05:35:27ID: 25775737

btw, I just realized that even if I revert back to the original code, I still can't get to the arabic home, category and product pages by clicking on the links (when I'm inside the arabic store). All I get is the default english pages.

so your code probably has nothing to do with that =)

 

by: ChefMahaPosted on 2009-11-09 at 22:08:29ID: 25782782

update: I enabled: "Add store codes to URL" and that solved the home, category and product link problems. However, our dear old hard-coded html no longer works :(

 

by: ChefMahaPosted on 2009-11-09 at 22:45:27ID: 25782931

I just tried adding a link like this: <a href="http://localhost/battery/index.php/?___store=arabic&amp;___from_store=default"> arabic </a>

surprizingly, even pressing on that link, gives the same error as I was facing in the beginning. However, if I enter this exact URL explicitly into the address bar, the page is displayed correctly!

I've never seen anything like this in my life!

 

by: fiboPosted on 2009-11-09 at 23:59:01ID: 25783254

>>update: I enabled: "Add store codes to URL" and that solved the home, category and product link problems. However, our dear old hard-coded html no longer works :(

Now make a copy of the phtml as it is... and remove the hard code...

 

by: ChefMahaPosted on 2009-11-10 at 00:32:56ID: 25783404

a copy of phtml? u mean the file itself or the code? and paste it where?

 

by: fiboPosted on 2009-11-10 at 01:01:29ID: 25783532

no, not pasting here.
just keep a copy of the current "html hard-coded" file, and restore the phtml file back to its previous state (you have a copy here earlier in the thread).

The idea is that adding the store code seems to solve your problem... and so switching back to the "normal" code should work.

 

by: ChefMahaPosted on 2009-11-10 at 01:12:17ID: 25783589

tried that... still getting the same error.

btw, did you read post # 25782931, which says:

>>I just tried adding a link like this: <a href="http://localhost/battery/index.php/?___store=arabic&amp;___from_store=default"> arabic </a>

surprizingly, even pressing on that link, gives the same error as I was facing in the beginning. However, if I enter this exact URL explicitly into the address bar, the page is displayed correctly!

I've never seen anything like this in my life!

maybe that will give you a clue?

 

by: fiboPosted on 2009-11-10 at 01:19:20ID: 25783654

- your last comment: yes, having this link in html is the problem we are facing from start

- when you say you have "the same error" is it also for the home, category and product link pages?

- can you paste back here:
-- the current version of the phtml (it should be ok, but an extra check is not useless!)
-- a scren capture of the error you get when switching (be sure that the url is readable too)

 

by: ChefMahaPosted on 2009-11-10 at 05:34:57ID: 25785141

- What I mean by the same error is the initial error we started with: Warning: PDO::quote() expects parameter 1 to be string, object given  in C:\xampp\htdocs\battery\lib\Zend\Db\Adapter\Pdo\Abstract.php on line 252

I get that error everytime I switch languages with the drop down menu. However, if I happen to explicitly type the URL:
http://localhost/battery/index.php/?___store=arabic&amp;___from_store=default
into my address bar, I get a perfect arabic page.The home, category and product links work fine inside the arabic store view: take me to the corresponding arabic pages correctly. (here I have enabled "add store code to urls").

here's languages.phtml as well as a screen shot of the error:

<?php if(count($this->getStores())>1): ?>
<div class="language-switcher">
    <label for="select-language"><?php echo $this->__('Your Language:') ?> </label>
    <select id="select-language" onchange="window.location.href=this.value">
    <?php foreach ($this->getStores() as $_lang): ?>
        <?php $_selected = ($_lang->getId()==$this->getCurrentStoreId()) ? 'selected="selected"' : '' ?>
        <option value="<?php echo $_lang->getCurrentUrl() ?>" <?php echo $_selected ?>><?php echo $this->htmlEscape($_lang->getName()) ?></option>
    <?php endforeach; ?>
    </select>
</div>
<?php endif; ?>

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:

Select allOpen in new window

 

by: fiboPosted on 2009-11-10 at 15:07:28ID: 25790936

Pardon my stupid question: have you cleaned everything in the caches?

 

by: ChefMahaPosted on 2009-11-10 at 22:06:40ID: 25792625

ok I just

1. disabled the cache (from System > Cache Mgmt)

2. deleted everything inside the folder var/cache

3. cleared my browser cache

and I'm still getting the same error!

u know, I had no idea this question would be so challenging. that's y I just increased the points to 300!

 

by: fiboPosted on 2009-11-11 at 02:07:30ID: 25793629

B-)

Can you post the code at
C:\xampp\htdocs\battery\lib\Zend\Db\Adapter\Pdo\Abstract.php on line 252
or more precisely lines 235-265?

 

by: ChefMahaPosted on 2009-11-11 at 02:23:15ID: 25793733

btw, I just noticed that the language drop down works perfectly when I'm on a page with a URL that ends with: ?___from_store=arabic OR ?___from_store=default.. The error only appears when I'm on a page with a regular URL like: localhost/battery/index.php.

Here's the code for C:\xampp\htdocs\battery\lib\Zend\Db\Adapter\Pdo\Abstract.php. Line 252 is:
return $this->_connection->quote($value);

   /**
     * Quote a raw string.
     *
     * @param string $value     Raw string
     * @return string           Quoted string
     */
    protected function _quote($value)
    {
        if (is_int($value) || is_float($value)) {
            return $value;
        }
        $this->_connect();
        return $this->_connection->quote($value);
    } 
    /**
     * Begin a transaction.
     */
    protected function _beginTransaction()
    {
        $this->_connect();
        $this->_connection->beginTransaction();
    }
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:

Select allOpen in new window

 

by: ChefMahaPosted on 2009-11-11 at 13:17:23ID: 25799174

update: I have tried installing extension: ar_KW (which has worked without any problems on a site I developed before) and deleted extension ar_SA. But that didnt' change a thing (still same error).

I even tried deleting the arabic store view and recreating it... same result

then, I changed the theme to default.. also same result.

so it's not the extension or the store view and not even the theme!

 

by: ChefMahaPosted on 2009-11-13 at 22:16:32ID: 25819587

are we going to get a solution to this or what?

 

by: fiboPosted on 2009-11-14 at 04:27:34ID: 25820400

OK. From what I understand, the function _quote($value) is meant to build SQL queries, and to return a string ready to be inserted in a sql query for a condition such as
where argument = value if value is an integer or
where argument = 'value' if value is a string

It currently explodes because at the time of the call something is going wrong: $value should be a string but is an object or an array.

This is in the Zend Framework, so presumably there is no error in this code... but there might be some problem anyway.

What I would try to do:
- backup all the magento app, including the /libs/ directory and the Zend framework
- on your system, re-download your complete version of Magento, unzip it in a new directory
- copy this new directory to the old one, overwriting EVERY file that is there... except those in the home directory

Recheck for the problem...

 

by: ChefMahaPosted on 2009-11-30 at 20:56:40ID: 25940004

I have decided to use this hard-coded html (even though it always takes me to the homepage when I change languages). Here is my app/design/frontend/default/MyTEMPLATE/template/page/switch/languages.phtml:

<?php if(count($this->getStores())>1): ?>
<div class="language-switcher" dir="rtl">
    <label for="select-language"><?php echo $this->__('Your Language:') ?> </label>
    <select id="select-language" onchange="window.location.href=this.value">
	
	<!--
    <?php foreach ($this->getStores() as $_lang): ?>
        <?php $_selected = ($_lang->getId()==$this->getCurrentStoreId()) ? 'selected="selected"' : '' ?>
        <option value="<?php echo $_lang->getCurrentUrl() ?>" <?php echo $_selected ?>><?php echo $this->htmlEscape($_lang->getName()) ?></option>
    <?php endforeach; ?>
	-->
	
	<?php // start of hard-coded html
?>
<?php $_selected = ($_lang->getId()==$this->getCurrentStoreId()) ? 'selected="selected"' : '' ?> 
<option value="http://www.batteryland.net/index.php?___store=default" <?php echo $_selected ?>>English</option>
<option value="http://www.batteryland.net/index.php?___store=arabic" <?php echo $_selected ?>>91(J</option>
<?php // end of hard-coded html
?> 
    </select>
</div>
<?php endif; ?>

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:

Select allOpen in new window

 

by: fiboPosted on 2009-12-01 at 01:37:02ID: 25941159

B-) Glad you were able to reach an acceptable solution. Thx for the grade and points.
Have you had the time to reinstall?

 

by: ChefMahaPosted on 2009-12-01 at 02:12:53ID: 25941332

nope not really.. I was on a tight deadline and figured I'd just take the shortcut.. Best option that works!

thanks for your help though =)

 

by: fiboPosted on 2009-12-01 at 04:34:35ID: 25942127

My experience is that in several occasions reinstalling all the files was the fastest option...
You might also consider 2 tools, if you don't already:
1 - source-versioning tool, such as subversion: this would allow you to copare easily different versions (in the history) of the same file
2 - WinDiff which allows to compare 2 different files /directories.

I use 1/ to check files part of the "collection" of the thousands of files in Magento

I use 2/ to check changes when upgrading versions: I compare the complete versions old and new, checking if they look relevant for any change I have done. Once this is done, I usually upload all the files of the new version to the remote site, & make any needed change.

 

by: ChefMahaPosted on 2009-12-01 at 04:38:57ID: 25942156

alright.. thanks for the info.

I'll probably give that a try as soon as everything's settled regarding my site.

thanks again

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...