Re: Bug: flaws in email validation/sending

2016-01-31 Thread euromark
Please open a ticket at https://github.com/cakephp/cakephp/issues This is just a discission board, not a bug tracker. Mark Am Samstag, 30. Januar 2016 05:33:10 UTC+1 schrieb Kim: > > >- CakePHP's email validation allows non-ASCII letter characters, e.g. >á, in the

Bug: flaws in email validation/sending

2016-01-29 Thread Kim
- CakePHP's email validation allows non-ASCII letter characters, e.g. á, in the local part of the email address (by the \p{L} unicode category construct). This should not be allowed, see https://en.wikipedia.org/wiki/Email_address#Local_part. - It also allows non-ASCII

Bug in 3.1.2?

2015-10-20 Thread ProFire
I've recently updated my application to 3.1.2 from 3.1.1. I'm encountering an exception: Exception: Cannot convert value to bool in [PATHTO\vendor\cakephp\cakephp\src\Database\Type\BoolType.php, line 47] I'm using MySQL and SQLite for database. This error didn't occur in 3.1.1 When I

Re: 3.0 - routing bug?

2015-03-21 Thread mark_story
Router::reverse() is intended to convert the results of parse() in url string. Reverse takes positional parameters in a different location which is how it differs from url(). -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You

Re: 3.0 - routing bug?

2015-03-20 Thread José Lorenzo
/view/123 then Router::url(Router::parse($url)) = /users/view?pass%5B0%5D=123 This leads to the following bug in my App: // In UsersController function login() { if ($this-request-is('post')) { $user = $this-Auth-identify(); if ($user) { $this-Auth-setUser

Re: 3.0 - routing bug?

2015-03-20 Thread Pgbi
was the inverse of Router::url. In other words, I thought that $url == Router::url(Router::parse($url))would always be true. Just found out this was not the case. If $url = /users/view/123 then Router::url(Router::parse($url)) = /users/view?pass%5B0%5D=123 This leads to the following bug

Re: 3.0 - routing bug?

2015-03-19 Thread José Lorenzo
was the inverse of Router::url. In other words, I thought that $url == Router::url(Router::parse($url))would always be true. Just found out this was not the case. If $url = /users/view/123 then Router::url(Router::parse($url)) = /users/view?pass%5B0%5D=123 This leads to the following bug in my App

Re: 3.0 - routing bug?

2015-03-19 Thread Pgbi
found out this was not the case. If $url = /users/view/123 then Router::url(Router::parse($url)) = /users/view?pass%5B0%5D=123 This leads to the following bug in my App: // In UsersController function login() { if ($this-request-is('post')) { $user = $this-Auth-identify

3.0 - routing bug?

2015-03-18 Thread Pgbi
/view?pass%5B0%5D=123 This leads to the following bug in my App: // In UsersController function login() { if ($this-request-is('post')) { $user = $this-Auth-identify(); if ($user) { $this-Auth-setUser($user); $url = $this-Auth-redirectUrl(); // let's say

Re: Unknown Bug

2014-12-08 Thread mark_story
It totally sounds like a mod_rewrite issue. You mentioned that cake 'hated' being in rewriteless mode. What exactly happened? -Mark On Wednesday, 3 December 2014 14:14:41 UTC-5, florida...@gmail.com wrote: Unknown bug in either setup or programming (not limited to Cake) The combination: HP

Unknown Bug

2014-12-05 Thread floridacarking
Unknown bug in either setup or programming (not limited to Cake) The combination: HP 15 Touchsmart Laptop w/ Win8.1 --- Wamp Server 2.5 -- Cakephp 2.5.5 I have looked online for 2 days now. There is no solution. Originally thought it was a mod-rewrite issue. Issue is that blog

Re: BUg in 2.5 ? database session blows up csrf checks (Cakephp 2.5.0-RC1 )

2014-04-23 Thread mark_story
What does your session config data look like? Mark -- 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

Re: BUg in 2.5 ? database session blows up csrf checks (Cakephp 2.5.0-RC1 )

2014-04-22 Thread Mandar P
Thanks Mark What debug data should i supply to confirm above issue? On Tuesday, 22 April 2014 03:35:51 UTC+1, mark_story wrote: I just checked locally on a new copy of CakePHP 2.5.0, and wasn't able to reproduce the issue. I used a baked MVC, SecurityComponent and set 'defaults' =

