Re: Fatal error: Call to a member function link() on a non-object in

2015-02-26 Thread euromark
That is 1.2 syntax, this isnt supported for the last 5 years. What kind of code are you working with, and why are you trying to use it with recent versions of CakePHP? Please consult the documentation on how to properly call helpers (besides the fact that this helper doesnt exist anymore). mark

Re: fatal error after baking application using cakephp 3.0

2014-07-18 Thread raji gudivada
@José Lorenzo Thanks alot My problem is solved.changed cakephp version from 2.5.0 to 2.5.2 -- 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

Re: fatal error after baking application using cakephp 3.0

2014-07-17 Thread José Lorenzo
That error does not correspond to CakePHP 3.0 What version are you actually using? On Thursday, July 17, 2014 2:45:39 PM UTC+2, raji gudivada wrote: Hi I am new to cakephp and i used baking concept for my tables. Now i got pages generated but i am unable to do edit and view actions.I am

Re: fatal error after baking application using cakephp 3.0

2014-07-17 Thread raji gudivada
Sorry i am using cakephp 2.5.o version On Thursday, July 17, 2014 6:15:39 PM UTC+5:30, raji gudivada wrote: Hi I am new to cakephp and i used baking concept for my tables. Now i got pages generated but i am unable to do edit and view actions.I am getting error as Unsupported operand

Re: fatal error after baking application using cakephp 3.0

2014-07-17 Thread raji gudivada
Sorry @ jose Lorenzo My current version is cakephp 2.5.0. -- 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

Re: fatal error after baking application using cakephp 3.0

2014-07-17 Thread euromark
So what is in that line? debug() it properly Am Donnerstag, 17. Juli 2014 15:10:13 UTC+2 schrieb raji gudivada: Sorry @ jose Lorenzo My current version is cakephp 2.5.0. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You

Re: fatal error after baking application using cakephp 3.0

2014-07-17 Thread José Lorenzo
Please update to the lastest 2.5 version, what you experience is a known bug of that version On Thursday, July 17, 2014 3:10:13 PM UTC+2, raji gudivada wrote: Sorry @ jose Lorenzo My current version is cakephp 2.5.0. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on

Re: Fatal error: Out of memory (allocated 10485760)

2014-05-24 Thread Stephen S
Looks like you have a 10MB limit in your php config and you're exceeding that limit, common with file uploads especially. http://docs.php.net/manual/en/ini.core.php#ini.memory-limit On 24 May 2014 03:00, 'Chris' via CakePHP cake-php@googlegroups.com wrote: hi guys,... why am I getting this

Re: Fatal Error

