2

I am getting following error while installing magento (1.7)

Call to a member function insert() on a non-object in app/code/core/Mage/Core/Model/Resource/Resource.php on line 133, while installing magento
7
  • you can refer stackoverflow.com/questions/7190461/… Commented Dec 19, 2013 at 12:11
  • 2
    I resolved the issue by giving write permissions to etc folder. :) Commented Dec 19, 2013 at 12:34
  • Give a green check to the correct answer. Commented Dec 20, 2013 at 1:24
  • @JosuaMarcelChrisano , its not allowing me to do it today,I can do it tommorrow Commented Dec 20, 2013 at 5:41
  • @urfusion, ur link says local.xml is missing in the app/etc/ dir and that it should be there. But, shouldn't the install.php take care of creating it using the envs given to the container (e.g. MYSQL_HOST, MYSQL_PASSWORD, and so on)? Commented Apr 6, 2020 at 21:28

1 Answer 1

2

I given 777 permission to my app/etc folder and my issue resolved.

Sign up to request clarification or add additional context in comments.

2 Comments

For the sake of security, it should be 640 permission, which is writable by owner and readable by group user.
I added RUN chmod -R 777 /var/www/html/app/etc to my Dockerfile and still get this error.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.