how to install downloaded block?

Permalink 1 user found helpful
I've done this many time in the past but nothing seems to be working.

I downloaded the bluberry block and tried to place the extracted folder in my blocks folder but I keep getting an error.

<code>
Warning: require_once(C:\xampp\htdocs\xampp\newc5BootStrap\concrete/blocks/tra_blueberry_slider/controller.php) [function.require-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\xampp\newc5BootStrap\concrete\core\models\block_types.php on line 824

Fatal error: require_once() [function.require]: Failed opening required 'C:\xampp\htdocs\xampp\newc5BootStrap\concrete/blocks/tra_blueberry_slider/controller.php' (include_path='C:/xampp/htdocs/xampp/newc5BootStrap/libraries/3rdparty;C:\xampp\htdocs\xampp\newc5BootStrap\concrete/libraries/3rdparty;.;C:\xampp\php\PEAR') in C:\xampp\htdocs\xampp\newc5BootStrap\concrete\core\models\block_types.php on line 824

</code>



Am I doing this wrong?

Thanks in advance

 
madeforspace replied on at Permalink Reply
madeforspace
Try downloading to /packages instead of /blocks.
kappi replied on at Permalink Reply
Will do

Thanks for your reply
kappi replied on at Permalink Reply
No sorry didn't work!

Do you know a step by step guide for installing packages and blocks, I've had a look in the documentation (so yes I did I did read the manual (sort of)) but still none the wiser

Cheers
mhawke replied on at Permalink Reply
mhawke
Did you actually click an 'install' button to install this slider or did you just upload the files and your site crashed? From your error messages, it looks like you might have tried to upload the slider files to your '[root]/concrete/blocks' instead of just '[root]/blocks' or '[root]/packages'.

If you did officially install the package and if you are comfortable using phpMyAdmin you can open your database and open the 'Packages' table and delete the 'Blueberry Image Slider' and then delete the 'tra_blueberry_slider' folder from '[root]/packages'.

UPDATE: You also need to open the 'BlockTypes' table and delete the 'tra_blueberry_slider' record as well.

Then you can start over to install it again.
kappi replied on at Permalink Reply
Morning mhawke,

The process I've used in the past is:

1. extract the downloaded folder with the block
2. place folder in the location - root/blocks
3. open the dashboard and go to blocktypes
4. select blocktypes

At this point I receive an error message. If I place the folder in packages then nothing happens when I select blocks
madeforspace replied on at Permalink Reply
madeforspace
Hi Kappi

The problem I see there is the folder that you are adding the block to.
I would use the same process as you except that I would extract the folder in to the root/packages folder.
I may be missing something here but is this a block you have bought from the market place? I am not familiar with the one you are talking about.
If it is a Marketplace bought block and you have downloaded an archive version then root/packages is the right place to put it. Once there you can go back into your dashboard and install the block from there.

Sorry if I have misunderstood anything.
mhawke replied on at Permalink Best Answer Reply
mhawke
If the archive contains a controller in it's root and then a 'blocks' folder then this needs to be placed in the [root]/packages folder and installed by going to 'Dashboard->Extend Functionality' and finding the package among the un-installed stuff.

Have a look at the structure of things in your [root]/packages folder and see how they differ from the stuff in [root]/blocks. Basically, the packages have an initial controller that installs the package while pure blocks do not have this complexity.

If the thing you want to install is just a block, it does go into [root]/blocks and you install them by heading to 'Dashboard->Block Types' as you have done in the past.
kappi replied on at Permalink Reply
Hi guys,

Thanks again, I'll try this tonight. much appreciated

Kappi
kappi replied on at Permalink Reply
mhawke many thanks. It's been a while since I installed anything and it was several concrete versions ago too.

So to clarify, most blocks are installed in the packages folder is this correct? and when would I know to install in the actual blocks folder?

I had a look a the packages folder in the root/concrete and it was empty most blocks are in the root/concrete/blocks folder
mhawke replied on at Permalink Reply
mhawke
Stay out of anything in the concrete folder. Those are core files and shouldn't be touched unless you really know what you're doing.

New packages and blocks get installed in '[root]/packages' and '[root]/blocks'.

Have a look in those folders for examples as I outlined above.
mhawke replied on at Permalink Reply
mhawke
Just to clarify... the blocks you see in '[root]/concrete/blocks' are the core blocks that come with the default installation. New blocks and packages go in [root]/blocks or [root]/packages.

Packages are used by developers to handle more complex installations that often include adding additional files to the system like Dashboard items and Single Pages but often it's just easier for a developer to distribute a block in the form of a package so they can control the installation process. Less support requests = more time to spend making a profit.

The Blueberry Slider you are trying to install should be put in the '[root]/packages' folder. The way I install new stuff is to download the archive to my local computer and expand it to a folder on my desktop called 'packages'. I then FTP that new folder (the one under packages) to the '[root]/packages' on my site. I then go to 'Dashboard->Extend Functionality' and install the new package. That way I have copies of the block's files on my local machine that I can use as backups in case I mess something up with the files on my server (a frequent event!).
kappi replied on at Permalink Reply
Thanks again for your time, it's much appreciated