2013-09-12 Thread Reuben
You can't use __() on class variables. Normally, you'd need to assign a translated message dynamically. See [ http://book.cakephp.org/2.0/en/models/data-validation.html] and the Dynamically change validation rules section. Requires CakePHP 2.2 to use the nice calls. However, looking at [

Re: Fatal error: Maximum execution time of 30 seconds exceeded

2013-04-01 Thread Ganapathi Raman
Hi, very interesting..! .. I got the same error, when i am new to the PHP..I find that solution It's nothing...Configure your php.ini file...change maximum execution time 30 seconds to 1 seconds.no need to worry.. On Wed, Mar 27, 2013 at 8:07 PM, Elias Munshya

Re: Fatal error: Maximum execution time of 30 seconds exceeded

2013-03-28 Thread Elias Munshya
i agree with On Thursday, August 6, 2009 6:44:37 AM UTC+2, Arif wrote: Thank you for your solution. I have solved my problem according to ur suggestion(Given Function name memory_limit). On Aug 2, 4:28 am, joshua josh...@gmail.com wrote: In my opinion you can give a bigger number to

Re: Fatal error fatal error call to undefined function

2013-03-22 Thread AD7six
By including your combinator helper - or not assuming this helper exists before calling it. AD On Wednesday, 20 March 2013 22:44:38 UTC+1, Chris Steenekamp wrote: Keep getting this error in cake 1.3: fatal error call to undefined function app/views/layout/default.ctp line 7 Here is the

Re: Fatal error: Call to undefined function __l()

2013-02-25 Thread Miguel Carvalho
Osamo, did you've managed to solve this problem? i'm facing the same one . Thanks. On Thursday, 13 January 2011 20:15:27 UTC, cricket wrote: On Wed, Jan 12, 2011 at 8:11 AM, osamo101 osam...@gmail.com javascript: wrote: Should I just through it away and continue? I think you should

Re: Fatal Error : Call to undefined method MydataSource::query()

2012-09-13 Thread Salines
cricket : The method is in the DataSource object. Hence, you don't see an error when you call it properly. Okay, before your answer, in my data source I put the following *public function totalfeeds () {* * * *// get data from remote source* * * *}* * * *public function query(){* *return

Re: Fatal Error : Call to undefined method MydataSource::query()

2012-09-13 Thread Salines
cricket : The method is in the DataSource object. Hence, you don't see an error when you call it properly. Okay, before your answer, in my data source I put the following *public function totalfeeds () {* * * *// get data from remote source* * * *}* * * *public function query(){* *return

Re: Fatal Error on call to '$this-Session-setFlash'

2012-09-13 Thread Tilen Majerle
first..your controller should extends AppController, than make sure SessionComponent in included in your component list :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/9/13 McScreech scre...@sympatico.ca G'day, I do not understand how I induced this error: 'Error: Call to a member

Re: Fatal Error on call to '$this-Session-setFlash'

2012-09-13 Thread McScreech
Thank you very much, I had forgot to include the Session component. I haven't begun a new project in some time (since about cake 1.2) - forgot some basis setup stuff, I guess I was thinking the basic components and helpers were included by default. I do wonder however, how it _was_ able to

Re: Fatal Error on call to '$this-Session-setFlash'

2012-09-13 Thread Tilen Majerle
AppController extends Controller class...and in this class it was automatically added this component. -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/9/13 McScreech scre...@sympatico.ca Thank you very much, I had forgot to include the Session component. I haven't begun a new project in

Re: Fatal Error : Call to undefined method MydataSource::query()

2012-09-12 Thread lowpass
The method is in the DataSource object. Hence, you don't see an error when you call it properly. On Tue, Sep 11, 2012 at 8:59 AM, Salines nikola.parad...@gmail.com wrote: Hi, Could someone of you explain the following: I have made the datasource, where I have a simple custom method, through

Re: Fatal error with fresh installation of CakePHP 2.2 and migrated 2.0 app

2012-08-27 Thread Daniel
That did the trick. Thanks. -- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at

Re: Fatal Error: Class 'String' not found in Model

2012-08-27 Thread Dmitriy Ermolin
http://book.cakephp.org/2.0/en/models/callback-methods.html#beforesave Specify 'array $options = array()' as parameter for beforeSave() and error message will disappear. четверг, 3 мая 2012 г., 4:21:16 UTC+4 пользователь Conor Manning написал: I have a web application that has been working

Re: Fatal error with fresh installation of CakePHP 2.2 and migrated 2.0 app

2012-08-26 Thread Daniel
OK, I forgot to update the .htaccess files. Now I get a different error: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at postmaster@localhost to inform them of the time

Re: Fatal error with fresh installation of CakePHP 2.2 and migrated 2.0 app

2012-08-26 Thread Daniel
To start with I am not sure if .htaccess should be: IfModule mod_rewrite.c RewriteEngine on RewriteRule^$webroot/[L] RewriteRule(.*) webroot/$1[L] /IfModule ... or: IfModule mod_rewrite.c RewriteEngine on RewriteRule^$ app/webroot/[L]

Re: Fatal error with fresh installation of CakePHP 2.2 and migrated 2.0 app

2012-08-26 Thread Daniel
OK, when following the migration guide I had forgot to add the AppHelper.php file. Now I get a different error: Helper class HelperfnsHelper could not be found. *Error: * An Internal Error Has Occurred. Stack Trace - *CORE\Cake\View\View.php line 861* http://localhost/easypeasydating/#→

Re: Fatal error with fresh installation of CakePHP 2.2 and migrated 2.0 app

2012-08-26 Thread Jamie
That's too bad, I was enjoying you replying to yourself as you gradually worked through the problem. :) Remember, in Cake 2 the file names need to match the class names. So if your helper is HelperfnsHelper, your file needs to be HelperfnsHelper.php, not Helperfns.php. - Jamie On Sunday,

Re: Fatal Error: Class 'String' not found in Model

2012-05-05 Thread WyriHaximus
Hey I've encountered the same bug on a different place tho. Are you by any change running with E_STRICT error logging on? Cause going from E_ALL | E_STRICT to just E_ALL 'solved' the problem. (Had this on both windows and linux.) On Thursday, May 3, 2012 2:21:16 AM UTC+2, Conor Manning wrote:

Re: Fatal error when not logged in

2012-02-02 Thread Daniel
I think I solved this problem. I had the following code in the app controller: function beforeFilter() { parent::beforeFilter(); if ($this-action == 'add' || $this-action == 'edit') $this-Auth-authenticate = $this-User; } I added the following check and the

Re: Fatal error: Class 'security' not found... in cake 2

2012-01-09 Thread Miles J
First off, security should be capitalized. Secondly, import it: App::uses('Security', 'Utility'); On Jan 9, 10:09 am, Daniel danwgr...@gmail.com wrote: I imported some code from a cake 1.3 application to cake 2, now I get an error on the following line: $this-data['User']['password'] =

Re: Fatal error: Class 'security' not found... in cake 2

2012-01-09 Thread Tilen Majerle
and for hasing user passwords use AuthComponent::password('yourpassword'); -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/1/9 Miles J mileswjohn...@gmail.com First off, security should be capitalized. Secondly, import it: App::uses('Security', 'Utility'); On Jan 9, 10:09 am, Daniel

Re: Fatal error: Class 'security' not found... in cake 2

2012-01-09 Thread Daniel
Thanks. I'm guessing Utility is not neccessarily needed? On Jan 9, 6:15 pm, Miles J mileswjohn...@gmail.com wrote: First off, security should be capitalized. Secondly, import it: App::uses('Security', 'Utility'); On Jan 9, 10:09 am, Daniel danwgr...@gmail.com wrote: I imported some

Re: Fatal error: Class 'security' not found... in cake 2

2012-01-09 Thread Miles J
It should be needed, it defines the package to import from. On Jan 9, 12:12 pm, Daniel danwgr...@gmail.com wrote: Thanks.  I'm guessing Utility is not neccessarily needed? On Jan 9, 6:15 pm, Miles J mileswjohn...@gmail.com wrote: First off, security should be capitalized. Secondly,

Re: Fatal error: Cannot unset string offsets in ... when displaying image in view

2011-12-18 Thread Daniel
Got it thanks. The amended code is: li?php echo $this-Html-link(__('New Image', true), array('action' = 'add', $gallery_id)); ? /li -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help

Re: Fatal error: Cannot unset string offsets in ... when displaying image in view

2011-12-17 Thread euromark
Why is $gallery_id your third param of link()? I find the error pretty self-explanatory... On 18 Dez., 01:06, Daniel danwgr...@gmail.com wrote: I am displaying an image in a view.ctp file: div class=images view h2?php  __('Image');?/h2         dl?php $i = 0; $class = ' class=altrow';?    

Re: Fatal error: Cannot redeclare class User in C:\xampp\htdocs\didded\app\Model\Use r.php on line 264

2011-10-21 Thread majna
Can you paste User model http://bin.cakephp.org/ -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send

Re: Fatal error: Call to a member function here()

2011-10-12 Thread yo
In general, CakePHP not use a file name like ExceptionRenderer.php. So I think you've probably downloaded a bad version of one. http://cakephp.org/changelogs/2.0.0-RC2 ^Please try 2.0.0-RC2. 2011/10/11 benjam benjamwel...@gmail.com: I ran into a fatal error on my home page. Fatal error: Call

Re: Fatal error: Call to a member function here()

2011-10-12 Thread yo
So sorry, i had not seen 2.0.0... Please forget last post. 2011/10/12 yo yookihi...@gmail.com: In general, CakePHP not use a file name like ExceptionRenderer.php. So I think you've probably downloaded a bad version of one. http://cakephp.org/changelogs/2.0.0-RC2 ^Please try 2.0.0-RC2.

Re: Fatal error: Call to a member function here()

2011-10-11 Thread mark_story
Any idea how you hit that? I've not seen that error before. -Mark On Oct 11, 1:33 am, benjam benjamwel...@gmail.com wrote: I ran into a fatal error on my home page. Fatal error: Call to a member function here() on a non-object in C: \Development\cake_files\cake_2.0.0-rc3\lib\Cake\Error

Re: Fatal Error

2011-08-23 Thread Dr. Loboto
You do not have MySQL driver named mysql installed but demand it in databases.php On 22 авг, 19:37, Shervin kapil shervinka...@nasoindia.com wrote: Hi,     when running my source code following Fatal error is displaying. Fatal error: Call to undefined function mysql_query() in D:

Re: Fatal Error

2011-08-23 Thread Werner Petry Moraes
Hey, You don't have the mysql extension installed. Check out http://www.php.net/manual/en/mysql.installation.php atenciosamente, Werner Petry Moraes werne...@gmail.com On Mon, Aug 22, 2011 at 09:37, Shervin kapil shervinka...@nasoindia.comwrote: Hi, when running my source code following

Re: Fatal error: Call to a member function scripts_for_layout() on a non-object in app/views/layouts/default.ctp on line 38

2011-08-15 Thread O.J. Tibi
Hey Shawn, I'm thinking that you did this in your layout code: ?php echo $this-scripts_for_layout(); ? You should've just done this: ?php echo $scripts_for_layout; ? Cheers, OJ -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP

Re: Fatal error: Maximum execution time of 60 seconds exceeded in

2011-06-21 Thread irving hou
try. set_time_limit(0); perhaps your code exists dead loop.. On Tue, Jun 21, 2011 at 4:15 PM, Richardus Ari P ari.richar...@yahoo.co.idwrote: can you help me. give me solution -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new

Re: Fatal error: Maximum execution time of 60 seconds exceeded in

2011-06-21 Thread Jeremy Burns | Class Outfit
Check your code - you've probably got some sort of endless loop going on. On 21 Jun 2011, at 09:15, Richardus Ari P wrote: can you help me. give me solution -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions

Re: Fatal error: Maximum execution time of 60 seconds exceeded in

2011-06-21 Thread Alkesh Kumar
yes -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com

Re: Fatal error: Maximum execution time of 60 seconds exceeded in

2011-06-21 Thread Gyanendra Singh
please change php ini file On Tue, Jun 21, 2011 at 1:48 PM, Alkesh Kumar alkesh.k.alon...@gmail.comwrote: yes -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their

Re: Fatal error: Maximum execution time of 60 seconds exceeded in

2011-06-21 Thread AD7six
On Jun 21, 10:15 am, Richardus Ari P ari.richar...@yahoo.co.id wrote: can you help me. give me solution Multiple choice: 1) replace webroot/index.php with the following: pHello world!/p 2) read error message, think a bit 3) post error message, and some relevant, unedited, code.

