Media Plugin

2015-01-28 Thread Kluny
I'm using David Persson's excellent Media plugin, and found an odd bug. I 
use it in a Gallery plugin, and when the gallery contains a lot of images 
(maybe 100? haven't been able to determine exactly), deletion doesn't work. 
I'll use the usual mechanism of deleting, and the image doesn't get 
deleted. In this case, that means checking a checkbox next to each 
attachment and clicking the Save and Continue button. Every checked image 
is supposed to be deleted. Works fine if there's only 10 or so images, but 
this one client has hundreds. 

There isn't much custom code in the Gallery plugin, and the Media plugin is 
pretty much stock. Any ideas? Need any more information?

Thanks, Shannon

-- 
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: 3.0 - Cakephp plugins gone from /plugins

2015-01-28 Thread José Lorenzo
The plugins that are installed by composer are not (correctly) put inside 
vendor. Your own baked plugins can stay in ./plugins

The error you are having seems to be that you are trying to load a plugin 
called app somewhere. Try looking at the stacktrace of the error. Install 
the php xdebug extension, that should help.

On Wednesday, January 28, 2015 at 3:14:02 AM UTC+1, Joe T. wrote:

 i recently did a *composer update* for my dev site, and all the Cake 
 plugins that were under /plugins were removed:

 /plugins
 - /Bake   (gone)
 - /DebugKit   (gone)
 - /Migrations (gone)

 However, there are new(?) directories under /vendor/cakephp corresponding 
 to the same plugins:

 /vendor/cakephp
 - /bake
 - /debug_kit
 - /migrations

 i've tried deleting everything in /plugins  /vendor and the composer.lock 
 file, then running *composer install* to get a fresh copy of everything, 
 with no luck. i added the line to scripts as mentioned in the RC1 release 
 notes and prescribed by the composer update message when i ran without 
 it... If i'm missing some step with composer, i wouldn't be surprised, but 
 i have no idea what it might be.

 My composer.json requires  such:
   require: {
 php: =5.4.19,
 cakephp/cakephp: 3.0.*-dev,
 cakephp/plugin-installer: dev-master,
 zurb/foundation: dev-master,
 jockmac22/foundation_calendar_date_time_picker: *,
 ckeditor/ckeditor: dev-standard/latest,
 tecnick.com/tcpdf: dev-master,
 openwall/phpass: *
   },
   require-dev: {
 cakephp/bake: dev-master,
 cakephp/debug_kit: 3.0.*-dev,
 cakephp/migrations: dev-master,
 d11wtq/boris: 1.0.*
   },
   autoload: {
 psr-4: {
   App\\: App,
   App\\Test\\: Test,
   : ./plugins,
   Thook\\: ./plugins/Thook/src,
   Thook\\Cakerov\\: ./plugins/Thook/Cakerov/src,
   Thook\\Websites\\: ./plugins/Thook/Websites/src,
   Thook\\Test\\: ./plugins/Thook/tests
 }
   },
   autoload-dev: {
 psr-4: {
   Thook\\Cakerov\\Test\\: ./Plugin/Thook/Cakerov/tests,
   Thook\\Websites\\Test\\: ./Plugin/Thook/Websites/tests
 }
   },
   scripts: {
 post-install-cmd: App\\Console\\Installer::postInstall,
 post-autoload-dump: 
 Cake\\Composer\\Installer\\PluginInstaller::postAutoloadDump
   },


 Yeah, yeah, i know, silly names... 
 Since this has happened, my dev site is completely broken. This is what 
 appears on every page:

 *Plugin app could not be found.*

 No line number, file, or anything indicating what the problem is, and i'm 
 pretty sure app isn't a plugin. It's thrown by (semi-obviously) 
 MissingPluginException, and i see references to that in the Plugin loader 
 (also somewhat obvious)... So what plugin is failing to load that 
 identifies itself as app, and is it related to the missing directories 
 under /plugins? If so, why did they disappear, how do i get them back, or 
 change my config to find them, etc.?

 If i seem cross, i apologize. i'm not frustrated with Cake itself, so much 
 as my project  being too busy to immerse myself in learning the framework. 
 Code available here: https://bitbucket.org/cautionbug/kodiak-investments

 Any help is truly appreciated.
 -joe




-- 
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: How do I update cakephp existing app?

2015-01-28 Thread Leandro Machado Pereira
You can do composer.phar update

Em qua, 28 de jan de 2015 14:22, frocco faro...@gmail.com escreveu:

 Hello,

 I see cakephp 3 has been updated, how do I update my current app that is
 using an older version of cakephp 3?

 Thanks

 --
 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.


-- 
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.


How do I update cakephp existing app?

2015-01-28 Thread frocco
Hello,

I see cakephp 3 has been updated, how do I update my current app that is 
using an older version of cakephp 3?

Thanks

-- 
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.