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-static method Configure::read() should not be 
called statically in 
*/home/dallasrosie/public_html/musicthatjumpedtheshark.com/cake/basics.php* on 
line *103*
which i can change in cake because I don't want to use the console 
necessarily - but if there was a better fix that didn't mess with the 
console I would want that.  I have tried a couple of stackoverflow forums 
such as this:
 
http://stackoverflow.com/questions/12229113/how-to-eliminate-php5-strict-standards-errors
 

 
- but haven't found a solution yet?  Any ideas?
here is my site musicthatjumpedtheshark.com
On Tuesday, September 9, 2014 8:29:20 AM UTC-4, Paul Drage wrote:
>
> 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 received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


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:
>
> 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, September 9, 2014 8:29:20 AM UTC-4, Paul Drage wrote:
>>
>> 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 received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


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, September 9, 2014 8:29:20 AM UTC-4, Paul Drage wrote:
>
> 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 received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


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, since I mostly need to update the app 
file, and per instructions I have old copy of cake console and new as in 
the lib also I have a copy of the complete cake outside my web address 
named cakephp the rest as per this:

mywebsite/
app/  <- Your App
Console/  <- Copied app/Console Folder
app-backup/   <- Backup Copy of Your App
cake/ <- 1.3 Version of CakePHP
lib/  <- 2.x Version of CakePHP
Cake/
plugins/
vendors/
.htaccess
index.php

now when I cd to do the shell - the console asks me "What is the path to the 
project you want to bake?" and "What is the path to the directory layout you 
wish to copy?  " - please advise what I should use for both - I am thinking 
that I want to bake the mywebsite/app from cakephp/app - but  would that just 
copy?  Please advise.

Thanks for your help


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')); ?>
>
> 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 functions in the 
> error messages.
>
> Thanks for any help
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


checking on final steps for upgrade shell

2014-09-05 Thread &#x27;Dallas&#x27; via CakePHP
Hello Folks,
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, since I mostly need to update the app 
file, and per instructions I have old copy of cake console and new as in 
the lib also I have a copy of the complete cake outside my web address 
named cakephp the rest as per this:

mywebsite/
app/  <- Your App
Console/  <- Copied app/Console Folder
app-backup/   <- Backup Copy of Your App
cake/ <- 1.3 Version of CakePHP
lib/  <- 2.x Version of CakePHP
Cake/
plugins/
vendors/
.htaccess
index.php

now when I cd to do the shell - the console asks me "What is the path to the 
project you want to bake?" and "What is the path to the directory layout you 
wish to copy?  " - please advise what I should use for both - I am thinking 
that I want to bake the mywebsite/app from cakephp/app - but  would that just 
copy?  Please advise.

Thanks for your help


D

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: migration issue

2014-08-28 Thread &#x27;Dallas&#x27; 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 total 
virgin.
Thanks
D

On Thursday, August 28, 2014 2:25:17 AM UTC-4, Dakota wrote:
>
> 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 Thursday, 28 August 2014 02:25:13 UTC+2, Dallas wrote:
>>
>> 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 
>> regarding the dispatcher request response on that file?  Thank you for all 
>> of your help. I am determined to get this back up.
>> D
>>
>> On Tuesday, August 26, 2014 2:50:44 PM UTC-4, Stephen S wrote:
>>>
>>> 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, beforeFilter is usually 
>>>> more than sufficient.
>>>>
>>>> Hope this helps
>>>>
>>>>
>>>> On 26 August 2014 17:31, 'Dallas' via CakePHP >>> > wrote:
>>>>
>>>>> 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')); ?>
>>>>>>
>>>>>> 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 functions in 
>>>>>> the 
>>>>>> error messages.
>>>>>>
>>>>>> Thanks for any help
>>>>>>
>>>>>  -- 
>>>>> Like Us on FaceBook https://www.facebook.com/CakePHP
>>>>> Find us on Twitter http://twitter.com/CakePHP
>>>>>
>>>>> --- 
>>>>> You received this message because you are subscribed to the Google 
>>>>> Groups "CakePHP" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>>> an email to cake-php+u...@googlegroups.com.
>>>>> To post to this group, send email to cake...@googlegroups.com.
>>>>> Visit this group at http://groups.google.com/group/cake-php.
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>>
>>>>
>>>> -- 
>>>> Kind Regards
>>>>  Stephen Speakman
>>>>  
>>>
>>>
>>>
>>> -- 
>>> Kind Regards
>>>  Stephen Speakman
>>>  
>>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: migration issue

