Re: data migration issue

2015-04-17 Thread José Lorenzo
Foreign keys are not marked as accessible by default for security reasons. On Friday, April 17, 2015 at 1:47:58 PM UTC+2, uru...@gmail.com wrote: > > Thanks Lorenzo, I already had read Mass Assignment > on > the book! > >

Re: data migration issue

2015-04-17 Thread urulab
Thanks Lorenzo, I already had read Mass Assignment on the book! bake write: protected $_accessible = [ 'article' => true, 'tag' => true, ]; should be: protected $_accessible = [ '*' =>

Re: data migration issue

2015-04-17 Thread José Lorenzo
Pass ['accessibleFields' => ['*' => true]]; to your newEntity method. You are hitting mass assignment prevention On Friday, April 17, 2015 at 8:58:22 AM UTC+2, uru...@gmail.com wrote: > > When I try to load data into a migration I get the following error > message: > > [RuntimeException]

data migration issue

2015-04-16 Thread urulab
When I try to load data into a migration I get the following error message: [RuntimeException] Cannot insert row, some of the primary key values are missing. Got (, ), ex pecting (article_id, tag_id) from this code: table('articl

Re: migration issue

2014-09-11 Thread 'Dallas' via CakePHP
Paul, I did run both upgrades - the upgrade all and just to upgrade the app - but that removed whatever I did see. so i put it back o the 1.3 version. I would ultimately like to upgrade but for now I just want it working - the error I am getting are all like this: *Strict Standards*: Non-stat

Re: migration issue

2014-09-11 Thread 'Dallas' via CakePHP
Paul - I just checked on my site - and little elves must have been working on it while I have been taking a break - so I am going to try and debug from where it stands - please stand by incase I need you - Thanks again!! D On Thursday, September 11, 2014 2:29:13 PM UTC-4, Dallas wrote: > > Thank

Re: migration issue

2014-09-11 Thread 'Dallas' via CakePHP
Thanks for your response Paul - it was suggested to me to run the upgrade. I am hoping it will get me closer to having everything up and running. I think what I do is use the extra copy of cake - which is now outside my site's folder to bake the app on my site? Is this correct? On Tuesday,

Re: migration issue

2014-09-09 Thread Paul Drage
Why is it you need to go to all that effort just to get your app back up and running? What is your latest error with the actual app/site? - It looks to me like you're nearly there! -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You re

Re: migration issue

2014-09-06 Thread 'Dallas' via CakePHP
Dakota, do you know the answer to this: I am about to run the upgrade shell for the second time, the first time it just installed a new copy of cakephp. Now I have followed all the instructions per the cake website. I am using the console by ssh-ing into my shared server. by my question is, s

Re: migration issue

2014-08-28 Thread 'Dallas' via CakePHP
I am going to try this - I have been avoiding it because I host my site on a shared server and I do not know how to use the console to bake the shells or anything else. So I will go back to youtube to watch how to videos. Any advice would be welcome - I am sure it is not hard - I am just a tot

Re: migration issue

2014-08-27 Thread Dakota
Hi Dallas, Have you tried running the CakePHP 2 upgrade shell? http://book.cakephp.org/2.0/en/console-and-shells/upgrade-shell.html#upgrade-shell It does about 90% of the "grunt" work for you, renames directories, moves files, search and replace things like $html to $this->Html, etc. On Thursd

Re: migration issue

2014-08-27 Thread 'Dallas' via CakePHP
one other thing Stephan, following a migration tutorial I didn't transfer the old index.php from app/webroot/index.php - i kept the 2.5.3 clean version. Should I be bringing over code from the earlier version and addi to 2.5.3 cake or just use the old version. I am getting another error regar

Re: migration issue

2014-08-27 Thread 'Dallas' via CakePHP
Stephan, you were pointing out that my index was outside of class. I tried adding it but I am not sure where? On Wednesday, August 27, 2014 8:09:37 PM UTC-4, Dallas wrote: > > Stephan, > do you know what I can do about this error: > > *Error: *The action *index* is not defined in controller >

Re: migration issue

2014-08-27 Thread 'Dallas' via CakePHP
Stephan, do you know what I can do about this error: *Error: *The action *index* is not defined in controller *GroupsController* *Error: *Create *GroupsController::**index()* in file: app/Controller/GroupsController.php. > GREAT - that got rid of that error - now on to the next. Thanks again

Re: migration issue

2014-08-27 Thread 'Dallas' via CakePHP
GREAT - that got rid of that error - now on to the next. Thanks again Stephan - I just removed RequestHandler from this line: public $components = array('Session'); D On Saturday, August 23, 2014 5:47:08 PM UTC-4, Dallas wrote: > > does anyone know how this should be > > image('index_01.jpg')

Re: migration issue

2014-08-26 Thread Stephen S
Also your index method is outside of your class, is this deliberate? On 26 August 2014 19:48, Stephen S wrote: > It doesn't look like you're using the request handler in this controller > or the construct method, why not remove both? CakePHP 2.x controllers don't > really need to use construct,

Re: migration issue

2014-08-26 Thread Stephen S
It doesn't look like you're using the request handler in this controller or the construct method, why not remove both? CakePHP 2.x controllers don't really need to use construct, beforeFilter is usually more than sufficient. Hope this helps On 26 August 2014 17:31, 'Dallas' via CakePHP wrote:

Re: migration issue

2014-08-26 Thread 'Dallas' via CakePHP
Andras, Thank you, but I already changed this per the stackflow post, and I am still getting the error. I will keep searching. D On Saturday, August 23, 2014 5:47:08 PM UTC-4, Dallas wrote: > > does anyone know how this should be > > image('index_01.jpg'));?> > > and >css('shark')); ?> > >

