Archive for February, 2009:

Magento mod_rewrite doesn’t work

3

After installation of Magento and ensuring that mod_rewrite is enabled and working on my apache server, the Magento shopping cart still gives me the below error:

Whoops, our bad…

The page you requested was not found, and we have a fine guess why.
  • If you typed the URL directly, please make sure the spelling is correct.
  • If you clicked on a link to get here, the link is outdated.

The Fix

Log into the admin area and navigate to system->cache management.  Click the “refresh” button next to “catalog rewrites”.  That’ll fix’er.  It’s pretty dumb that this must be done on a fresh install, but it does the trick.

Posted in: Magento
Tags:

Continue Reading

Magento cannot log into admin

49

I experienced a problem just after my Magento install where the page would simply redirect back to the login without displaying an error message.  I’d login using the user credentials I just created during the install and I also tried using the default user “admin” with password “123123″ .  The trick was that I was installing on localhost and for some reason a cookie was not being set for the session.  I have other sites requiring a cookie on localhost, but Magento seems to have a problem with it.

The solution is to add the following line to your hosts file so you can access your localhost as www.localhost.com.
C:Windows\System32\drivers\etc\hosts (edit this file in notepad)
127.0.0.1 magento.localhost.com www.localhost.com
Also worth mentioning, if you need to reset a password manually in the database use the following:

UPDATE admin_user SET password=MD5(‘mypassword’) WHERE username=‘admin’;

If none of the above works, install the browser Opera and use it. Opera seems to work out of the box whereas IE, Firefox, and Google Chrome do not.

Posted in: Magento, Uncategorized
Tags:

Continue Reading

FancyUpload javascript alert error fix

3

Many of you, like me, found this great tool at http://digitarald.de/project/fancyupload/ gives you a javascript alert box that says “error” after clicking one of the “browse” links if you have Flash 10.  Flash 10 breaks all Flash-based upload solutions that control a hidden flash-object with JavaScript.  Even my wordpress blog, which uses a flash upload, doesn’t work anymore.  I will have to install an update of wordpress to make it work again.

There are two ways to fix this.  One is to back down to Flash 9 and the second is to implement the fixes Herald has come up with for this issue.  My implementation of FancyUpload deviated from Herald’s demo install, so rather than start from scratch again, I updated fixes file by file and line by line.  It’s a fairly quick fix that I’ll go over below.

Herald’s updated and fixed demo is here http://digitarald.de/project/fancyupload/2-0/showcase/photoqueue-fixed/ and the current version can be downloaded at github http://github.com/digitarald/digitarald-fancyupload/tree/master.

The changes -

  1. Replace the following files with updated versions
    • FancyUpload2.js
    • Fx.ProgressBar.js
    • Swiff.Uploader.js
    • Swiff.Uploader.swf
    • script.js
    • The xhtml will need to be updated as well. Change the following line
      <a id="demo-browse-images" href="#">Browse Only Images</a> |

      to

      <input id="demo-select-images" type="checkbox" /> Images Only |

Hope this helps others who have implemented and rely on this tool. All credit for the solution and fix goes to Herald.


Continue Reading

Which version of flash player do I have installed?

0

Adobe has a version test available here http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15507 .  If you’re trying to debug something across browsers, remember that Firefox, Opera, and Safari use a plugin that is not used by Internet Explorer.  Go to this page http://get.adobe.com/flashplayer/ with each browser you’d like to update and download.

Posted in: Development

Continue Reading