Dashboard not accessible anymore: Fatal error: Call to undefined method View::addFooterItem()
PermalinkHi guys, hope someone can enlighten me on this one, recently I have moved my website from Windows Server to Linux Server and renamed all the DataBase tables names as windows server used lowercase names where linux server didn't like it, so my website wouldn't load. Anyhow, got it sorted by renaming all the tables and then website came back to life, but now, here is the problem, when I want to go to dashboard, it said wrong password and I asked to to be reset, got the email from it, put my new password in and pressed Submit button, it came back with this error message:
Fatal error: Call to undefined method View::addFooterItem() in /home/thecodfa/public_html/concrete/themes/dashboard/elements/header.php on line 36
And this is my header.php file:
<?php defined('C5_EXECUTE') or die("Access Denied."); ?> <?php if ($_GET['_ccm_dashboard_external']) { return; } if (!defined('WHITE_LABEL_DASHBOARD_BACKGROUND_SRC')) { Config::getOrDefine('WHITE_LABEL_DASHBOARD_BACKGROUND_SRC', false); } if (!defined('WHITE_LABEL_DASHBOARD_BACKGROUND_CAPTION')) { Config::getOrDefine('WHITE_LABEL_DASHBOARD_BACKGROUND_CAPTION', false); } if (!defined('WHITE_LABEL_DASHBOARD_BACKGROUND_FEED')) { Config::getOrDefine('WHITE_LABEL_DASHBOARD_BACKGROUND_FEED', false); } Loader::block('autonav');
Any help is greatly appreciated!
Thanks for the reply but I'm afraid that folder is empty..
How do I go about that then?
Can you see anything wrong with it?
It's now attached to this post.
What version of Concrete5 is installed?
The reason I ask is that addFooterItem() did not exist before c5 version 5.5. My suspicion is that there is nothing wrong with your core files, they are just from a c5 version 5.4.x, while you have some override/theme/addon installed that is designed for c5.5+.
Hence my earlier question about upgrades and versions, as an uncompleted upgrade could cause such a discontinuity.
You should be able to 'Edit' that reply.
Instead of long code I've just attached it as a text file... hope that helps as adding them between "code /code" worked only for my first post, not in that one.. sorry anyway.
I'm still struggling to find what's causing this issue...
yoursite.com/index.php/dashboard/
From there, you can check the environment and see what version of c5 it thinks its running.
You should also use ftp to have a look at the root/updates/ directory and see if there are any updated cores in there, both for the old and new sites.
When you moved the site, did you move the old database and all files (concrete, packages, overrides etc)? Maybe you installed some directly from concrete5.org and they are the wrong versions?
That's the problem, when I go to mysite.com/index.php/dashboard it does give me the login page but once I put my username and password in, it comes back with this error:
Fatal error: Call to undefined method View::addFooterItem() in /home/thecodfa/public_html/concrete/themes/dashboard/elements/header.php on line 36
And yes, I have transferred my old files, all of them with it's database, so there is nothing new in there, same stuff that used to be in old server... and that's why I'm confused :(
I did check root/updates folder and it doesn't have anything in there apart from this: .gitignore
I would look in you root /libraries/ directory for
/libraries/view.php
Your site may have an overridden view.php file that was added to make some changes.
Best Wishes,
Mike