Re: migration issue

2014-08-25 Thread Andras Kende
try this : http://stackoverflow.com/questions/21455700/cakephp-error-call-to-a-member-function-parseaccept-on-a-non-object or try searching the error message in google "Fatal error: Call to a member function parseAccept() on a non-object" for more results Andras On Aug 25, 2014, at 5:39 PM, 'D

Re: migration issue

2014-08-25 Thread 'Dallas' via CakePHP
Thank you Andras, I have now gotten rid of those errors and now only have one that comes up on every page. I am new to cake, someone else created this site, which I am now attempting to get back up and maintain. The error I now get on all pages refers to the RequestHandler in cake library - he

Re: migration issue

2014-08-23 Thread Andras Kende
Controller::$pageTitle has been removed. Use $this->set('title_for_layout', $var); instead. controller: $this->set('title_for_layout', 'Music That Jumped the Shark ~ groups'); app/View/Layouts/default.ctp and $this->layout = 'home'; should be lowercase.. Andras Kende On Aug 23, 2014, at

Re: migration issue

2014-08-23 Thread 'Dallas' via CakePHP
Thank you Andras - I did fiqure that out, I also saw that when I transfered my helper folder from previous cake it was labeled "helpers" - now on every page I have the same error if you could help me on this I would be most grateful. here is the code:(see highlighted in red) the error is *Parse

Re: migration issue

2014-08-23 Thread Andras Kende
Check these : http://book.cakephp.org/2.0/en/core-libraries/helpers/html.html#HtmlHelper::image http://book.cakephp.org/2.0/en/core-libraries/helpers/html.html#HtmlHelper::css 1.3 -> 2.0 its changed from $html->image to $this->Html->image etc... Andras On Aug 23, 2014, at 2:47 PM, 'Dallas' v

migration issue

2014-08-23 Thread 'Dallas' via CakePHP
does anyone know how this should be image('index_01.jpg'));?> and css('shark')); ?> shark being my stylesheet. when I removed the above css line, my background came up. So I do not know if I no longer need these lines or if the language has changed. They were calling for undefined funct

Re: Migration Issue

2012-10-13 Thread Jonathan Sundquist
Take a look at this tutorial / example. http://book.cakephp.org/2.0/en/tutorials-and-examples/simple-acl-controlled-application/simple-acl-controlled-application.htmlnote how the acrsas has changed. It looks like you may have cake 1.3 syntex. - "The cold winds are rising" On Oct 13, 2012 6:46 PM,

Migration Issue

2012-10-13 Thread CCorreia
Hello. I've just joined a project that is currently using cake as it's framework, and one of the tasks assigned to me was to migrate the existing 2.0 version of cake to the latest (now 2.2.3). Now a situation came up when moving from my windows localhost to the server. It starts to fail right a