Re: Fatal error: Maximum execution time of 60 seconds exceeded in

2011-06-21 Thread Jon Bennett
Multiple choice: 1) replace webroot/index.php with the following: pHello world!/p 2) read error message, think a bit 3) post error message, and some relevant, unedited, code. option 1 is my fav. j -- jon bennett - www.jben.net - blog.jben.net -- Our newest site for the community:

Re: Fatal error: Call to undefined method CakeRoute::__set_state()

2011-02-20 Thread Jeremy Burns | Class Outfit
Hi John I haven't yet, but will. The reason I didn't carry it through is because it is changing core Cake files. I am doing nothing special with cache, the page that throws the error is an extremely simple landing page, I have only seen this is one instance and it is only on my remote server

Re: Fatal error: Call to undefined method CakeRoute::__set_state()

2011-02-19 Thread John Andersen
Hi Jeremy, If the defect you refer to is the one at: http://cakephp.lighthouseapp.com/projects/42648/tickets/1486-cached-view-throws-an-undefined-method-cakeroute__set_state then it has been resolved. Does the solution not work in your case? Enjoy, John On Feb 19, 9:20 pm, Jeremy Burns

Re: Fatal error: Allowed memory size of 134217728 bytes... When calling a simple static text element?

2011-01-13 Thread OldWest
I've got this solved by changing the way I was calling in the element. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this