2014-08-27 Thread &#x27;Dallas&#x27; 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 
regarding the dispatcher request response on that file?  Thank you for all 
of your help. I am determined to get this back up.
D

On Tuesday, August 26, 2014 2:50:44 PM UTC-4, Stephen S wrote:
>
> 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, beforeFilter is usually more than sufficient.
>>
>> Hope this helps
>>
>>
>> On 26 August 2014 17:31, 'Dallas' via CakePHP > > wrote:
>>
>>> 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')); ?>
>>>>
>>>> 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 functions in the 
>>>> error messages.
>>>>
>>>> Thanks for any help
>>>>
>>>  -- 
>>> Like Us on FaceBook https://www.facebook.com/CakePHP
>>> Find us on Twitter http://twitter.com/CakePHP
>>>
>>> --- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "CakePHP" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to cake-php+u...@googlegroups.com .
>>> To post to this group, send email to cake...@googlegroups.com 
>>> .
>>> Visit this group at http://groups.google.com/group/cake-php.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> -- 
>> Kind Regards
>>  Stephen Speakman
>>  
>
>
>
> -- 
> Kind Regards
>  Stephen Speakman
>  

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: migration issue

2014-08-27 Thread &#x27;Dallas&#x27; 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 
> *GroupsController*
>
> *Error: *Create *GroupsController::**index()* in file: 
> app/Controller/GroupsController.php.
>
>  class GroupsController extends AppController {
> *
>   public function index() {
>
>   }
> *
> }
>
> my GroupController already has this:
>
> class GroupsController extends BaseAppController
>
> {
>
> Thanks
>
> D
>
>
> On Wednesday, August 27, 2014 11:29:07 AM UTC-4, Dallas wrote:
>>
>> 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'));?>
>>>
>>> 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 functions in the 
>>> error messages.
>>>
>>> Thanks for any help
>>>
>>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: migration issue

2014-08-27 Thread &#x27;Dallas&#x27; 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 
> 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'));?>
>>
>> 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 functions in the 
>> error messages.
>>
>> Thanks for any help
>>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: migration issue

2014-08-27 Thread &#x27;Dallas&#x27; 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'));?>
>
> 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 functions in the 
> error messages.
>
> Thanks for any help
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: unidentified index

2014-08-26 Thread &#x27;Dallas&#x27; via CakePHP
Hello Stephan,
Thank you this is helpful.  

On Tuesday, August 26, 2014 1:50:04 PM UTC-4, Dallas wrote:
>
> In migrating from 1.2.5 to 2.5.3 I am getting undefined index for input of 
> name, business name, phone and email.  I updated form as much as possible - 
> but if I use DataHelper - I can no longer use array - is there a quick way 
> to fix this using *isset() **or do i need to rewrite - here is the code: 
> - Thank you*
> echo '';
> echo $this->Form->create(null, array('url' => $loc)); 
> echo $this->Form->hidden('adv_form', array('value' => 'adv_form'));
> echo $this->Form->input('name', array('type'=>'text', 
> 'value'=>$this->data['name'], 'label'=>'', 'after'=>'Contact Name'));
> if(array_key_exists('name', $this->Errors)){echo 
> $this->Errors['name'];}
> echo $this->Form->input('business_name', array('type'=>'text', 
> 'value'=>$this->data['business_name'], 'label'=>'', 'after'=>'Business 
> Name'));
> echo $this->Form->input('phone', array('type'=>'text', 
> 'value'=>$this->data['phone'], 'label'=>'', 'after'=>'Phone Number'));
> if(array_key_exists('phone', $this->Errors)){echo 
> $this->Errors['phone'];}
> echo $this->Form->input('email', array('type'=>'text', 
> 'value'=>$this->data['email'], 'label'=>'', 'after'=>'e-mail'));
> if(array_key_exists('email', $this->Errors)){echo 
> $this->Errors['email'];}
> echo $this->Form->submit('add.gif');
> echo $this->Form->end();
> 
> if($msg != '')
> {
> echo '';
> echo $msg;
> echo '';
> }
> echo '';
> ?>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


unidentified index

2014-08-26 Thread &#x27;Dallas&#x27; via CakePHP
In migrating from 1.2.5 to 2.5.3 I am getting undefined index for input of 
name, business name, phone and email.  I updated form as much as possible - 
but if I use DataHelper - I can no longer use array - is there a quick way 
to fix this using *isset() **or do i need to rewrite - here is the code: - 
Thank you*
echo '';
echo $this->Form->create(null, array('url' => $loc)); 
echo $this->Form->hidden('adv_form', array('value' => 'adv_form'));
echo $this->Form->input('name', array('type'=>'text', 
'value'=>$this->data['name'], 'label'=>'', 'after'=>'Contact Name'));
if(array_key_exists('name', $this->Errors)){echo $this->Errors['name'];}
echo $this->Form->input('business_name', array('type'=>'text', 
'value'=>$this->data['business_name'], 'label'=>'', 'after'=>'Business 
Name'));
echo $this->Form->input('phone', array('type'=>'text', 
'value'=>$this->data['phone'], 'label'=>'', 'after'=>'Phone Number'));
if(array_key_exists('phone', $this->Errors)){echo 
$this->Errors['phone'];}
echo $this->Form->input('email', array('type'=>'text', 
'value'=>$this->data['email'], 'label'=>'', 'after'=>'e-mail'));
if(array_key_exists('email', $this->Errors)){echo 
$this->Errors['email'];}
echo $this->Form->submit('add.gif');
echo $this->Form->end();

if($msg != '')
{
echo '';
echo $msg;
echo '';
}
echo '';
?>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: migration issue

2014-08-26 Thread &#x27;Dallas&#x27; 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')); ?>
>
> 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 functions in the 
> error messages.
>
> Thanks for any help
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: problems while upgrading from cakephp 1.2.5 to 2.5.3

2014-08-25 Thread &#x27;Dallas&#x27; via CakePHP
Thank you Jeremy  - that worked!

On Friday, August 22, 2014 10:03:44 PM UTC-4, Dallas wrote:
>
> I have migrated from  cakephp 1.2.5 to Cake 2.5.3 by installing new cake, 
> importing old database and importing files.  I have made changes to file as 
> per the migration guides but I am getting this error:*Error: * syntax 
> error, unexpected '$this' (T_VARIABLE), expecting function (T_FUNCTION) 
> *File: * /home/dallasrosie/public_html/
> musicthatjumpedtheshark.com/app/Controller/GroupsController.php 
> *Line: * 43
> here is line 43 of GroupsController.php:
>   // Pass through the request and response objects 
> // AND declare the visibility of the method
> public function __construct($request = null, $response = null)
> {
> parent::__construct($request, $response);
> }
> $this->Layout = 'home';
> $this->PageTitle = 'Music That Jumped the Shark ~ groups';
> 
> // get the random ad links
> include('includes/ad_selection.php');
> $this->set('top_ads', $_ads_top_link);
> $this->set('side_ads', $_ads_side_link);
> $this->top_ad_links = $_ads_top_link;
> $this->side_ad_links = $_ads_side_link;
> }
> 
> // DEBUG
> public function under_construction()
> {
> $this->layout = 'temp';
> 
> }
> I am getting this message on all pages like this: 
> musicthatjumpedtheshark.com/groups   /genres ...
>
> and on the blogs/   page I get this error?
> *Error: * Call to a member function parseAccept() on a non-object 
> *File: * /home/dallasrosie/public_html/
> musicthatjumpedtheshark.com/lib/Cake/Controller/Component/RequestHandlerComponent.php
>  
> *Line: * 157
> here is line 157:
>if (!$resp->is_valid)
> {
> # set the error code so that we can display it
> $comment_errors['captcha'] = ' class="error">incorrect response';
> $ret = false;
> }
> }
> 
> // validate comment
> if($data['comment'] == '')
> {
> $comment_errors['comment'] = 'comment may 
> not be empty';
> $ret = false;
> }
>
> Please help.  I don't know if I should be using some kind of shell to 
> upgrade - I don't know how to use them yet.  Any suggestions are GREATLY 
> appreciated.
> Thank you.
>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: migration issue

2014-08-25 Thread &#x27;Dallas&#x27; 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 - here is the error it 
is this line for all the different pages. Please let me know if you know 
how to fix.  Thanks again for all the help!!

*Fatal error*: Call to a member function parseAccept() on a non-object in
*/home/dallasrosie/public_html/musicthatjumpedtheshark.com/lib/Cake/Controller/Component/RequestHandlerComponent.php*
 on line *157*

*line 157 from the RequestHandler is:*






*protected function _setExtension() { $accept = 
$this->request->parseAccept(); if (empty($accept)) { return; }Here is a 
basic page of code from one of the controllers, however I am getting this 
error on the index page as welllayout = 'home';
$this->pageTitle = 'Music That Jumped the Shark ~ admin';} }
 function index(){// login validation
if(!$this->session_login_check()){$this->redirect(array('controller' => 
'admins', 'action' => 'login'));}}?>*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')); ?>
>
> 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 functions in the 
> error messages.
>
> Thanks for any help
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: migration issue

2014-08-23 Thread &#x27;Dallas&#x27; 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 error*: 
syntax error, unexpected '$this' (T_VARIABLE), expecting function 
(T_FUNCTION) in 
*/home/dallasrosie/public_html/musicthatjumpedtheshark.com/app/Controller/GroupsController.php*
 
on line *43 - can you tell me how this is wrong?*
Layout = 'home';
$this->PageTitle = 'Music That Jumped the Shark ~ groups';

// get the random ad links
include('includes/ad_selection.php');
$this->set('top_ads', $_ads_top_link);
$this->set('side_ads', $_ads_side_link);
$this->top_ad_links = $_ads_top_link;
$this->side_ad_links = $_ads_side_link;
}

// DEBUG
public function under_construction()
{
$this->layout = 'temp';

}



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')); ?>
>
> 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 functions in the 
> error messages.
>
> Thanks for any help
>

Dallas 

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


migration issue

2014-08-23 Thread &#x27;Dallas&#x27; 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 functions in the 
error messages.

Thanks for any help

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: problems while upgrading from cakephp 1.2.5 to 2.5.3

2014-08-23 Thread &#x27;Dallas&#x27; via CakePHP
Hello again Jeremy,
Can you explain?  I do not see beforeFilter?  I tried to just remove but I 
get another error message.
Thanks
D

On Friday, August 22, 2014 10:03:44 PM UTC-4, Dallas wrote:
>
> I have migrated from  cakephp 1.2.5 to Cake 2.5.3 by installing new cake, 
> importing old database and importing files.  I have made changes to file as 
> per the migration guides but I am getting this error:*Error: * syntax 
> error, unexpected '$this' (T_VARIABLE), expecting function (T_FUNCTION) 
> *File: * /home/dallasrosie/public_html/
> musicthatjumpedtheshark.com/app/Controller/GroupsController.php 
> *Line: * 43
> here is line 43 of GroupsController.php:
>   // Pass through the request and response objects 
> // AND declare the visibility of the method
> public function __construct($request = null, $response = null)
> {
> parent::__construct($request, $response);
> }
> $this->Layout = 'home';
> $this->PageTitle = 'Music That Jumped the Shark ~ groups';
> 
> // get the random ad links
> include('includes/ad_selection.php');
> $this->set('top_ads', $_ads_top_link);
> $this->set('side_ads', $_ads_side_link);
> $this->top_ad_links = $_ads_top_link;
> $this->side_ad_links = $_ads_side_link;
> }
> 
> // DEBUG
> public function under_construction()
> {
> $this->layout = 'temp';
> 
> }
> I am getting this message on all pages like this: 
> musicthatjumpedtheshark.com/groups   /genres ...
>
> and on the blogs/   page I get this error?
> *Error: * Call to a member function parseAccept() on a non-object 
> *File: * /home/dallasrosie/public_html/
> musicthatjumpedtheshark.com/lib/Cake/Controller/Component/RequestHandlerComponent.php
>  
> *Line: * 157
> here is line 157:
>if (!$resp->is_valid)
> {
> # set the error code so that we can display it
> $comment_errors['captcha'] = ' class="error">incorrect response';
> $ret = false;
> }
> }
> 
> // validate comment
> if($data['comment'] == '')
> {
> $comment_errors['comment'] = 'comment may 
> not be empty';
> $ret = false;
> }
>
> Please help.  I don't know if I should be using some kind of shell to 
> upgrade - I don't know how to use them yet.  Any suggestions are GREATLY 
> appreciated.
> Thank you.
>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: Security salt issue

