Re-installing Auto nav

Permalink 1 user found helpful
How do I re-install the auto-nav. It's sitting in the concrete core on the server however not showing in the Add functionality

clairec
 
Mnkras replied on at Permalink Reply
Mnkras
? its included in the core why would you need to reinstall it, if you modified it it should be in a custom template

(download c5 fresh and just copy the auto nav folder over)
clairec replied on at Permalink Reply
clairec
Yep it is in the core also have re-installed it from a fresh copy it's just not showing as an option in the backend
braincramp replied on at Permalink Reply
braincramp
did you try adding it to your blocks? (the block folder in the root level not the "concrete/blocks" folder)
clairec replied on at Permalink Reply
clairec
Yep placed it there also just don't seem to pick it up on the backend from anywhere
Mnkras replied on at Permalink Reply
Mnkras
im not sure you can reinstall a core block, your not supposed to remove them, also if it is already installed it wont show up as it has the same handle
dwayneparton replied on at Permalink Reply
dwayneparton
I know this is late but I thought that I would post this because I ran into a situation recently where I needed to re-install a core block.

Here is what I did to get the block back:
1. Open the installation sql file /concrete/config/install/no_sample_content.sql
2. Navigate to the line that says "INSERT INTO Blocktypes VALUES" (Line 48 in version 5.4.1.1)
3.Open phpmyadmin or whatever you use and run the appropriate query.

Here is an example of how to re-install the Auto-Nav.

INSERT INTO BlockTypes VALUES(3,'autonav','Auto-Nav','Creates navigation trees and sitemaps.',1,0,0,0,500,350,0)


You may have to refresh the block in the dashboard and clear your cache.
Mnkras replied on at Permalink Reply
Mnkras
or you can just drop it in the /blocks directory...
dghalsema replied on at Permalink Reply
dghalsema
Can you please walk me through this. I wrongly deleted the autonav file from phpmyadmin. Trying to follow modestbyte's instructions, I can not find an installation sql file. I'm quite confused and really don't know much about any of this. I did not set the site up, but I do my best to maintain it. I did try to restore the database from previous version on the site host server, but that file is missing no matter how far I go back. When I try to access the dashboard now on my concrete 5 site, I receive the following error: Fatal error: Class 'Concrete5_Controller_Block_Autonav' not found in /home/stpaulca/public_html/church/concrete/blocks/autonav/controller.php on line 3

Website in questions is stpaulcatholic.net/church. Thank you for the consideration.
JohntheFish replied on at Permalink Reply
JohntheFish
I think you have a separate problem to do with files rather than database tables.

You can always get a missing file from the concrete5 installation zip and copy it back to where it needs to be.