Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-23-2010, 05:17 AM   PM User | #1
robocopper
New to the CF scene

 
Join Date: Nov 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
robocopper is an unknown quantity at this point
CakePHP permission error

I am a novice developer. I outsourced this script. I have no idea why I am getting this error. Script was previously on shared hosting, now on media temple private server. I did have to change permissions from 755 to 777 to get anything to show up. Any hints, or a reference would be appreciated. Thank you.
*****************
Code:
Warning: fopen(/var/www/vhosts/arizonadealz.com/httpdocs/app/tmp/cache/persistent/cake_core_core_paths) [function.fopen]: failed to open stream: Permission denied in /var/www/vhosts/arizonadealz.com/httpdocs/core/cake/libs/file.php on line 156

Warning (2): fopen(/var/www/vhosts/arizonadealz.com/httpdocs/app/tmp/cache/persistent/cake_core_core_paths) [function.fopen]: failed to open stream: Permission denied [CORE/cake/libs/file.php, line 156]

Code | Context

$mode	=	"w"
$force	=	false

fopen - [internal], line ??
File::open() - CORE/cake/libs/file.php, line 156
File::write() - CORE/cake/libs/file.php, line 244
FileEngine::write() - CORE/cake/libs/cache/file.php, line 148
Cache::write() - CORE/cake/libs/cache.php, line 264
Configure::corePaths() - CORE/cake/libs/configure.php, line 526
Configure::buildPaths() - CORE/cake/libs/configure.php, line 594
Configure::__loadBootstrap() - CORE/cake/libs/configure.php, line 703
Configure::getInstance() - CORE/cake/libs/configure.php, line 137
include - CORE/cake/bootstrap.php, line 43
[main] - APP/webroot/index.php, line 80
robocopper is offline   Reply With Quote
Old 11-23-2010, 02:13 PM   PM User | #2
firepages
Super Moderator


 
Join Date: May 2002
Location: Perth Australia
Posts: 3,890
Thanks: 5
Thanked 79 Times in 78 Posts
firepages will become famous soon enough
what are the permissions and ownership on the folder /var/www/vhosts/arizonadealz.com/httpdocs/app/tmp/cache/persistent/cake_core_core_paths ? it would need to be writable by the web-server.
__________________
resistance is...

MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)
firepages is offline   Reply With Quote
Old 11-29-2010, 07:10 PM   PM User | #3
(mt) matt
New to the CF scene

 
Join Date: Nov 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
(mt) matt is an unknown quantity at this point
Quote:
Originally Posted by robocopper View Post
I am a novice developer. I outsourced this script. I have no idea why I am getting this error. Script was previously on shared hosting, now on media temple private server. I did have to change permissions from 755 to 777 to get anything to show up. Any hints, or a reference would be appreciated. Thank you.
Sorry to hear about the issues you were having with your server. If you want us to take a look at it, I suggest opening up a Support Request so we can further troubleshoot the issue. Are you on a (dv) or a (ve)?
(mt) matt is offline   Reply With Quote
Old 01-18-2011, 05:04 AM   PM User | #4
andy_the baker
New to the CF scene

 
Join Date: Jan 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
andy_the baker is an unknown quantity at this point
Question need help

hi,
i m trying to get the values for drop down option from one module to save in different. but the value are not coming.
can any one suggest me code.

The Controller name in Users_Controller.php
The Action Name is admin_adddetail
and
view is in admin_adddetail.ctp
the module name is "category" from which option will come
and "user" is the module where option will be saved.
(note: the module is the name of database table)

please help.
andy_the baker is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:46 PM.


Advertisement
Log in to turn off these ads.