installing a free add-on and getting a fatal error
Permalink
HI, I'm hoping someone can shed some light on this.
This was a site that I had to manually upload certain folders as they seemed to be missing when I did the original install with simple scripts.
everything has been working fine until I decided I wanted to install something that I know works: Travis Spacer Package. Here is the message:
This is when I got to Dashboard>Blocks
(the blocks view does not come up - just this message)
Fatal error: Cannot redeclare class TravisnSpacerPackage in /home/shell123/public_html/concrete/blocks/travisn_spacer/controller.php on line 25
the interesting thing is - it seems to be missing the closing tag for the php..
?>
but that's how it is on my other site and another one I installed for someone else. And it works fine - one is still 5.4.2 and the other is completely updated.
I'm a php newbie and I'm somewhat functional in html and css, so I need pretty directional instructions so please don't assume I know anything important -- many, many thanks!
here is the code from the php controller file for this block:
<?php
defined('C5_EXECUTE') or die(_("Access Denied."));
class TravisnSpacerPackage extends Package {
protected $pkgHandle = 'travisn_spacer';
protected $appVersionRequired = '5.2.0';
protected $pkgVersion = '1.3';
public function getPackageDescription() {
return t("Add spacers to your webpage without editing code.");
}
public function getPackageName() {
return t("tnSpacer");
}
public function install() {
$pkg = parent::install();
// install block
BlockType::installBlockTypeFromPackage('travisn_spacer', $pkg);
}
}
This was a site that I had to manually upload certain folders as they seemed to be missing when I did the original install with simple scripts.
everything has been working fine until I decided I wanted to install something that I know works: Travis Spacer Package. Here is the message:
This is when I got to Dashboard>Blocks
(the blocks view does not come up - just this message)
Fatal error: Cannot redeclare class TravisnSpacerPackage in /home/shell123/public_html/concrete/blocks/travisn_spacer/controller.php on line 25
the interesting thing is - it seems to be missing the closing tag for the php..
?>
but that's how it is on my other site and another one I installed for someone else. And it works fine - one is still 5.4.2 and the other is completely updated.
I'm a php newbie and I'm somewhat functional in html and css, so I need pretty directional instructions so please don't assume I know anything important -- many, many thanks!
here is the code from the php controller file for this block:
<?php
defined('C5_EXECUTE') or die(_("Access Denied."));
class TravisnSpacerPackage extends Package {
protected $pkgHandle = 'travisn_spacer';
protected $appVersionRequired = '5.2.0';
protected $pkgVersion = '1.3';
public function getPackageDescription() {
return t("Add spacers to your webpage without editing code.");
}
public function getPackageName() {
return t("tnSpacer");
}
public function install() {
$pkg = parent::install();
// install block
BlockType::installBlockTypeFromPackage('travisn_spacer', $pkg);
}
}
Hi -
for what ever reason, my site is still not showing any add-ons I manually install. Yesterday looks like a fluke.
so the update is -I'm not getting any errors. But I'm getting nothing.
No new Add-ons in the block page. Nothing to install. I've tried about 6-7 different options trying to mimic the other blocks already installed in the blocks folder.
Any help would be greatly appreciated !
Regards,
Karen
for what ever reason, my site is still not showing any add-ons I manually install. Yesterday looks like a fluke.
so the update is -I'm not getting any errors. But I'm getting nothing.
No new Add-ons in the block page. Nothing to install. I've tried about 6-7 different options trying to mimic the other blocks already installed in the blocks folder.
Any help would be greatly appreciated !
Regards,
Karen
Figured it out:
I'm posting this for posterity and if anyone else runs into the same problem on a manual install with add-ons. 5.5.2
I have a Cpanel account and I simply uploaded the zip file of the add on ( free) to my Packages folder.
Originally, the packages folder did not exist. So one had to be made on the Public html root.
there it is : Packages
then upload to Packages, Extract the file. and then that's it.
Go back to Concrete5 and go to Dashboard.
I could not find this panel - so put in search (top right of screen) " Add Functionality "
That window will come up and then You should see your Add On there. I think there should be an install button ( can't remember if it said "install or edit" )
That's it.
Good Luck!
Karen
I'm posting this for posterity and if anyone else runs into the same problem on a manual install with add-ons. 5.5.2
I have a Cpanel account and I simply uploaded the zip file of the add on ( free) to my Packages folder.
Originally, the packages folder did not exist. So one had to be made on the Public html root.
there it is : Packages
then upload to Packages, Extract the file. and then that's it.
Go back to Concrete5 and go to Dashboard.
I could not find this panel - so put in search (top right of screen) " Add Functionality "
That window will come up and then You should see your Add On there. I think there should be an install button ( can't remember if it said "install or edit" )
That's it.
Good Luck!
Karen
If anyone is having similar problems without a solution that works, you may want to look at my post here towards the bottom:http://www.concrete5.org/index.php?cID=289460&editmode=...
It's a long story but it may help to read and take a look at my screencast provided in the link in that post. What a nightmare.
It's a long story but it may help to read and take a look at my screencast provided in the link in that post. What a nightmare.
Please - no body work on this problem until I go through all the folders and find if there was a duplicate install someplace else.
Strangely the add-on is working after deleting it out of the "blocks" folder.
I'll post back later