Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

cakephp will not launch properly

Posted on 2010-11-11
2
Medium Priority
?
437 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 62

Accepted Solution

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

Author Comment

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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The title says it all. Writing any type of PHP Application or API code that provides high throughput, while under a heavy load, seems to be an arcane art form (Black Magic). This article aims to provide some general guidelines for producing this typ…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses
Course of the Month21 days, 5 hours left to enroll

810 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