Re: Fatal error: Allowed memory size of 134217728 bytes... When calling a simple static text element?

2011-01-13 Thread Miles J
I may be wrong, but it looked like an infinite loop? On Jan 13, 11:48 am, OldWest jason.wy...@gmail.com wrote: I've got this solved by changing the way I was calling in the element. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

Re: Fatal error: Call to undefined function __l()

2011-01-13 Thread cricket
On Wed, Jan 12, 2011 at 8:11 AM, osamo101 osamo...@gmail.com wrote: Should I just through it away and continue? I think you should look for this __l() function in the original app's bootstrap.php (or maybe it's in core.php, although putting it there would be wrong). There's got to be a rational

Re: Fatal error: Allowed memory size of 134217728 bytes... When calling a simple static text element?

2011-01-13 Thread OldWest
It had to be infinite somehow. Was a typo on my end. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to

Re: Fatal error: Call to undefined function __l()

2011-01-12 Thread osamo101
Should I just through it away and continue? On Jan 11, 9:46 pm, cricket zijn.digi...@gmail.com wrote: On Tue, Jan 11, 2011 at 4:09 AM, osamo101 osamo...@gmail.com wrote: Hi Amit, This is very strange, the __l() is repeated in the code over 8000 times with strings i.e. __l('Delete'), do

