Every page I try to open for editing throws and exception:
Concrete CMS has encountered errors
Whoops \ Exception \ ErrorException (E_WARNING)
Undefined variable $titleFormat
I’m not 100% sure of the theme, I have three installed (including Atomik), but I believe it’s Replica Pro and that’s the theme mentioned in the error report.
I’m aware of another thread reporting similar, but it’s from 2022, I didn’t want to hijack it and I’m not sure how to apply the fix anyway (I guess edit the .php file directly).
Most likely, there’s going to be a Block that uses the variable $titleFormat and it needs to have that variable declared (most likely) as $titleFormat=‘’ before the block actually assigns it a real value. That means editing the PHP. Is there any clue in the error message about what PHP page is creating the error? Is there a public URL we could land on to see for ourselves?
If you set the error reporting to give a full trace to the log, that will give a better idea of where the undefined variable is (block template or theme).
It appears only whilst editing, so no public access ... the existing pages work fine, at present anyway, so no publicly accessible pages.
I'm not sure where I'd find the log ... this is a remote virtual site at my host supplier, but I suspect what I see here is enough.
I'll try mhawke's suggestion shortly and update later.
The causality could be that $titleFormat for the Tags block was not an option or did not have a default when your site was first built, but it does now.
If you are able to edit the affected pages, you could edit the tags block and configure a title format.
Looking at a more recent core, that block view contains near the start the new line
$titleFormat = $titleFormat ?? 'h5';
which would provide a default and also fix your problem. So you could try either updating to concrete 9.4.7 or copying over the block template (view.php) from 9.4.7 for just the tags block.
The error is something that would only show with more recent php versions, so may have started showing now with a php version update on your host. If you stay at concrete 9.1.2, you will probably bump into more php version related problems. Hence the best long term solution is to update your site to concrete 9.4.7 and that will take care of your current problem and any related problems.
As with any update, take a full files and database backup before you begin.
I tried doing the update, but that too failed with an html ‘403’ error.
Looking at Replica Pro, it seems the present licence, at least, has “one year of updates” and I’ve been using it for several years, so I guess the ‘403’ is probably related to that.
Perhaps I contact the vendor and ask how I can update. Maybe I buy again.