Adding packages by uploading to /packages/ directory

Permalink
I have uploaded packages to the root/packages/ folder but when I go to Add Functionality nothing appears for installation.

I have uploaded a custom package I am creating, the FAQ_Example package and a previously downloaded package.

I have also tried this on two different servers on 2 different hosting providers.

On my custom package I am writing I have even purposely broken the code, and I get an error in the Add Functionality page - so C5 is looking at the Packages directory.

C5 is v5.4.2.2.

Anyone got any ideas?

Thanks, Steve

shadowcomputers
 
FernandoCordeiro replied on at Permalink Reply
FernandoCordeiro
I'd have to take a look at the packages to see if I can find something, but did you try checking your controller.php against a working package to see if there is something you didn't implement?

Keep in mind its class must extend the package class and use the same methods.

You should revise the basics just in case:

<?php        
defined('C5_EXECUTE') or die(_("Access Denied."));
class PopupLoginPackage extends Package {
   protected $pkgHandle = 'your_handle';
   protected $appVersionRequired = '5.4';
   protected $pkgVersion = '0.0.0';
   public function getPackageDescription() { return t("Your Description goes here."); }
   public function getPackageName() { return t("Your Package Name");}
   public function install() { $pkg = parent::install(); }   
   public function uninstall(){ return parent::uninstall();}
}


Triple check the install part, the appVersionRequired and the Handle.
Double check everything else.
shadowcomputers replied on at Permalink Reply
shadowcomputers
As well as my package I have tried the example faq (http://www.concrete5.org/marketplace/addons/example-faq/) package and tried the extended form (http://www.concrete5.org/marketplace/addons/extended-form/) package - and the extended form works fine if I download from marketplace.

If it was just my package, then I'd expect something to be wrong with my coding, but I have the same issue when uploading the others as well.

I will double check my code when I get home, but everything listed there is what I have.
mkly replied on at Permalink Reply
mkly
Have you checked the permissions on the files when you add them to the directory?
shadowcomputers replied on at Permalink Reply
shadowcomputers
All files and folder have been made writable just-in-case, but still nothing showing in add functionality for installation :(
mkly replied on at Permalink Reply
mkly
Ugh. I hate when this happens to me. I feel your pain.
I'm guessing you did the cache too.
Does this work?

http://www.example.com/packages/example_faq/icon.png


The only times this has happened to me has been permissions or massive typos in the controller.php etc. Wish I could be more help. Blocks and packages not showing up drives me up the wall.
shadowcomputers replied on at Permalink Reply
shadowcomputers
Tell me about it... 3 days been trying to figure this one out.

Cache cleared and disabled, so wouldn't be that.

Wouldn't install Example FAQ package that was created by Andrew (I think!) for a how to... so wouldn't just be my spelling.
mkly replied on at Permalink Reply
mkly
I do remember a couple times when I had a package with a theme in it screw up(because of my coding errors) on install and kind of foobar'd the package install thing. The one time I fixed it was that I had to go into "Themes" and remove the "Theme" that the package originally installed.

Maybe look for any remnants that the package you were writing and tried to install?

Oh and any same named packages/themes int he same directory has caused issues IIRC.