Trouble overriding single pages members and account

Permalink
I'm having trouble overriding the controller classes for members.php and account.php. In both cases I have:

1) Copied the file from concrete/controllers/single_page to application/controllers/single_page
2) Changed the name space to namespace Application\Controller\SinglePage;
3) Copied the view.php for each single page from concrete\single_pages\members\view.php & concrete\single_pages\account\view.php to the application level
4) Cleared cache, turned off override cache
5) Looked at the Environment and seen that single_pages/account and single_pages/members is listed

If I change anything in the view.php files at the application level it works, but nothing that I change inside the controllers will work at all.

This is a build in 5.7.3.1

Does anyone have any ideas?

 
MrKDilkington replied on at Permalink Best Answer Reply
MrKDilkington
Hi McArtney82,

I am not sure if you are running into this bug:

"A core bug in version 5.7.3.1 and earlier of 5.7 may prevent portions of this from working. This is fixed in 5.7.4, as well as in packaged single page controllers. If you experience difficulty following these instructions, build your single pages into a package."
https://www.concrete5.org/documentation/developers/5.7/working-with-...

I recommend updating to the latest 5.7.4.2 version to see if this resolves itself.
McArtney82 replied on at Permalink Reply
Thanks heaps, that worked. Although I found out that upgrading 5.7 is not a simple task!