Re: BUg in 2.5 ? database session blows up csrf checks (Cakephp 2.5.0-RC1 )

2014-04-21 Thread mark_story
I just checked locally on a new copy of CakePHP 2.5.0, and wasn't able to reproduce the issue. I used a baked MVC, SecurityComponent and set 'defaults' = 'database' in core.php for the session setup. -Mark On Friday, 18 April 2014 18:09:23 UTC-4, Mandar P wrote: Any one have any idea how to

Re: BUg in 2.5 ? database session blows up csrf checks (Cakephp 2.5.0-RC1 )

2014-04-20 Thread Mandar P
Any one have any idea how to fix this issue ? Thanks, Mandar On Thursday, 17 April 2014 15:27:26 UTC+1, Mandar P wrote: Hi, Im using 2.5 to build simple crud application with csrf enabled. When using php based sessions everything works fine but changing it to database sessions csrf

BUg in 2.5 ? database session blows up csrf checks (Cakephp 2.5.0-RC1 )

2014-04-17 Thread Mandar P
Hi, Im using 2.5 to build simple crud application with csrf enabled. When using php based sessions everything works fine but changing it to database sessions csrf black-hole occurs on edit form submission. Please note that add form works absolutely fine irrespective of php/db based session.

CakePHP ComboSession serious looping bug in documentation