2014-08-23 Thread &#x27;Dallas&#x27; via CakePHP
Thank you Jeremy for getting back to me.  I do want to keep the security 
salt  from the old installation. On this site I am the only one who logs 
in.  But specifically will the error message affect my site.  I browsed the 
database and the only encrypted number I thought it could be was the 
password for the administrator. Is there somewhere I could add the security 
salt to the database so that I no longer get the error message?  Or do I 
just ignore? Thanks again.

On Friday, August 22, 2014 10:25:20 PM UTC-4, Dallas wrote:
>
> I installed a new version of Cakephp 2.5.3 and am migrating old files. 
>  When I first set up I used a new security salt number then I changed to 
> the salt number from the older version I was migrating because I read that 
> I should do this.  Now I am getting this message:
>
>  
>
> *Notice* (1024): Please change the value of 'Security.salt' in 
> APP/Config/core.php to a salt value specific to your application. 
> [*CORE/Cake/Utility/Debugger.php*, line *846*]
>
>
> Is there a way I can correct this - or should I re-instal and put former salt 
> value in so it gets set right?  Is there a way to correct this in the 
> database?
>
>
> Thank you.
>
> Dallas
>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Security salt issue

2014-08-22 Thread &#x27;Dallas&#x27; via CakePHP
I installed a new version of Cakephp 2.5.3 and am migrating old files. 
 When I first set up I used a new security salt number then I changed to 
