Solved

cakephp will not launch properly

Posted on 2010-11-11
2
423 Views
Last Modified: 2012-05-10
Hello,

I'm trying to get into cakephp and downloaded the cakephp docs on my computer.
I have Apache 2.2, PHP 5 and MySQL installed and all sites that I program on my local webserver run perfectly, but when I launch cakephp, this is what I get to see (see attachment). I didn't change anything to the original cakephp files, it's just what I see when I launch the default app.

I run the app on port 1000 (http://localhost:1000/first_app/)

Any idea what could cause this error and how I can fix it?
Warning (2): strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Paris' for '1.0/no DST' instead [CORE\cake\libs\cache.php, line 570]
Code | Context

$settings	=	array(
	"engine" => "File",
	"path" => "C:\www\webroot\first_app\app\tmp\cache\persistent\",
	"prefix" => "cake_core_",
	"lock" => false,
	"serialize" => true,
	"isWindows" => true,
	"duration" => "+10 seconds",
	"probability" => 100
)

strtotime - [internal], line ??
CacheEngine::init() - CORE\cake\libs\cache.php, line 570
FileEngine::init() - CORE\cake\libs\cache\file.php, line 81
Cache::_buildEngine() - CORE\cake\libs\cache.php, line 151
Cache::config() - CORE\cake\libs\cache.php, line 126
Configure::__loadBootstrap() - CORE\cake\libs\configure.php, line 421
Configure::getInstance() - CORE\cake\libs\configure.php, line 52
include - CORE\cake\bootstrap.php, line 38
[main] - APP\webroot\index.php, line 76


Notice: Trying to get property of non-object in C:\www\webroot\first_app\cake\libs\cache\file.php on line 248

Fatal error: Call to a member function cd() on a non-object in C:\www\webroot\first_app\cake\libs\cache\file.php on line 248

Open in new window

0
Comment
Question by:digital1stein
2 Comments
 
LVL 61

Accepted Solution

by:
gheist earned 125 total points
ID: 34119734
Put timezone in PHP.INI
0
 

Author Comment

by:digital1stein
ID: 34122718
That did the trick! Thanks!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now