2013-09-12 Thread chaoszcat
triggered, and so *old session data is survived*. 7. Go to step 1 and continues looping, and PHP will dies either the whole memory get filled up or time out. To reproduce, we use this modified version of ComboSession to simulate the problem: *(The following code is to demonstrate the bug

Re: CakePHP ComboSession serious looping bug in documentation

2013-09-12 Thread Lionel Chan
data is survived*. 7. Go to step 1 and continues looping, and PHP will dies either the whole memory get filled up or time out. To reproduce, we use this modified version of ComboSession to simulate the problem: *(The following code is to demonstrate the bug, not a working copy!)* ?php

Re: Bug in edit user

2013-05-20 Thread lowpass
$this-request-data['User']['id'] = $this-Auth-user('id'); You are assigning the administrator's id to the record. Unless your administrator is trying to edit its own record, this is not what you want. On Fri, May 17, 2013 at 2:23 PM, Guilherme Magno routma...@gmail.comwrote: Hello people,

Bug in edit user

2013-05-17 Thread Guilherme Magno
Hello people, I'm having a big problem on the editing a User, I use the following code: class UsersController extends AppController { public function beforeFilter() { parent::beforeFilter(); } ... public function edit($id = null) {

Bug in Cache/CacheEngine.php at Line 60 wehnelt i use netbeans plugin

2013-05-03 Thread Jacques Levavasseur
I add date_default_timezone_set('Europe/Paris') because Therese si an error Wotherspoon strtotime -- 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.

Bug on Manually Login with AuthComponent

2013-05-02 Thread lhas
Hi, people! I'm doing a manual login action, where i find the user based on your username (findByUsername). If the user exists, i want to force login the user to the AuthComponent. Else, i register the user (success). When i try to force the login of the user, i have a some kind of bug: I

Re: Bug on Manually Login with AuthComponent

2013-05-02 Thread Jeremy Burns | Class Outfit
to force login the user to the AuthComponent. Else, i register the user (success). When i try to force the login of the user, i have a some kind of bug: I try to login like this: $this-Auth-login($user_exists['User']); Where $user_exists['User'] contains all the User array with all the user

Re: Bug in CakeSession class

2013-03-14 Thread majna
The value of self::started() can be true later on, when session is actually started, right? https://github.com/cakephp/cakephp/blob/master/lib/Cake/Model/Datasource/CakeSession.php#L187 I don't think it's a bug. On Wednesday, March 13, 2013 1:26:19 AM UTC+1, Eduardo Barbosa Moreira wrote

Re: Bug in CakeSession class

2013-03-14 Thread lowpass
On Thu, Mar 14, 2013 at 6:07 AM, majna majna...@gmail.com wrote: The value of self::started() can be true later on, when session is actually started, right? https://github.com/cakephp/cakephp/blob/master/lib/Cake/Model/Datasource/CakeSession.php#L187 I don't think it's a bug. Oh, gosh

Bug in CakeSession class

2013-03-13 Thread Eduardo Barbosa Moreira
this bug? -- 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

Bug in CakeSession class

2013-03-13 Thread Eduardo Barbosa Moreira
There is an inconsistent logic In the method start() in CakeSession class (lib/Model/DataSource/CakeSession.php): at line -- 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

Re: Bug in CakeSession class

2013-03-13 Thread lowpass
it was tested at line 183: if (self::started()) { return true; } Yeah, I'd say that one doesn't require a unit test to prove. It's in the latest stable (2.3.1) and goes back to 2.0, when CakeSession first appeared. How can i report this bug? You can log a ticket here: https

Re: CakePHP 2.3.0: Bug in CacheEngine?

2013-03-01 Thread majna
deeper and put some debug info in the related FileEngine.php and ApcEngine.php. Result: The functions (clear clearGroup) in ApcEngine.php are never used - instead the ones of the FileEngine.php are used. Its clear, that this does not work. Is this a bug? Ive debugged the $engine-variable

CakePHP 2.3.0: Bug in CacheEngine?

2013-02-27 Thread LDSign
. Result: The functions (clear clearGroup) in ApcEngine.php are never used - instead the ones of the FileEngine.php are used. Its clear, that this does not work. Is this a bug? Ive debugged the $engine-variable in core.php. It is Apc like it should - File isn't used at all anymore in my app. Thanks

Bug? CakePHP 1.3.15 and database name

2013-01-14 Thread naidim
Running LAMP stack on RedHat EL6.1 x64, PHP 5.4.10, MySQL 5.5.29, and CakePHP 1.3.15 I have a MySQL database named cms3.drupal and while CakePHP can connect to it just fine, it can't see any of the tables. I could rename the database (I did to test this issue and it worked fine), but that

Re: Bug? CakePHP 1.3.15 and database name

2013-01-14 Thread naidim
Looks like this has already been reported, fixed but is still broken. http://cakephp.lighthouseapp.com/projects/42648/tickets/1357-database-name-cannot-contain-period -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this

Auth allow bug? or feature?

2012-05-06 Thread bs28723
authorization is denied. Is this a bug? or a feature? If feature, should I just remove any Allow's from AppController? or is there another workaround? Thanks, Bill -- View this message in context: http://cakephp.1045679.n5.nabble.com/Auth-allow-bug-or-feature-tp5689260.html Sent from the CakePHP mailing

Re: Auth allow bug? or feature?

2012-05-06 Thread stork
Sounds like unfinished upgrade from 2.0 to 2.1 http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#making-actions-public -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org

Re: Auth allow bug? or feature?

2012-05-06 Thread bs28723
-php If you reply to this email, your message will be added to the discussion below: http://cakephp.1045679.n5.nabble.com/Auth-allow-bug-or-feature-tp5689260p5689350.html To start a new topic under CakePHP, email

BUG Translate Behaviour and Related Models

2012-04-18 Thread Fábio
Its hard to understand why this conflit is still present in cake 2.1, as it has been noticed by many people since version 1.2. I made tons of searches in google and coudnt find any useful awnser. I was testing it in cake 2.0, but when i figured out that it was a cake problem i tryed to update

Translations Behaviour and Associated Models bug

2012-04-17 Thread Fábio
Its hard to understand why this conflit is still present in cake 2.1, as it has been noticed by many people since version 1.2. I made tons of searches in google and coudnt find any useful awnser. I was testing it in cake 2.0, but when i figured out that it was a cake problem i tryed to update

bug in CakeRequest?

2012-04-17 Thread lowpass
Using 2.1.1, but 2.0.6 is the same. The names of my cached views look pretty strange: en_archive_2_url_en_2farchive_2f2.php en_archive_3_url_en_2farchive_2f3.php en_archive_url_en_2farchive.php en_contributors_2_url_en_2fcontributors_2f2.php en_contributors_url_en_2fcontributors.php

Time niceShort timeAgoInWords (Bug?)

2012-03-31 Thread localhost
Hi I have the time in my database saved as GMT and also I use UTC in cakephp (core file) everything is working fine with niceShort and when I print the time from database I get the time in GMT but when I use timeAgoInWords I can see it's using the system time not GMT. is this a bug

Bug with the action form tag in this-data?

2012-03-31 Thread Matthias
Hi, I've discovered a strange behavior in this-data. I have a form with checkboxes that looks like this: form action=/participants/xls method=post (...) input type=checkbox name=data[Participant][1][id] value=1 id=Participant1Id/ input type=checkbox name=data[Participant][2][id] value=2

Bug with paginateCount in Cake 2.1

2012-03-21 Thread Sergei
I think I've found a bug in Cake 2.1 with internal paginateCount. I'm doing pagination with manually binding model: $this-Topic-bindModel(array('hasOne'=array('CategoriesTopic'))); $contain['CategoriesTopic']=array(); $conditions[]=array('CategoriesTopic.category_id'=$cat); The main paginate

Re: Model::updateCounterCache() bug?

2012-03-14 Thread phpMagpie
On Friday, 9 March 2012 15:28:56 UTC, Rodrigo Rodrigues Moyle wrote: Please, show you table schema and model association setup. Everything follows conventions (as they should do wherever possible) so I have: Relevant table fields: delegates (id, ..., booking_count, alternative_count, ...)

Re: Model::updateCounterCache() bug?

2012-03-09 Thread Rodrigo Rodrigues Moyle
Please, show you table schema and model association setup. -- 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

Re: Cake PHP (Bug even still exists in cake php2)

2012-03-09 Thread lowpass
On Thu, Mar 8, 2012 at 4:14 PM, Miles J mileswjohn...@gmail.com wrote: I don't quite understand OP. I don't think OP quite understands. Tip of the hat to Dave D for parsing that, btw. I think this would have bothered me for days. -- Our newest site for the community: CakePHP Video Tutorials

Cake PHP (Bug even still exists in cake php2)

2012-03-08 Thread Phil
Bad programming by cake php here. This bug still exists in version 2. Why does it rely on a css file existing? A lot of people will alter the default template first (removing the default cake stuff), then when they revisit the home page, this error shows incorrectly. There should be a php

Re: Cake PHP (Bug even still exists in cake php2)

2012-03-08 Thread jeremyharris
Where does Cake rely on a CSS file. How could any PHP program rely on a css file, for that matter? On Thursday, March 8, 2012 6:40:15 AM UTC-8, Phil wrote: Bad programming by cake php here. This bug still exists in version 2. Why does it rely on a css file existing? A lot of people

Re: Cake PHP (Bug even still exists in cake php2)

2012-03-08 Thread Dave D
because things aren't rendering correctly? If so, I don't think you're supposed to use stuff from that page; I'm pretty sure it's just there as a sanity check. On Mar 8, 9:40 am, Phil pnicholl...@googlemail.com wrote: Bad programming by cake php here.  This bug still exists in version 2.  Why does

Model::updateCounterCache() bug?

2012-03-08 Thread phpMagpie
Evening all, Not sure if this is a core bug or if someone can highlight what I am doing wrong. I'm developing a site where after a company places a booking on a course they can then review the booking and specify alternative delegates if one or more of the original delegates cannot attend. I

Re: Cake PHP (Bug even still exists in cake php2)

2012-03-08 Thread phpMagpie
I really do hope this is just a troll attempt, lol On Thursday, 8 March 2012 14:40:15 UTC, Phil wrote: Bad programming by cake php here. This bug still exists in version 2. Why does it rely on a css file existing? A lot of people will alter the default template first (removing

Re: Cake PHP (Bug even still exists in cake php2)

2012-03-08 Thread Miles J
I don't quite understand OP. On Thursday, March 8, 2012 6:40:15 AM UTC-8, Phil wrote: Bad programming by cake php here. This bug still exists in version 2. Why does it rely on a css file existing? A lot of people will alter the default template first (removing the default cake stuff

Potential bug with _cake_core_ caching

2012-02-26 Thread worthy
Hi folks, take the following example: x different plugins with a SettingsController and an edit action - /pluginone/settings/edit - /plugintwo/settings/edit - /pluginthree/settings/edit ... I took a look at the _cake_core_ cache and noticed, that a key for the first visited SettingsController

Re: Potential bug with _cake_core_ caching

2012-02-26 Thread euromark
this is a known limitation of cake2. I don't like it either. but thats how App::uses() works... cake3 with namespaces will probably not have issues with this anymore. but until then you need to name the controllers differently. On 26 Feb., 16:46, worthy frank.fo...@googlemail.com wrote: Hi

Re: Potential bug with _cake_core_ caching

2012-02-26 Thread y2k_2000
http://cakephp.lighthouseapp.com/projects/42648-cakephp/tickets/1884-appload-no-plugin-mapping Plugin objects should be placed under the `Plugin` key of the cache array. See App::_map() line 775 (cakephp 2.1) Unfortunately, cakephp team keep saying that it's not a bug... duplicated class names

Re: Potential bug with _cake_core_ caching

2012-02-26 Thread euromark
the `Plugin` key of the cache array. See App::_map() line 775 (cakephp 2.1) Unfortunately, cakephp team keep saying that it's not a bug... duplicated class names...bla bla...and more contradictory arguments (see App:._loadVendor() line 746) --- So you will have to fix it by your self

Re: Potential bug with _cake_core_ caching

2012-02-26 Thread worthy
Thanks for all the replies :). The posts from the lighthouse ticket describe the exact same situation i was running into. Thanks for the link and the info to fix it. For the topic to not be a bug: Of course duplicate class names in a non namespaced environment are a bad idea, but in CakePHP

useDbConfig strange bug

2012-02-21 Thread Stephen Speakman
Hi everyone Im developing an inhouse plugin to be shared by many apps. This plugin has an app model which states that it should use a separate database config which was working initially. The problem occured when I set up a hasMany - belongsTo relationship between universe_client.php and

Re: useDbConfig strange bug

2012-02-21 Thread Stephen
Now that I've managed to get to my desk and do some odd jobs I prepared this: http://pastie.org/private/abmqskzlltxsi6afigbkzw Maybe it'll help? On 21 February 2012 08:10, Stephen Speakman step...@ninjacodermonkey.co.ukwrote: Hi everyone Im developing an inhouse plugin to be shared by many

Re: useDbConfig strange bug

2012-02-21 Thread Stephen
Okay! I'm a nutter! I didn't even read the docs properly on plugin model relationships heh... Changed my relationships to array(Universe.UniverseModelName); and it's all better now :) On 21 February 2012 10:41, Stephen step...@ninjacodermonkey.co.uk wrote: Now that I've managed to get to my

saveAll(..) + hasOne NOT WORKING !! ... is it a bug?!

2012-01-19 Thread toka...@gmail.com
and nothing is created! Any Idea whats wrong? is it a bug? I use last stable cake core 1.3.14. Thanks a lot Tomas -- 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

Re: Layout Bug or Doc Bug in 2.0.4

2011-12-24 Thread Tilen Majerle
i think, that you method viewActive is never executed directly by server, you have to use underscored names, so view_active would be correct public function view_ctive() { $this-set('title_for_layout', 'View Active Users'); $this-layout = 'default_small_ad'; } try now

Layout Bug or Doc Bug in 2.0.4

2011-12-23 Thread John Lockwood
Hi, The 2.0 docs for changing layouts say this, which doesn't work: public function viewActive() { $this-set('title_for_layout', 'View Active Users'); $this-layout = 'default_small_ad'; } That didn't work. This did: function beforeRender() {

facebook bug

2011-12-21 Thread arti grover
Hi, Hello all, i have made a logout button in my app.in userheader and header respectively.But when i click on logout button it logs me out of app but not from facebook and also after logging out from app again when i login it doesnot delete the session but again logs me in via my facebook

Re: facebook bug

2011-12-21 Thread flo.kl...@googlemail.com
Hi arti, In your code both if-else statements say 'logout', one should be 'login'. And I also dont see that you actually log off facebook. You just destroy the cake session, the fb session is still valid. If you want to use facebook with cake I recommend the Plugin by webtechnick. It also

Re: Multiple Checkbox Bug in CakePHP 2.0.3?

2011-11-18 Thread Will
Hey Paul, Thank you for the suggestion! I am a bit rusty with Cake and forgot that I could do a SQL dump. It appears that it's not attempting to insert rows for the data. Very strange. Since no one else has chimed in, I'm guessing this is probably an issue with my code and not the core

Re: Multiple Checkbox Bug in CakePHP 2.0.3?

2011-11-18 Thread Will
I must have been making a mistaking in my configuration. I was using an array to manually specific the class name, table name, etc. I changes it back to just specifying the class name so that everything else would work automagically and then it started working again. On Nov 18, 10:55 am, Will

Bug In Sqlserver driver?

2011-11-18 Thread Will
Hi all, I had some issues where one of my models was not saving. I was getting the following error: Conversion failed when converting date and/or time from character string. SQL Query: INSERT INTO [users] ([created], [modified], [username], [password], [email]) VALUES ('NULL', 'NULL', N'test3',

Re: Multiple Checkbox Bug in CakePHP 2.0.3?

2011-11-17 Thread phpMagpie
Have you looked at the sql dump to see what's happening? HABTM does delete all existing rows in the join table for the object your are editing and should then replace them with the new options your chose. Maybe it is doing the first part and not the second?!? HTH, Paul. -- Our newest site

Multiple Checkbox Bug in CakePHP 2.0.3?

2011-11-16 Thread Will
Hi all, I am using a form with multiple checkboxes to save a HABTM association between two models. Upon updating my core CakePHP code, the save stopped working properly. It appeared to wipe out the linking table when I saved. Is anyone else having this problem? -- Our newest site for the

small bug in auth components

2011-08-10 Thread muslimbit
There is an error in the auth components when i init the username auth field only in beforfilter function : $this-Auth-fields = array( 'username' = 'email' ); i get a notice : Notice (8): Undefined index: password [CORE\cake\libs\controller \components\auth.php, line

Re: small bug in auth components

2011-08-10 Thread John Andersen
I understand that you get an error in your case - my question is, do you want to authenticate a user only by the user entering his/her e- mail address? For that is what you are trying to do! Auth is supposed to have to field names in the fields variable, but you are only giving it one! See the

Re: small bug in auth components

2011-08-10 Thread Inteiro
Try $this-Auth-fields['username'] = 'email'; On 10 aug, 00:58, muslimbit muslim...@gmail.com wrote: There is an error in the auth components when i init the username auth field only in beforfilter function : $this-Auth-fields = array(             'username' = 'email'             ); i

Bug in updateAll

2011-06-16 Thread FranciscoLima
Hi. I found a bug in the function updateAll of the cake 1.3.10 using postgresql. Passing the value true to a boolean field, the system is sending '1 ', as is done in mysql. Thanks! FranciscoLima -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out

Re: Is this a known bug in cake php

2011-05-27 Thread Kunal P
i think its a small mistake Cookie word should be title cased. eg $this-Cookie-read('key') -- 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.

Re: Is this a known bug in cake php

2011-05-27 Thread majna
$this - cookie - read('key') : read 'key' from cookie named CakeCookie (by default) $this - cookie - read('MyCookie.key') : read form another cookie named MyCookie Zo nooouuu BugZ On May 26, 5:48 am, Yanchao yanchaow...@gmail.com wrote: It indicate that we need to use the read function of

Is this a known bug in cake php

2011-05-26 Thread Yanchao
It indicate that we need to use the read function of cookie like this: $this - cookie - read(Name.key) at line 234 of cake/libs/controller/ components/cookie.php But it seems we need to use it like: $this - cookie - read(key.Name) to make the function to work... it seems line 250 and line 251

Re: PHP_EOL bug in cake 1.2

2011-03-25 Thread designv...@gmail.com
Thanks for clearing that up! I am in the unfortunate situation where I have ZERO control over the server, so I am at the mercy of php 4.3 :-( On Mar 24, 4:32 pm, mark_story mark.st...@gmail.com wrote: CakePHP maintains compatibility with PHP 4.4, nothing earlier. -Mark On Mar 23, 6:23 am,

Re: PHP_EOL bug in cake 1.2

2011-03-24 Thread mark_story
CakePHP maintains compatibility with PHP 4.4, nothing earlier. -Mark On Mar 23, 6:23 am, designv...@gmail.com designv...@gmail.com wrote: I have just updated one of my apps to latest 1.2 version and found that emails being sent by the app were broken due to cake using PHP_EOL. My server is

PHP_EOL bug in cake 1.2

2011-03-23 Thread designv...@gmail.com
I have just updated one of my apps to latest 1.2 version and found that emails being sent by the app were broken due to cake using PHP_EOL. My server is php4 and PHP_EOL is a php5 constant I think? I thought 1.2 was fully compatible with php4? If it's not then I will rollback to the last working

Re: PHP_EOL bug in cake 1.2

2011-03-23 Thread Stephen
*PHP_EOL* (string http://www.php.net/manual/en/language.types.string.php) Available since PHP 4.3.10 and PHP 5.0.2 It's so that it generates the correct newline for the correct OS. Have anymore information on your issue? On 23 March 2011 10:23, designv...@gmail.com designv...@gmail.com wrote:

Re: PHP_EOL bug in cake 1.2

2011-03-23 Thread designv...@gmail.com
Ahhh - I'm running 4.3.4 I have fixed it with: if (!defined('PHP_EOL')) { switch (strtoupper(substr(PHP_OS, 0, 3))) { case 'WIN': define('PHP_EOL', \r\n); break; case 'DAR': define('PHP_EOL', \r); break; default:

Re: PHP_EOL bug in cake 1.2

2011-03-23 Thread Stephen
Good idea :) On 23 March 2011 11:23, designv...@gmail.com designv...@gmail.com wrote: Ahhh - I'm running 4.3.4 I have fixed it with: if (!defined('PHP_EOL')) { switch (strtoupper(substr(PHP_OS, 0, 3))) { case 'WIN': define('PHP_EOL', \r\n); break;

Bug when using ClassRegistry::init for Components

2011-03-22 Thread labianchin
Hi, guys. I pretend to load and initialize a component (e.g. SomethingComponent), so I use something like: ClassRegistry::init('Plugin.Something', 'Component') The problem is that as in the line 140 of the file class-registry (http://api.cakephp.org/view_source/class-registry/#line-99) we have

Re: Bug when using ClassRegistry::init for Components

2011-03-22 Thread euromark
i usually use App::import('Component', 'Plugin.Something'); and manually create a new object On 23 Mrz., 00:35, labianchin luis.arman...@gmail.com wrote: Hi, guys. I pretend to load and initialize a component (e.g. SomethingComponent), so I use something like:

CakePHP 1.3.8 - commit 5464ed8 introduced a new bug in Form helper?

2011-03-21 Thread Peter Jankovich
'], $matches); to: preg_match_all('/\[(.+?)\]/', $options['name'], $matches); Is this a bug or a change of behaviour? -- 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

Re: Cakephp 1.3 Form Helper inputDefaults bug?

2011-02-18 Thread LunarDraco
Just an FYI, I've experienced situations like this where Firebug and the View Source seems so different. Everytime I've seen this I've missed placing a closing tag or forgot to include a required wrapping tag. As an example I had forgot a tr so my td's were not conained correctly. Not sure which

Cakephp 1.3 Form Helper inputDefaults bug?

2011-02-17 Thread designv...@gmail.com
Hi there, When using the 'inputDefaults' option in Form-create and doing the following: ?php echo $this-Form-create('Enquiry', array('inputDefaults' = array('div' = array('tag' = 'p'),'between' = 'br /','format' = array('before', 'label', 'error', 'between', 'input', 'after'; ? Cake seems

Re: Cakephp 1.3 Form Helper inputDefaults bug?

2011-02-17 Thread Jeremy Burns | Class Outfit
Could it be browser behaviour because p is a block level element? Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 17 Feb 2011, at 16:20, designv...@gmail.com wrote: Hi there, When using the 'inputDefaults' option in Form-create and doing the following:

Re: Cakephp 1.3 Form Helper inputDefaults bug?

2011-02-17 Thread designv...@gmail.com
Ahh wierd... i was viewing the HTML in Firebug and it was messed up, actually view source in Firefox and its correct... Hmmm... (and I know I shouldn't be putting divs inside p tags! hehe) On Feb 17, 4:27 pm, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: Could it be browser

Re: Cakephp 1.3 Form Helper inputDefaults bug?

2011-02-17 Thread designv...@gmail.com
So that seems to be the issue lord alone knows why Does anyone know how to change the div to a span for the validation errors? ;-) d//t On Feb 17, 4:32 pm, designv...@gmail.com designv...@gmail.com wrote: Ahh wierd... i was viewing the HTML in Firebug and it was messed up, actually view

Re: Cakephp 1.3 Form Helper inputDefaults bug?

2011-02-17 Thread designv...@gmail.com
In case anyone finds this: Here's how to change the error message container: http://book.cakephp.org/view/1401/options-error And an example: ?php echo $this-Form-create('Artist', array('inputDefaults' =array('div' = array('tag' = 'p'),'between' = 'br /','error' = array('wrap' = 'span', 'class'

Re: Table prefix bug in 2.0.0-dev when deleting?

2011-02-08 Thread Matthias
the error. Looks like a bug... -- 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

Re: Table prefix bug in 2.0.0-dev when deleting?

2011-02-08 Thread Matthias
the error. Looks like a bug... Also I tried the following: $temp = $this-Workshop-WorkshopDescription-find('count'); $temp = $this-Workshop-WorkshopDescription-find('all'); $temp = $this-Workshop-WorkshopDescription-find('count'); The results: SELECT COUNT(*) AS `count` FROM

Re: Table prefix bug in 2.0.0-dev when deleting?

2011-02-08 Thread John Andersen
as expected. When I delete that line, I still get the error. Looks like a bug... Also I tried the following: $temp = $this-Workshop-WorkshopDescription-find('count'); $temp = $this-Workshop-WorkshopDescription-find('all'); $temp = $this-Workshop-WorkshopDescription-find('count'); [snip some

Re: Table prefix bug in 2.0.0-dev when deleting?

2011-02-08 Thread Matthias
currently beeing under change, but just a bug... Just for trying something, try setting recursive to -1 before the delete statement :) Enjoy,    John No change. The api says, it's not affecting delete anyhow: 3.7.8.6 recursive The recursive property defines how deep CakePHP should go to fetch

Re: Table prefix bug in 2.0.0-dev when deleting?

2011-02-08 Thread mark_story
that CakePHP v. 2.0 is a development version, thus it may be buggy :) so maybe you should revert to CakePHP v. 1.3.x unless you are testing the new version! Yes, but this doesn't seem to be a new feature that's currently beeing under change, but just a bug... Just for trying something, try

Table prefix bug in 2.0.0-dev when deleting?

2011-02-06 Thread Matthias
of cosy_description_categories. Looks like a bug, or is there something else I could have done wrong? It only appears when deleting, not when finding. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org

Re: Table prefix bug in 2.0.0-dev when deleting?

2011-02-06 Thread Matthias
Sorry for double post... The above statement is the first that appears in the sql debug table, directly followed by the delete statement: DELETE `WorkshopDescription` FROM `cosy_workshop_descriptions` AS `WorkshopDescription` LEFT JOIN `description_categories` AS `DescriptionCategory` ON

Re: Table prefix bug in 2.0.0-dev when deleting?

2011-02-06 Thread John Andersen
Make sure that you have associated your models correctly as described in the CakePHP book at: http://book.cakephp.org/view/1039/Associations-Linking-Models-Together Also it is a good idea to show the same associations here in the thread, so that we may comment on them! Enjoy, John On 6 Feb.,

Re: Table prefix bug in 2.0.0-dev when deleting?

2011-02-06 Thread John Andersen
Oh, forget it! My bad :) You are deleting, so the should be no associations used in the query! Enjoy, John On 6 Feb., 16:15, John Andersen j.andersen...@gmail.com wrote: Make sure that you have associated your models correctly as described in the CakePHP book

Re: Table prefix bug in 2.0.0-dev when deleting?

2011-02-06 Thread Matthias
I also wonder why there are joins, but they are there automatically... I tried $this-Workshop-WorkshopDescription-contain() before the deleting, but then only the SELECT statement is contained (without joins), the following delete is again with joins. I also tried the 2. parameter for delete:

  1   2   3   4   5   6   7   8   >