Problems With Magento Installation

1 08 2010

Problem 1. Installing MCrypt on Mac
Mac OS X comes with pre-installed PHP which needs to be switched on and most likely updated to the latest version of PHP which is simple enough however installing MCrypt is a major pain. After spending 2 hours on this, I think the best thing to do is to use MAMP instead. Comes with Apache, PHP and MySQL.. SWEET!!!

Problem 2. Can’t log into admin
So Magento is installed on the localhost and now I can’t log into admin..

There are lots of workaround like changing the Varien.php file if you google this however they didn’t work for me so..

Please uninstall and make sure you reinstall Magento on http://127.0.0.1 instead of http://localhost/

Advertisements




MorphAdorner + Eclipse OutofMemoryError!

28 07 2009

MorphAdorner 1.0
Eclipse Galileo 3.5

In eclipse.ini
-startup
plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
org.eclipse.epp.package.jee.product
--launcher.XXMaxPermSize
128M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx720m

Running examples:

Right-Click edu.northwestern.at.morphadorner.examples.PosTagString -> Run As -> Run Configurations -> Java Application->New

In Arguments Tab->Program arguments add the text to tag:
"I spent all day trying to figure out Eclipse java.lang.OutOfMemoryError: Java heap space!"

VM arguments add:
-Xms512m -Xmx1024m





struct type redefinition

5 03 2009

the header file may be included twice. use #ifndef to prevent multiple definitions

#ifndef COMMON_H
#define COMMON_H
#include "Common.h"
#endif /* COMMON_H */

#ifndef = if not defined
#ifdef = if defined





TinyMCE – r has no properties

25 03 2008

Occurs in firefox when there’s a textarea in a hidden div.

Change in tiny_mce.js


IsCollapsed: function () (
This.getRng var r = ();
if(r.item)return false;
return r.boundingWidth==0||this.getSel().isCollapsed
)

to


IsCollapsed: function () (
This.getRng var r = ();
if(r==null||r.item)return false;
return r.boundingWidth==0||this.getSel().isCollapsed
)