the salt number from the older version I was migrating because I read that 
I should do this.  Now I am getting this message:

 

*Notice* (1024): Please change the value of 'Security.salt' in 
APP/Config/core.php to a salt value specific to your application. 
[*CORE/Cake/Utility/Debugger.php*, line *846*]


Is there a way I can correct this - or should I re-instal and put former salt 
value in so it gets set right?  Is there a way to correct this in the database?


Thank you.

Dallas

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


problems while upgrading from cakephp 1.2.5 to 2.5.3

2014-08-22 Thread &#x27;Dallas&#x27; via CakePHP
I have migrated from  cakephp 1.2.5 to Cake 2.5.3 by installing new cake, 
importing old database and importing files.  I have made changes to file as 
per the migration guides but I am getting this error:*Error: * syntax 
error, unexpected '$this' (T_VARIABLE), expecting function (T_FUNCTION) 
*File: * 
/home/dallasrosie/public_html/musicthatjumpedtheshark.com/app/Controller/GroupsController.php
 

*Line: * 43
here is line 43 of GroupsController.php:
  // Pass through the request and response objects 
// AND declare the visibility of the method
public function __construct($request = null, $response = null)
{
parent::__construct($request, $response);
}
$this->Layout = 'home';
$this->PageTitle = 'Music That Jumped the Shark ~ groups';

// get the random ad links
include('includes/ad_selection.php');
$this->set('top_ads', $_ads_top_link);
$this->set('side_ads', $_ads_side_link);
$this->top_ad_links = $_ads_top_link;
$this->side_ad_links = $_ads_side_link;
}

// DEBUG
public function under_construction()
{
$this->layout = 'temp';

}
I am getting this message on all pages like this: 
musicthatjumpedtheshark.com/groups   /genres ...

and on the blogs/   page I get this error?
*Error: * Call to a member function parseAccept() on a non-object 
*File: * 
/home/dallasrosie/public_html/musicthatjumpedtheshark.com/lib/Cake/Controller/Component/RequestHandlerComponent.php
 

*Line: * 157
here is line 157:
   if (!$resp->is_valid)
{
# set the error code so that we can display it
$comment_errors['captcha'] = 'incorrect 
response';
$ret = false;
}
}

// validate comment
if($data['comment'] == '')
{
$comment_errors['comment'] = 'comment may 
not be empty';
$ret = false;
}

Please help.  I don't know if I should be using some kind of shell to 
upgrade - I don't know how to use them yet.  Any suggestions are GREATLY 
appreciated.
Thank you.

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.