Dashboard not accessible anymore: Fatal error: Call to undefined method View::addFooterItem()

Permalink
Concrete5 Version 5.5.2 (03-29-2012)

Hi 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!

 
mkly replied on at Permalink Reply
mkly
Hello,
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
mozalan replied on at Permalink Reply
Hi mkly!

Thanks for the reply but I'm afraid that folder is empty..

How do I go about that then?
mozalan replied on at Permalink Reply 1 Attachment
I found view.php in here: /www/concrete/libraries/

Can you see anything wrong with it?

It's now attached to this post.
JohntheFish replied on at Permalink Reply
JohntheFish
If the site has ever bee upgraded, you should look at config/site.php and check the last line points to the correct updates folder.
mozalan replied on at Permalink Reply
It's not upgraded, it's moved from one server to another...
mozalan replied on at Permalink Reply
This is my "site.php" file from config folder:

<?php 
define('DB_SERVER', 'localhost');
define('DB_USERNAME', '**********');
define('DB_PASSWORD', '**********');
define('DB_DATABASE', '**********');
define('PASSWORD_SALT', '*****************************');


Any suggestion?
JohntheFish replied on at Permalink Reply
JohntheFish
The site you moved it from - has that ever been upgraded?

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.
JohntheFish replied on at Permalink Reply
JohntheFish
PS - The long post of view.php. It would help others read this thread if you wrapped it in code ... /code with square parenthesis, as described in the note at the bottom of the Post Reply entry form that says 'Enclose code samples in ....'.

You should be able to 'Edit' that reply.
mozalan replied on at Permalink Reply
Hi JohntheFish, thanks for the reply, I don't really remember upgrading it but let's assume that it has been, what do I do in order to get my dashboard back again? It's very frustrating situation as I need to do some work at back-end.

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.
mozalan replied on at Permalink Reply
I've got it attached to my post, anything visibly wrong with that view.php file at all?

I'm still struggling to find what's causing this issue...
JohntheFish replied on at Permalink Reply
JohntheFish
You can usually get directly (without going via the front end of the site) into the dashboard by entering
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?
mozalan replied on at Permalink Reply
Thanks for the reply JohnTheFish,

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