Block type installation issue
PermalinkI saw this topic:http://www.concrete5.org/community/forums/customizing_c5/custom-blo... and asked the developer to create a db.xml file (as this was initially missing) and he did, however I still get the same behavior.
The only other similar topic I found is this one:http://www.concrete5.org/community/forums/installation/canand039t-i... however it does not provide much help.
The developer of the plugin said he had installed this with no issues on a couple of other sites. He thinks this could be some writing permissions issue, however I'm not sure which folders on the server should have writing permissions.
According to the controller, the block type is btMersenMap - if the block is installed, you'll see an entry in the BlockTypes table where the btHandle is set to "btMersenMap".
I deleted that BlockTypes record , and dropped the "btMersenMap" table, which makes the block appear to be ready for installation and indeed it installs again correctly.
Is it possible that an earlier version has left the block type installed, but the package has been removed/moved etc??
No, I'm not seing the block type anywhere else but in the "New" section in "Add Functionality".
I checked the database to make sure that there aren't any occurances of the btMersenMap table but there wasn't anything like that.
No earlier versions of the plugin have been installed.
Set your Debug level to development (dashboard->Sitewide settings->debug) - do you see any errors when you try to install etc?
Are there any error logs anywhere?
Please post your Environment values? (dashboard->Sitewide settings)
I enabled the debug mode and there are no errors displayed. I also checked the server logs and there are no errors too.
I've attached a file with the environment variables. I just noticed that the maximum execution time has been set to 5 seconds and if I try to set it to a bigger value using ini_set in the config/site.php file it won't work. I'm not sure whether this is due to server settings or does the C5 CMS set such a value somewhere.
Dashboard->Sitewide settings->Speed setting
Max execution time is a bit tight at 5s - 30 is a more typical value IMHO, but I don't think that's the problem here.
Your environment shows three overrides:
blocks/search, blocks/mersen_parts_map, themes/windwarehouse
With the lastone, if that came in a package, check the package controller to see if any blocks are installed.
It's kind of grasping at straws I'm sorry to say.
Regarding checking the package controller -- where do I do that?
- The directory should be called mersen_parts_maps and be in the root blocks directory
blocks/
--mersen_parts_map/
----controller.php
----db.xml
----etc...
Make sure that you have permissions set properly.
The main reasons things don't show up are because either the block name, block directory or permissions are not correct.
$btTable = 'btMersenMap';
to
$btTable = 'btMersenPartsMap';
and in db.xml change
<table name="btMersenMap">
to
<table name="btMersenPartsMap">
If it's an override, then you wouldn't be installing, because it's already installed which might account for your issue.
If you're comfortable doing so, perhaps post a zip file of your code and I can have a look.