Solved

cakephp will not launch properly

Posted on 2010-11-11
2
428 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 62

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
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 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 …

730 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