Re: Fatal error: Call to undefined function __l()

2011-01-11 Thread osamo101
Hi Amit, This is very strange, the __l() is repeated in the code over 8000 times with strings i.e. __l('Delete'), do you have any idea about how this can happen? On Jan 11, 8:46 am, Amit Badkas amit.sanis...@gmail.com wrote: Hi, I don't think there is/was any __l() function in CakePHP-1.2.x,

Re: Fatal error: Call to undefined function __l()

2011-01-11 Thread Amit Badkas
Hi, You can check in the old code, in which file does the 'function __l' string contain. Amit Badkas PHP Applications for E-Biz: http://www.sanisoft.com On Tue, Jan 11, 2011 at 2:39 PM, osamo101 osamo...@gmail.com wrote: Hi Amit, This is very strange, the __l() is repeated in the code

Re: Fatal error: Call to undefined function __l()

2011-01-11 Thread cricket
On Tue, Jan 11, 2011 at 4:09 AM, osamo101 osamo...@gmail.com wrote: Hi Amit, This is very strange, the __l() is repeated in the code over 8000 times with strings i.e. __l('Delete'), do you have any idea about how this can happen? I don't believe it's a Cake function. Perhaps it was defined

Re: Fatal error: Call to undefined function __l()

2011-01-10 Thread Amit Badkas
Hi, I don't think there is/was any __l() function in CakePHP-1.2.x, it may be written in any file which got overwritten. Amit Badkas PHP Applications for E-Biz: http://www.sanisoft.com On Tue, Jan 11, 2011 at 12:09 PM, osamo101 osamo...@gmail.com wrote: Hello, I have a website written in

RE: Fatal Error

2011-01-06 Thread Dave Maharaj
@googlegroups.com Subject: RE: Fatal Error Hmm.I know php was running because I did php info before putting cake. Just ran sudo command [..] 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. But will check phpinfo now. Thanks, Dave From: Andras Kende

Re: Fatal Error

2011-01-05 Thread Andras Kende
Look like mysql module is not loaded, try: sudo aptitude install php5-mysql make sure ?php phpino(); shows mysql stuff too... Andras Kende http://www.kende.com On Jan 5, 2011, at 9:47 PM, Dave Maharaj wrote: Yep Im the on setting up the new install on nginx but something unrelated

Re: Fatal Error

2011-01-05 Thread adilraufk...@gmail.com
just delete your all cache files in cache folder and refresh the browser ... might be it is just a cache problem, i had once experienced the same problem. On Jan 6, 7:47 am, Dave Maharaj m...@davemaharaj.com wrote: Yep Im the on setting up the new install on nginx but something unrelated maybe?

RE: Fatal Error

2011-01-05 Thread Dave Maharaj
: Thursday, January 06, 2011 12:33 AM To: cake-php@googlegroups.com Subject: Re: Fatal Error Look like mysql module is not loaded, try: sudo aptitude install php5-mysql make sure ?php phpino(); shows mysql stuff too... Andras Kende http://www.kende.com On Jan 5, 2011, at 9:47 PM

RE: Fatal Error

2011-01-05 Thread Dave Maharaj
, January 06, 2011 1:26 AM To: CakePHP Subject: Re: Fatal Error just delete your all cache files in cache folder and refresh the browser ... might be it is just a cache problem, i had once experienced the same problem. On Jan 6, 7:47 am, Dave Maharaj m...@davemaharaj.com wrote: Yep Im

RE: Fatal Error

2011-01-05 Thread Dave Maharaj
Nope still nothing. Got my hopes up for a second there. Said missing database driver but now back to the FATAL ERROR. From: Dave Maharaj [mailto:m...@davemaharaj.com] Sent: Thursday, January 06, 2011 1:31 AM To: cake-php@googlegroups.com Subject: RE: Fatal Error Hmm.I know php

Re: Fatal Error

