Can't install Advanced Slider - "not found. Please check that the block controller file contains the correct class name."

Permalink 1 user found helpful
HI There,

I'm having trouble installing the Advanced Slider plugin and get the following error when I try to install it:
"The following errors occurred when attempting to process your request:
not found. Please check that the block controller file contains the correct class name."

At first I thought it was a permissions error so I 777'nd the following:
- Blocks
- Packages

The english documentation page is in French: http://www.myconcretelab.com/en/concrete5-blocks/advanced-slider/do...

And I haven't heard anything from the developer - does any one know how to install this plugin?

controller.php for the plugin looks like this:
<?php          
defined('C5_EXECUTE') or die(_("Access Denied."));
class AdvancedSliderPackage extends Package {
   protected $pkgHandle = 'advanced_slider';
   protected $appVersionRequired = '5.3.3';
   protected $pkgVersion = '1.1.1';
   public function getPackageDescription() {
      return t("A new Generation slider. Create your own animations");
   }
   public function getPackageName() {
      return t("Advanced Slider");
   } 
   public function install() {
      $pkg = parent::install();
      // install block

 
ijessup replied on at Permalink Reply
ijessup
Did you download this from the Market Place via the site you are working on, or did you upload the files to the server your site is on?
cmscss replied on at Permalink Reply
Thanks for the reply.

We've tried both - but the c5 market place kept assigning the license to a different site even though I was connected to the c5 market using the correct site.

Thinks I've tried:
- Un-assigning the license via the market place admin
- Uploading the plug-in directly to the blocks directory, then installing via c5
- Removing the package and re-downloading via c5

We don't really understand how the c5 marketplace works sorry (it all seems a but convoluted) but we have a blank site setup that we duplicate and alter for simple client sites - maybe the market place is confused about which site it should be licensed to?

Ideally, we'd like to test third party add-ons on our dev site before setting them up on a client install but we're confused how this should work in c5 (we're new).

We were expecting to be able to assign the license to the dev site, test it, then transfer the license to the client install but are not sure how to do this because although you can remove a license from the market place admin, we can't work out how to assign it to a new site.

Any help would be appreciated.

Cheers

Ben
ijessup replied on at Permalink Reply
ijessup
NOTE: I use the ~ symbol to indicate the root directory of your concrete installation. This folder has a "concrete", "files" and "update" folder, among others.

Anything you download from the Market Place needs to get unzipped and dropped into the ~/packages folder.

After this point you should not have to mess with the files at all. just go to the Dashboard->Add Functionality and install the new Package.

All the folders in the ~ directory override the core files (that would be everything in ~/concrete) to provide one-off solutions that won't get overwritten when you update to a new version of c5.
cmscss replied on at Permalink Reply
"All the folders in the ~ directory override the core files"

Yes, I understand


"Anything you download from the Market Place needs to get unzipped and dropped into the ~/packages folder."

This is what I did.


"After this point you should not have to mess with the files at all. just go to the Dashboard->Add Functionality and install the new Package."

It's at this point I receive the error. I've also uninstalled and ticked the option to remove the files and when I refresh the page, the plug-in is available for install. If I try to install it, I receive the error again.

I finally found the plugin's community to help so am getting help from the developer - thanks for you suggestions - much appreciated.

Cheers

Ben
cmscss replied on at Permalink Reply
OK, the developer has said my issue is outside the scope of his support - bummer!

So I have:
- Manually removed the Advanced Slider from ~/packages using FTP
- Gone to the add-ons page in C5
- Clicked "project page" from "There appears to be nothing currently available to install".
- Selected the advanced slider and clicked "Associate" from market place admin
- Gone back to c5 and clicked "Download" next to the package
- But now receive this error:
"The following errors occurred when attempting to process your request:
Concrete was not able to save the package after download."

Is this a permissions error? I've already (and have just checked) that the following are set to 777:
- ~/packages
- ~/files
- ~/blocks

I have other add-ons installed so am not sure what's going on - we're now on deadline so pretty desperate to get this fixed.

What are we missing?

Any help would be much appreciated.

Cheers

Ben
ijessup replied on at Permalink Reply
ijessup
Hmmm... well, seeing as c5 wasn't able to save to the package's folder it sounds like there is still a permission error somewhere.

Also, ~/blocks does not need to be set to 777. In fact, in most circumstances, it's an empty folder.

Do you know the full path to ~?
Are you on a shared host or do you own(or have direct access to) the server?
cmscss replied on at Permalink Reply
Sorry missed you reply before replying - yes I know the full path to my c5 install.

And yes, we're on a shared host.
cmscss replied on at Permalink Reply
So before I receive the main error, I see another error that flashes for a split second as the page loads - took me several minutes to time a screen shot so I could read it but it states:

"Warning: fopen(/path/to/c5/install/files/tmp/1307480902.zp): failed to open stream: Permission denied in /path/to/c5/install/concrete/libraries/marketplace.php on line 88"

Obviously a permission error but not sure what other directories to 777.

Any help would be much appreciated.
ijessup replied on at Permalink Reply
ijessup
On my way home from work, but will reply when I make it through the Atlanta traffic. XD
cmscss replied on at Permalink Best Answer Reply
OK, although ~/files was set to 777 the ~/files/tmp directory wasn't.

I don't understand why, but c5 seems to have real issues with permissions - is OK to set all these directories to 777?

The host just runs a Debian Lunix server - not sure if that is causing so many isues.

Anyway, the plugin has installed.

Thanks for all your help.

Cheers

ben
ijessup replied on at Permalink Reply
ijessup
You should mark your post as the answer in case anyone has this problem in the future. :)