Solved

cakephp will not launch properly

Posted on 2010-11-11
2
424 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
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 a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

920 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

16 Experts available now in Live!

Get 1:1 Help Now