Having trouble making changes to a concrete5 site

Permalink
Our company recently inherited a website built in Concrete5. The entire site seems to be mainly built around two custom block types.

I found the location inside of the custom block type php file. It's only a minor tweak to the php code. However I'm having trouble being able to get this tweak updated to the site.

Do I upload the php file and then Remove and Re-Install it to make the changes take effect? Will this automatically make the changes occur throughout the site without any more work? I see the "Usage Count" for this Custom Block Type is "5". Would this wipe out the site? Is there another easier way to do this?

I have a bit of light php background and have worked with ModX a bit but this CMS is stumping me.

Thanks.

 
dwayneparton replied on at Permalink Reply
dwayneparton
Have you tried clearing the cache? Dashboard->Sitewide Settings Sometimes you will make a change to a block and it will not show on the site until you clear the cache or the cache expires. If you change the block it will change it everywhere. If you have changed the DB structure you will need to refresh the schema of the block via Dashboard->Add Functionality->Edit(on which ever block you want). Does the block have a templates folder? Just a though, but could it be that you are not editing the right view of the block? Hope this helps.
concrete5noob replied on at Permalink Reply
I also went through the template folder inside of the block and no file inside of there was what I was looking for. The one I'm editing clearly appears to be the right one.
jeckerman replied on at Permalink Reply
jeckerman
Hi,

I'm just gong completely off my head here, but backup the file first, then replace it with your change. Then clear the cache (via the admin Dashboard, under Sitewide Settings). And see if it takes, it should cascade across the pages it was on.

If that's doesn't work or is to general, let me know and we'll dig deeper.

- Josh
concrete5noob replied on at Permalink Reply
dwayne and jeckerman,

I cleared the cache as described and no changes were seen.

It could be the way I'm updating the code for the custom block file in the site.

So here's how it currently works:

This company programmed two custom blocks. One named "boats" and one named "dealers'.

In this case, the "boats" custom block, is a folder filled with various PHP files such as Add.php, Controller.php, View.php, Edit.php, DB.XML, and Boats.php.

The Boats.php file is where the edits are being made.

There are also two other folders inside of this "boats" custom block folder one is called "Levels" and the other is called "Templates". I am not touching any file except Boats.php.

Then to try and update this file, I simply upload it in the FTP after backing up the original. Nothing happens even though something clearly should.

Does this procedure sound right? I'll crack open templates folder and see if there's anything in there in the meantime.

Appreciate it guys!

Cheers!

Ryan
jeckerman replied on at Permalink Reply
jeckerman
Before I go into a more detailed solution, try rebuilding the core database. This is also inDashboard/Sitewide Settings then the top nav will have a button for "Debug". In that menu, at the bottom you will see the refresh db option. check the box and then hit the update button.

- Josh
concrete5noob replied on at Permalink Reply
I did the refresh (not the reload). And no luck.
jeckerman replied on at Permalink Best Answer Reply
jeckerman
Is this something you could zip/tar up and I take a look at it?

- Josh
concrete5noob replied on at Permalink Reply
Absolutely. I can zip up the entire site and send your way.
dwayneparton replied on at Permalink Reply
dwayneparton
Can you just zip the block and show us what you are trying to change? :D

We should be able to install and run it on a test site to at least see if maybe there is something wrong with the block. Also just for curiosity sake, what version of C5 are you using?
concrete5noob replied on at Permalink Reply
Thank you jeckerman, you helped me out immensely!
jeckerman replied on at Permalink Reply
jeckerman
You're most welcome! Glad to help out anytime. And thank you for the karma.

- Josh