5

When I install and give permission to whole CakePHP folder, it gives me below fatal error:

Server Configurations: CakePHP 1.3.x version PHP Version 5.3.6

Fatal error: Call to a member function cd() on a non-object in /var/www/html/xyz/cake/libs/cache/file.php on line 248

I tried to search on Google, but not much helpful.

Any idea, how to resolve this?

Regards !

3
  • 1
    Please print some of the logic that leads to this error, the controller action would be a good start. Commented Jul 27, 2011 at 10:39
  • this is only i get when i run my code.. Commented Jul 27, 2011 at 11:25
  • @iamtheladylegend Yes, please post some of that code. This way we can see what you're doing and we can better help you. Commented Jul 27, 2011 at 17:38

1 Answer 1

21

in your /app/config/core.php uncomment the date_default_timezone_set line

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

1 Comment

yes this helps.. i've added date_default_timezone_set('Asia/Calcutta'); and it worked :) tnx

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.