2011-01-05 Thread Ryan Schmidt
On Jan 5, 2011, at 23:43, Dave Maharaj wrote: On Jan 5, 2011, at 9:47 PM, Dave Maharaj wrote: Im getting Fatal error: Call to undefined function mysql_query() in / libs/1.3.6/cake/libs/model/datasources/dbo/dbo_mysql.php on line 600 Got my hopes up for a second there. Said missing

Re: Fatal error: Call to a member function entity() on a non-object in /var/www/cake/1.3/cake/libs/view/helper.php on line 567

2010-11-27 Thread piousbox
O, I have it: class TextHelper extends AppHelper { var $helpers = array('Html', 'Form'); and it works, both $this-Html and $this-Form. But when I try to test, and test only, then the Form helper inside TextHelper, but not Html helper, triggers the error, and only while testing. Perhaps a bug

Re: Fatal error: Call to a member function entity() on a non-object in /var/www/cake/1.3/cake/libs/view/helper.php on line 567

2010-11-27 Thread Tilen Majerle
hmm...TextHelper is included default with cake...maybe this is problem...or... function __construct() { parent::__construct(); App::import('Helper', 'Html'); $this-Html = new HtmlHelper(); App::import('Helper', 'Form'); $this-Form = new FormHelper(); }

Re: Fatal error: Call to a member function entity() on a non-object in /var/www/cake/1.3/cake/libs/view/helper.php on line 567

2010-11-26 Thread Tilen Majerle
u need to use *var $helpers = array(list, of, helpers);* in helper class which helpers will helper use :D i think this is problem... -- Tilen Majerle http://majerle.eu 2010/11/26 piousbox pious...@gmail.com I get this while testing. Here's my test code: function testLogin_register() {

Re: Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 207 bytes

2010-11-20 Thread j.blotus
Why don't you try writing small amounts of data in a loop, then unsetting whatever is eating up the memory? Send 1000 records to your component and unset the whole thing when it finished, reload and do it again until complete. On Nov 18, 12:20 am, Sreenivas S Nair ♫ sreenivasn...@gmail.com

Re: Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 207 bytes

2010-11-19 Thread Renato de Freitas Freire
I had same problem with some 'export to excel' feature. Today i have 1.5GB in php memory_limit. Anyone have a lighter solution to export data? Im using php_excel to export it. -- Renato de Freitas Freire ren...@morfer.org On Fri, Nov 19, 2010 at 8:10 AM, Sreenivas S Nair ♫

Re: Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 207 bytes

2010-11-19 Thread Sreenivas S Nair ♫
the total number of farmers registered in the application is 3000+, and their return details and application added.the mysql data base is very large On Fri, Nov 19, 2010 at 3:40 PM, Sreenivas S Nair ♫ sreenivasn...@gmail.com wrote: Am working in a web application development company, this

Re: Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 207 bytes

2010-11-19 Thread Jeremy Burns | Class Outfit
Wow. That's a LOT of heavy lifting. Even if you increased ram, cpu and strapped on a booster rocket it's still a lot of data. Is this efficient - can you be more precise with your queries? I wonder what the user experience is like... Jeremy Burns Class Outfit jeremybu...@classoutfit.com

Re: Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 207 bytes

2010-11-19 Thread Braindead
What about not using php_excel and writing Office XML using a simple helper? That's the way I do it and it's working quite well. Of course the helper has only a few features, but for simple exports that's ok. Check out the new CakePHP Questions site http://cakeqs.org and help others with their

Re: Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 207 bytes

2010-11-19 Thread AD7six
On Nov 19, 2:16 pm, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: Wow. That's a LOT of heavy lifting. Even if you increased ram, cpu and strapped on a booster rocket it's still a lot of data. Is this efficient - can you be more precise with your queries? I wonder what the

Re: Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 207 bytes

2010-11-19 Thread AD7six
On Nov 19, 2:23 pm, Braindead markus.he...@gmail.com wrote: What about not using php_excel and writing Office XML using a simple helper? That's the way I do it and it's working quite well. Of course the helper has only a few features, but for simple exports that's ok. IMO/IME you're a

Re: Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 207 bytes

2010-11-19 Thread Renato de Freitas Freire
In my case, my client explicity asked for an 'excel export feature'. I tried to do it in csv, but he didnt like it. Exporting directly with a simple helper, I had the same results. Just work if I increase the memory for php. Seems not to have another way to do it. -- Renato de Freitas Freire

Re: Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 207 bytes

2010-11-19 Thread Jeremy Burns | Class Outfit
Sometimes the client (who is paying you to provide a solution) does not always know best. What he wants is the data moved somewhere, not an 'excel export feature'. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 19 Nov 2010, at 14:03, Renato de Freitas

Re: Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 207 bytes

2010-11-19 Thread AD7six
On Nov 19, 3:03 pm, Renato de Freitas Freire renat...@gmail.com wrote: In my case, my client explicity asked for an 'excel export feature'. I tried to do it in csv, but he didnt like it. Exporting directly with a simple helper, I had the same results. Just work if I increase the memory for

Re: Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 207 bytes

2010-11-19 Thread Renato de Freitas Freire
Yeah.. my table is near 1gb... Something like 800mb or a little more... Im doing something like this: $data = $this-Model-find('all',array('conditions' = array('Model.ok' = 1))); foreach($data as $row) { foreach($row as $key = $value) { // here i call phpexcel (or the helper) to

Re: Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 207 bytes

2010-11-19 Thread cricket
On Fri, Nov 19, 2010 at 11:59 AM, Renato de Freitas Freire renat...@gmail.com wrote: Yeah.. my table is near 1gb... Something like 800mb or a little more... Im doing something like this: $data = $this-Model-find('all',array('conditions' = array('Model.ok' = 1))); foreach($data as $row) {   

Re: Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 207 bytes

2010-11-19 Thread Renato de Freitas Freire
hmm... I'll try it later... tnx alot ˆˆ -- Renato de Freitas Freire ren...@morfer.org On Fri, Nov 19, 2010 at 3:05 PM, cricket zijn.digi...@gmail.com wrote: On Fri, Nov 19, 2010 at 11:59 AM, Renato de Freitas Freire renat...@gmail.com wrote: Yeah.. my table is near 1gb... Something

Re: Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 207 bytes

2010-11-18 Thread euromark
what exactly are you doing? no way in hell that you need 290MB for user output (views) On 18 Nov., 05:20, Sreenivas S Nair ♫ sreenivasn...@gmail.com wrote: Hi, Am hosting a web application which gets a very large amount of data every day.The mysql queries are  optimized to a maximum and also

Re: Fatal Error and warnings on cakephp core with PHP 5.3

2010-11-14 Thread Crazy
It has nothing to do with cakephp, it's php 5.3 config that is wrong. Add date_default_timezone_set('America/Chicago'); to your core.php or date.timezone = America/Chicago to your php.ini see php.net for a complete list of supported timezones On 13 nov, 20:57, cricket

Re: Fatal Error and warnings on cakephp core with PHP 5.3

2010-11-14 Thread AD7six
On Nov 14, 12:06 pm, Crazy crazy...@gmail.com wrote: It has nothing to do with cakephp, it's php 5.3 config that is wrong. Add date_default_timezone_set('America/Chicago'); to your core.php or date.timezone = America/Chicago to your php.ini OR read the error message. Check out the new

Re: Fatal Error and warnings on cakephp core with PHP 5.3

2010-11-13 Thread cricket
On Sat, Nov 13, 2010 at 9:12 AM, marco.rizze...@gmail.com marco.rizze...@gmail.com wrote: Hi I have downloaded cakephp 1.3.5.0 and I have PHP 5.3.3 I have unzip cake and I try to see if it works correctly and I get this errors : Warning (2): strtotime() [function.strtotime]: It is not safe

Re: Fatal error: Call to undefined method CookieComponent::del()

2010-10-08 Thread Tilen Majerle
use delete method not del :D -- Tilen Majerle http://majerle.eu 2010/10/8 n4thancake hellbr...@gmail.com Hi to all I have this strange error in my code. I want to make a cookie system with cakephp, and in app_controller.php I include var $components = array('Auth', 'Cookie'); var $helpers

Re: Fatal error: Out of memory - Even when there is no memory limit

2010-10-07 Thread devilinc
i had faced it and it was more of while parsing large xml files to display our data..faced this same error...so it is something got to do with your controller consuming memory or hitting a roadblock where memory is being consumed.u need to debug to find out whereuse the memory code

Re: Fatal error: Out of memory - Even when there is no memory limit

2010-10-06 Thread Jeremy Burns | Class Outfit
It looks like you have some sort of loop in your code, or your query is returning far too much data. Try putting some debug statements into the display action of your nodes_controller before rendering the view to see what's happening. Maybe there are some code and/or database differences

Re: Fatal error: Out of memory - Even when there is no memory limit

2010-10-06 Thread j.blotus
when you do phpinfo() from inside that view, does it still show -1 for memory limit? On Oct 5, 11:28 am, Fuitad fui...@gmail.com wrote: Hello, I'm in charge of transferring a live CakePHP application from one server to another. I'm trying to get the new site to work but I'm hitting a weird

Re: Fatal Error::

2010-09-13 Thread Miles J
Try changing to this and see if you get the same error: $options = $options + array('inline' = true); On Sep 13, 10:16 am, Dave Maharaj m...@davemaharaj.com wrote: All of a sudden I am getting a Fatal error: Unsupported operand types in /1.3.4/cake/libs/view/helpers/html.php on line 337

RE: Fatal Error::

2010-09-13 Thread Dave Maharaj
No luck. I just went to my backup copy from last night. Easier :) Thanks. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this

Re: Fatal Error::

2010-09-13 Thread Miles J
That's weird. What version of PHP are you running? On Sep 13, 12:06 pm, Dave Maharaj m...@davemaharaj.com wrote: No luck. I just went to my backup copy from last night. Easier  :) Thanks. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related

RE: Fatal Error::

2010-09-13 Thread Dave Maharaj
Server info says PHP 5.2 My guess is it was something I did and forgot to check after a change. But it's all working fine now. Not sure why the HTML helper threw an error since its never ever touched. Check out the new CakePHP Questions site http://cakeqs.org and help others with their

Re: Fatal Error::

2010-09-13 Thread Dr. Loboto
Just do not pass strings as $options parameter. It must be array. On Sep 14, 6:55 am, Dave Maharaj m...@davemaharaj.com wrote: Server info says PHP 5.2 My guess is it was something I did and forgot to check after a change. But it's all working fine now. Not sure why the HTML helper threw an

Re: Fatal error: Allowed memory size of 16777216 bytes exhausted

2010-07-14 Thread Kirk
i've been attempting to reduce memory consumption on my app too. use debug($this) to see the different objects loaded into memory, and make sure to pass by reference where possible. i also added this snippet at the bottom of my default.ctp: echo 'uMemory Usage:/ubr /'; $memory_in_bytes =

Re: Fatal error: Allowed memory size of 16777216 bytes exhausted

2010-07-13 Thread Ayman Bedair
This happened with me on the local windows server while testing, didn't really see the problem up on my live one. Anyway if u have access to the PHP.INI file you can just go there and edit the memory_limit = 16M value to something like memory_limit = 50M. I had this set to 150MB and it didn't

Re: Fatal error: Allowed memory size of 16777216 bytes exhausted

2010-07-13 Thread Jeremy Burns | Class Outfit
I'd also check your model associations and controller code to check that you are not in a recursive loop, retrieving too much data or have some other gotcha. IMO, I think it's better to get to and fix the root cause rather than just paper over it. If your memory is really being stretched, then

Re: Fatal error: Call to undefined method ThemeView::RenderElement()

2010-07-07 Thread Jeremy Burns | Class Outfit
http://book.cakephp.org/view/1566/View-and-Helpers Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 7 Jul 2010, at 05:58, arif hossen wrote: Dear Experts, I need help. i got below this problem when i have added renderElement in my layout. I have also

Re: fatal error in create()

2010-07-06 Thread Shaz
Try $this-aro-create() instead. On Jul 6, 1:12 pm, Kanwal enggkanwalj...@gmail.com wrote: i have one controller in which i have following function: var $components = array('Acl'); function anyaction() {         $aro = $this-Acl-Aro;         //Here's all of our group info in an array we

Re: Fatal error: Class 'I18n' not found in

2010-07-01 Thread Jonas
Okay, for anyone else getting this. Remember to force your memcached to flush the cache... http://kevin.vanzonneveld.net/techblog/article/flush_memcached_using_bash/ Thanks :) /Jonas On Jul 1, 4:43 pm, Jonas jonas.sand...@gmail.com wrote: Hello, I just tried to re-arrange an old 1.2

Re: Fatal error: Call to undefined method Add::find()

2010-06-20 Thread Mateo San Román
Don't use 'Add' as a model name. Besides not having sense, it will conflict with the baked Add controller method. Best regards On 18 jun, 22:07, Davor Ilic webfa...@gmail.com wrote: Do anybody know why this issue is showing??? what i´ve done is only to add in my method : $this-set('adds',

  1   2   3   >