?
Solved

cakephp will not launch properly

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

Plug and play, no additional software required!

The ATEN UE3310 USB3.1 Gen1 Extender Cable allows users to extend the distance between the computer and USB devices up to 10 m (33 ft). The UE3310 is a high-quality, cost-effective solution for professional environments such as hospitals, factories and business facilities.

Question has a verified solution.

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

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…
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…
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

770 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