Class 'JControllerLegacy' not found

Joomla versions 2.5, 1.7 and 1.6 are all end-of-life since December 31st 2014 and are no longer supported. Please use Joomla 3.x instead.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
artmosphere
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Sun Feb 12, 2012 12:06 pm

Class 'JControllerLegacy' not found

Post by artmosphere » Tue Jul 10, 2012 10:00 am

Hi,

I just updated my website from 2.5.4 to 2.5.6 and now when I try to see the website it self the following message appears:

Fatal error: Class 'JControllerLegacy' not found in /home/gtalit8/public_html/artmospheregalleries.com/components/com_content/content.php on line 15


My website is: http://www.artmospheregalleries.com

What should I do?

Here is my FPA:
Problem Description :: Forum Post Assistant (v1.2.1) : 12th July 2012 wrote:No access to backend and front end after updating to 2.5.6 from 2.5.4
Last PHP Error(s) Reported :: Forum Post Assistant (v1.2.1) : 12th July 2012 wrote:[11-Jul-2012 14:51:21] PHP Fatal error: Class \'JControllerLegacy\' not found in /home/gtalit8/public_html/artmospheregalleries.com/components/com_content/content.php on line 15
Forum Post Assistant (v1.2.1) : 12th July 2012 wrote:
Basic Environment :: wrote:Joomla! Instance :: Joomla! 2.5.6-Stable (Ember) 19-June-2012
Joomla! Platform :: Joomla Platform 11.4.0-Stable (Brian Kernighan) 03-Jan-2012
Joomla! Configured :: Yes | Read-Only (400) | Owner: gtalit8 (uid: 689/gid: 689) | Group: gtalit8 (gid: 689) | Valid For: 2.5 and above
Configuration Options :: Offline: 0 | SEF: 1 | SEF Suffix: 0 | SEF ReWrite: 0 | .htaccess/web.config: Yes | GZip: 0 | Cache: 0 | FTP Layer: 0 | SSL: 0 | Error Reporting: default | Site Debug: 0 | Language Debug: 0 | Default Access: 1 | Unicode Slugs: 0 | Database Credentials Present: Yes

Host Configuration :: OS: Linux | OS Version: 2.6.18-308.8.2.el5 | Technology: x86_64 | Web Server: Apache | Encoding: gzip, deflate | Doc Root: /home/gtalit8/public_html/artmospheregalleries.com | System TMP Writable: Yes

PHP Configuration :: Version: 5.2.17 | PHP API: cgi-fcgi | Session Path Writable: Unknown | Display Errors: 1 | Error Reporting: 6135 | Log Errors To: error_log | Last Known Error: 11th July 2012 14:51:21. | Register Globals: | Magic Quotes: 1 | Safe Mode: | Open Base: | Uploads: 1 | Max. Upload Size: 8M | Max. POST Size: 8M | Max. Input Time: 60 | Max. Execution Time: 30 | Memory Limit: 32M

MySQL Configuration :: Version: 5.0.95-community (Client:5.0.95) | Host: --protected-- (--protected--) | Collation: utf8_general_ci (Character Set: utf8) | Database Size: 2.58 MiB | #of _FPA_TABLE: 159
Detailed Environment :: wrote:PHP Extensions :: date (5.2.17) | libxml () | openssl () | pcre () | zlib (1.1) | bcmath () | calendar () | ctype () | curl () | dom (20031129) | hash (1.0) | filter (0.11.0) | ftp () | gd () | gettext () | session () | iconv () | standard (5.2.17) | json (1.2.1) | mbstring () | mcrypt () | mhash () | mysql (1.0) | SimpleXML (0.1) | posix () | pspell () | Reflection (0.1) | imap () | SPL (0.2) | mysqli (0.1) | soap () | sockets () | exif (1.4 $Id: exif.c 293036 2010-01-03 09:23:27Z sebastian $) | tidy (2.0) | tokenizer (0.1) | wddx () | xml () | xmlreader (0.1) | xmlrpc (0.51) | xmlwriter (0.1) | xsl (0.1) | zip (1.8.11) | cgi-fcgi () | timezonedb () | PDO (1.0.4dev) | pdo_sqlite (1.0.1) | SQLite (2.0-dev) | pdo_mysql (1.0.2) | ionCube Loader () | Zend Optimizer () | Zend Engine (2.2.0) |
Potential Missing Extensions :: suhosin |

Switch User Environment (Experimental) :: PHP CGI: Yes | Server SU: No | PHP SU: Yes | Custom SU (LiteSpeed/Cloud/Grid): Yes
Potential Ownership Issues: No
Folder Permissions :: wrote:Core Folders :: images/ (755) | components/ (755) | modules/ (755) | plugins/ (755) | language/ (755) | templates/ (755) | cache/ (755) | logs/ (755) | tmp/ (755) | administrator/components/ (755) | administrator/modules/ (755) | administrator/language/ (755) | administrator/templates/ (755) |
Templates Discovered :: wrote:Templates :: SITE :: beez_20 (2.5.0) | atomic (2.5.0) | beez5 (2.5.0) |
Templates :: ADMIN :: bluestork (2.5.0) | hathor (2.5.0) |
Thank you!
Last edited by artmosphere on Thu Jul 12, 2012 3:13 pm, edited 1 time in total.

artmosphere
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Sun Feb 12, 2012 12:06 pm

Re: Class 'JControllerLegacy' not found

Post by artmosphere » Tue Jul 10, 2012 10:10 am

Now as it terns out. I don't have access to the administrator side as well.....
Please help
Thanks

User avatar
john-doe
Joomla! Ace
Joomla! Ace
Posts: 1008
Joined: Tue Apr 19, 2011 7:39 pm
Location: Colombia
Contact:

Re: Class 'JControllerLegacy' not found

Post by john-doe » Tue Jul 17, 2012 1:22 pm

Sorry if the following is hijacking but i think i'm having the same problem. Since i have the same kind of line ans i have neither administrator access even with 2 users.
Problem Description :: Forum Post Assistant (v1.2.1) : 17th July 2012 wrote:No Backend Acces - Error in front page
Log/Error Message :: Forum Post Assistant (v1.2.1) : 17th July 2012 wrote:Fatal error: Class \'JControllerLegacy\' not found in /home/content/10/6804110/html/avisoscarropartes/Joomla/components/com_content/content.php on line 15
Forum Post Assistant (v1.2.1) : 17th July 2012 wrote:
Basic Environment :: wrote:Joomla! Instance :: Joomla! 2.5.6-Stable (Ember) 19-June-2012
Joomla! Platform :: Joomla Platform 11.4.0-Stable (Brian Kernighan) 03-Jan-2012
Joomla! Configured :: Yes | Read-Only (444) | Owner: 6804110 (uid: /gid: ) | Group: 100450 (gid: ) | Valid For: 2.5 and above
Configuration Options :: Offline: 0 | SEF: 0 | SEF Suffix: 0 | SEF ReWrite: 0 | .htaccess/web.config: No | GZip: 0 | Cache: 0 | FTP Layer: 0 | SSL: 0 | Error Reporting: default | Site Debug: 0 | Language Debug: 0 | Default Access: 1 | Unicode Slugs: 0 | Database Credentials Present: Yes

Host Configuration :: OS: Linux | OS Version: 2.6.18-238.19.1.el5PAE | Technology: i686 | Web Server: Apache | Encoding: gzip, deflate | Doc Root: /var/chroot/home/content/10/6804110/html | System TMP Writable: Yes

PHP Configuration :: Version: 5.2.17 | PHP API: cgi-fcgi | Session Path Writable: Unknown | Display Errors: 1 | Error Reporting: 6135 | Log Errors To: | Last Known Error: | Register Globals: | Magic Quotes: 1 | Safe Mode: | Open Base: | Uploads: 1 | Max. Upload Size: 32M | Max. POST Size: 33M | Max. Input Time: 60 | Max. Execution Time: 30 | Memory Limit: 64M

MySQL Configuration :: Version: 5.0.92-log (Client:5.0.77) | Host: --protected-- (--protected--) | Collation: utf8_general_ci (Character Set: utf8) | Database Size: 574.57 KiB | #of _FPA_TABLE: 64
Detailed Environment :: wrote:PHP Extensions :: date (5.2.17) | libxml () | openssl () | pcre () | zlib (1.1) | bcmath () | calendar () | ctype () | curl () | dba () | dom (20031129) | hash (1.0) | filter (0.11.0) | ftp () | gd () | gettext () | session () | iconv () | json (1.2.1) | mbstring () | mcrypt () | mhash () | mysql (1.0) | SimpleXML (0.1) | SPL (0.2) | PDO (1.0.4dev) | pdo_mysql (1.0.2) | pdo_sqlite (1.0.1) | pspell () | Reflection (0.1) | standard (5.2.17) | mysqli (0.1) | soap () | SQLite (2.0-dev) | exif (1.4 $Id: exif.c 293036 2010-01-03 09:23:27Z sebastian $) | tokenizer (0.1) | wddx () | xml () | xmlreader (0.1) | xmlwriter (0.1) | xsl (0.1) | zip (1.8.11) | cgi-fcgi () | Zend Engine (2.2.0) |
Potential Missing Extensions :: suhosin |

Switch User Environment (Experimental) :: PHP CGI: Yes | Server SU: Yes | PHP SU: Yes | Custom SU (LiteSpeed/Cloud/Grid): No
Potential Ownership Issues: Maybe
Folder Permissions :: wrote:Core Folders :: images/ (755) | components/ (755) | modules/ (755) | plugins/ (755) | language/ (755) | templates/ (755) | cache/ (755) | logs/ (755) | tmp/ (755) | administrator/components/ (755) | administrator/modules/ (755) | administrator/language/ (755) | administrator/templates/ (755) |

Elevated Permissions (First 10) :: None
Extensions Discovered :: wrote:Components :: SITE :: com_mailto (2.5.0) | com_wrapper (2.5.0) |
Components :: ADMIN :: com_admin (2.5.0) | com_banners (2.5.0) | com_cache (2.5.0) | com_categories (2.5.0) | com_checkin (2.5.0) | com_config (2.5.0) | com_content (2.5.0) | com_cpanel (2.5.0) | com_installer (2.5.0) | com_languages (2.5.0) | com_login (2.5.0) | com_media (2.5.0) | com_menus (2.5.0) | com_messages (2.5.0) | com_modules (2.5.0) | com_newsfeeds (2.5.0) | com_plugins (2.5.0) | com_redirect (2.5.0) | com_search (2.5.0) | com_templates (2.5.0) | com_users (2.5.0) | com_weblinks (2.5.0) | swMenuFree (7.2) | swMenuFree (7.2) | com_finder (2.5.0) | com_joomlaupdate (2.5.0) | Widgetkit (1.0.0) |

Modules :: SITE :: mod_articles_archive (2.5.0) | mod_articles_categories (2.5.0) | mod_articles_category (2.5.0) | mod_articles_latest (2.5.0) | mod_articles_news (2.5.0) | mod_articles_popular (2.5.0) | mod_banners (2.5.0) | mod_breadcrumbs (2.5.0) | mod_custom (2.5.0) | mod_feed (2.5.0) | mod_footer (2.5.0) | mod_languages (2.5.0) | mod_login (2.5.0) | mod_menu (2.5.0) | mod_random_image (2.5.0) | mod_related_items (2.5.0) | mod_search (2.5.0) | mod_stats (2.5.0) | mod_syndicate (2.5.0) | mod_users_latest (2.5.0) | mod_weblinks (2.5.0) | mod_whosonline (2.5.0) | mod_wrapper (2.5.0) | Autson Slideshow (1.2) | sigplus (1.4.2.9) | swMenuFree (7.2) | Background (1.4) | IceTabs Module (2.5.0) | DJ-Menu (1.6.3.stable) | HOT Newsflash (2.5.3) | Xpert Tabs (2.1) | RokTabs (1.8) | Tabs & Sliders (by JoomlaW (2.0) | mod_finder (2.5.0) | Vinaora Visitors Counter (2.5.1) | Widgetkit (1.0.0) | Widgetkit Twitter (1.0.0) | SplashR (1.2) |
Modules :: ADMIN :: mod_custom (2.5.0) | mod_feed (2.5.0) | mod_latest (2.5.0) | mod_logged (2.5.0) | mod_login (2.5.0) | mod_menu (2.5.0) | mod_multilangstatus (2.5.0) | mod_popular (2.5.0) | mod_quickicon (2.5.0) | mod_status (2.5.0) | mod_submenu (2.5.0) | mod_title (2.5.0) | mod_toolbar (2.5.0) | mod_version (2.5.0) |

Plugins :: SITE :: plg_authentication_gmail (2.5.0) | plg_authentication_joomla (2.5.0) | plg_authentication_ldap (2.5.0) | plg_content_emailcloak (2.5.0) | plg_content_joomla (1.7.0) | plg_content_loadmodule (1.7.0) | plg_content_pagebreak (1.7.0) | plg_content_pagenavigation (1.7.0) | plg_content_vote (1.7.0) | Content - Image gallery - sigp (1.4.2.9) | AllVideos (by JoomlaWorks) (4.4) | Tabs & Sliders [for articl (2.5) | plg_content_finder (2.5.0) | Content - Widgetkit (1.0.0) | plg_editors_codemirror (1.0) | plg_editors_tinymce (3.4.4) | plg_editors-xtd_article (1.7.0) | plg_editors-xtd_image (1.7.0) | plg_editors-xtd_pagebreak (1.7.0) | plg_editors-xtd_readmore (1.7.0) | plg_extension_joomla (1.7.0) | plg_search_categories (1.7.0) | plg_search_contacts (1.7.0) | plg_search_content (1.7.0) | plg_search_newsfeeds (1.7.0) | plg_search_weblinks (1.7.0) | plg_system_cache (1.7.0) | plg_system_debug (1.7.0) | plg_system_languagefilter (1.7.0) | plg_system_log (1.7.0) | plg_system_logout (1.7.0) | plg_system_p3p (1.7.0) | plg_system_redirect (1.7.0) | plg_system_remember (1.7.0) | plg_system_sef (1.7.0) | plg_vvisit_counter (2.5.0) | System - Widgetkit (1.0.0) | System - Widgetkit ZOO (1.0.0) | System - Widgetkit Joomla (1.0.0) | System - Joomla On Exit Popup (1.0) | plg_user_contactcreator (1.7.0) | plg_user_joomla (1.7.0) | plg_user_profile (1.7.0) | plg_captcha_recaptcha (2.5.0) |
Templates Discovered :: wrote:Templates :: SITE :: AS 002030-Free (1.0.2) | AS 002031 (1.0.1) |
Templates :: ADMIN :: bluestork (2.5.0) | hathor (2.5.0) |
www.aldemar-hernandez.com - Custom templates and design services.

IdiotWithGuns
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Mon Sep 12, 2011 1:09 am

Re: Class 'JControllerLegacy' not found

Post by IdiotWithGuns » Thu Jul 19, 2012 3:30 pm

I have exact the same problem but i do have access to the administrator and pretty much a whole box.
Has anyone found solution yet?

User avatar
john-doe
Joomla! Ace
Joomla! Ace
Posts: 1008
Joined: Tue Apr 19, 2011 7:39 pm
Location: Colombia
Contact:

Re: Class 'JControllerLegacy' not found

Post by john-doe » Thu Jul 19, 2012 3:51 pm

Well i had fixed my site but is kind of tricky the solution.

First i had a previous backup of the site (files not database)
I replaced the compromised file, and asked for other error, so i replaced the file then and my site worked back, partially since when i needed to get into a section i had to do the same operation.
That comes with a downward No access to backend still.

So what i did:

I checked the configurattion.php of the site to check database, username, password, table prefix and other stuff needed.
I went to the phpmy admin to export the database contents.
I copied the site files in a folder inside my XAMPP (my version 1.7.7).
Then i overwrote the files with a fresh install of the latest joomla 2.5.6.
After that i deleted on the local version the configuration.php in order to do a "fresh Install"
I set the username, database and prefix of the tables and later i configured the site.
After that i went to phpmyadmin of XAMPP and done a backup restore of the data base.
Then back to phpmyadmin i looked for how to modify the users' passwords so i can gain access again (no pun intended).
After that the passwords were working again and as i saw in my local site i uploaded the site without the configuration.php (since inside windows settings are kind of different like in the server who runs on linux).

My site is back to operational. Is a tricky way to recover it but really worth it.

EDIT: i almost forgot a essential thing. Export the database of the XAMPP local site and do a backup restore on your site's database so it can recognize the new passwords.
www.aldemar-hernandez.com - Custom templates and design services.

IdiotWithGuns
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Mon Sep 12, 2011 1:09 am

Re: Class 'JControllerLegacy' not found

Post by IdiotWithGuns » Thu Jul 19, 2012 3:58 pm

That's a hell of a fix.
You basically re installed your whole site. There must be a way to fix this without re installation of everything. Yeah i can do a DB back up and can get access to the shell but this would take me literally hours to do.
Thanks for your method. By the way what file did you replaced? You said compromised file? I do have a back up of the website but its older than the new one.

User avatar
john-doe
Joomla! Ace
Joomla! Ace
Posts: 1008
Joined: Tue Apr 19, 2011 7:39 pm
Location: Colombia
Contact:

Re: Class 'JControllerLegacy' not found

Post by john-doe » Thu Jul 19, 2012 4:23 pm

Actually the reinstall over the site is a kind of appearance fix but guarrantees than core files are set of their proper place and settings.

Since i was with less than 24 hours to fix that was the best way to fixit.

The comprimised file is the mentioned on the error

yoursite.com/components/com_content/content.php

When you replace it show an error leading to components\com_content\views\featured\view.html.php

With those first you recover your front page (unless you have a single article instead of the featured) when i went to another place and shwed a similar error i replaced the files mentioned in their routes.

I hope it can helps. Since it looks like than is a compatibility error for upgrade fom 2.5.4 to 2.5.6. Unfortunately the original package is a Joomla Translated and has a lot of things changed but at least with an original joomla installer in english did the job.

Luckly you have the site files backed up, lets hope they are for an early version (not so early) so they can turn back the site to partially operational meanwhile you can try to recover backend access.

Tell me how did you go on it
www.aldemar-hernandez.com - Custom templates and design services.

IdiotWithGuns
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Mon Sep 12, 2011 1:09 am

Re: Class 'JControllerLegacy' not found

Post by IdiotWithGuns » Thu Jul 19, 2012 4:54 pm

I am backing up the production site now and will restore it on to the different server.
Once there will replace all the files from 2.5.6 full.
Will let you guys know how it goes.

IdiotWithGuns
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Mon Sep 12, 2011 1:09 am

Re: Class 'JControllerLegacy' not found

Post by IdiotWithGuns » Fri Jul 20, 2012 1:48 pm

Ok i am back.
So this is what i had to do to get this fixed.

1) backed up my site completely. i have used XCloner. I have access to the adminstration screens so that wasnt too hard to install.
2) once the backup was generated (an hour later) i have moved that back up to a dev server where i had blank mysql db standing by.
3) once the backup restored completely i had to double check everything was good as far as files and folders.(still getting JControllerLegacy error but this time on dev)
4) downloaded extracted and reaploaded joomla 2.5.6 Full on top of all the files.
5) deleted Installation folder.
6) at this point everything seemed ok as far as the whole site but my template was completely trashed.
7) i ve reverted to the backup i previously made with XCloner and re uploaded the theme to the right place.

At this point the whole site came back up. (http://www.umlan.com)
Once the site was up on dev, i knew what i had to do on production.
On Production.
1) I've made a backup folder on production where i copied all of the files from the main directory to it. Just to be on the safe side.
2) Used Joomla 2.5.6 Full files to upload on top of the production files.
3) Deleted Installation folder.
4) Re copied the theme files from back up to the production
5) Site is up and made sure the Database schema and all packages were up to date.


So what happened to cause this. I think the upgrade from 2.5.5 to 2.5.6 had something missing in it. When the 2.5.6 version was build they have included all the files but in the upgrade package they didn't or some kind of miss configuration on their part. I see so many JControllerLegacy errors on the web and people having similar problems all over.

My word of advice with joomla.. Keep a back up of your site at all time. When jumping versions, make a back up of production first :)

Any questions? PM me. Good luck guys.

User avatar
john-doe
Joomla! Ace
Joomla! Ace
Posts: 1008
Joined: Tue Apr 19, 2011 7:39 pm
Location: Colombia
Contact:

Re: Class 'JControllerLegacy' not found

Post by john-doe » Fri Jul 20, 2012 6:49 pm

IdiotWithGuns wrote:Ok i am back.
So what happened to cause this. I think the upgrade from 2.5.5 to 2.5.6 had something missing in it. When the 2.5.6 version was build they have included all the files but in the upgrade package they didn't or some kind of miss configuration on their part. I see so many JControllerLegacy errors on the web and people having similar problems all over.
I guess we agree on it. Basically our solutions involved overwriting core files ovet the site files.
www.aldemar-hernandez.com - Custom templates and design services.

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 20652
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ Germany/ S'pore/Bogor/ North America
Contact:

Re: Class 'JControllerLegacy' not found

Post by leolam » Sun Jul 22, 2012 8:05 am

Basically what is happening here in these posts is that you have somehow corrupt files. If you just download the Joomla package and extract and reload with ftp and overwrite all files and folders (except the installation-folder) the issue should be resolved

Leo 8)
Joomla's #1 Professional Services Provider:
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -

artmosphere
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Sun Feb 12, 2012 12:06 pm

Re: Class 'JControllerLegacy' not found

Post by artmosphere » Mon Jul 23, 2012 9:03 am

Thank you all for your help. I have changed the corrupt files one after the other and the site is running again. :)
But, Is my version now 2.5.6 or a combination between 2.5.4 and 2.5.6? and how do I update it to 2.5.6 if needed?

Thanks a lot!
Tes

artmosphere
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Sun Feb 12, 2012 12:06 pm

Re: Class 'JControllerLegacy' not found

Post by artmosphere » Mon Jul 23, 2012 10:17 am

One more thing. How did you get access to the backend? I have went into phpMyAdmin but couldn't find a place to change passwords.

User avatar
john-doe
Joomla! Ace
Joomla! Ace
Posts: 1008
Joined: Tue Apr 19, 2011 7:39 pm
Location: Colombia
Contact:

Re: Class 'JControllerLegacy' not found

Post by john-doe » Tue Jul 24, 2012 1:27 am

If you read my entry i had to alter the password via database... once you get to thedatabase taable of users change the password using MD5 encryption type the new password, save and try then
www.aldemar-hernandez.com - Custom templates and design services.

artmosphere
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Sun Feb 12, 2012 12:06 pm

Re: Class 'JControllerLegacy' not found

Post by artmosphere » Thu Jul 26, 2012 12:10 pm

Thank you, I have read it but still couldn't get access. Still working on that. Thank you

nguyenhoaitra
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri Jul 13, 2012 9:53 am
Contact:

Re: Class 'JControllerLegacy' not found

Post by nguyenhoaitra » Fri Jul 27, 2012 2:59 am

You please add the code to content.php

jimport('joomla.application.component.controller') ;

100% successfully !

My site : bep gas also had it and i fixed !

You may also get the error " Fatal error: Class 'JControllerLegacy' not found in E:\xampp\htdocs\webbeta\components\com_content\controller.php on line 18"

Please add the code to controller.php

jimport('joomla.application.component.controller') ;

and it worked done !

healthsmart
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Dec 17, 2009 6:18 pm

Re: Class 'JControllerLegacy' not found

Post by healthsmart » Fri Nov 23, 2012 9:23 pm

I just attempted to update our 2.5.x version to 2.5.8 and got the very same error. I tried the suggestions posted here on this forum but so far no success. This is what the Forum Post Assistant gave me.
Last PHP Error(s) Reported :: Forum Post Assistant (v1.2.3) : 23rd November 2012 wrote:[23-Nov-2012 21:02:23 UTC] PHP Fatal error: Class \'JControllerLegacy\' not found in /home/ualexcro/public_html/components/com_content/content.php on line 15
Actions Taken To Resolve by Forum Post Assistant (v1.2.3) 23rd November 2012 wrote:downloaded the full Joomla 2.5.8 package and extracted and reloaded overwrote all files and folders (except the installation-folder)
Forum Post Assistant (v1.2.3) : 23rd November 2012 wrote:
Basic Environment :: wrote:Joomla! Instance :: Joomla! 2.5.0-Stable (Ember) 24-Jan-2012
Joomla! Platform :: Joomla Platform 11.4.0-Stable (Brian Kernighan) 03-Jan-2012
Joomla! Configured :: Yes | Writable (644) | Owner: ualexcro (uid: 1/gid: 1) | Group: ualexcro (gid: 1) | Valid For: 2.5
Configuration Options :: Offline: 0 | SEF: 1 | SEF Suffix: 0 | SEF ReWrite: 0 | .htaccess/web.config: Yes | GZip: 0 | Cache: 0 | FTP Layer: 0 | SSL: 0 | Error Reporting: default | Site Debug: 0 | Language Debug: 0 | Default Access: 1 | Unicode Slugs: 0 | Database Credentials Present: Yes

Host Configuration :: OS: Linux | OS Version: 2.6.18-308.16.1.el5PAE | Technology: i686 | Web Server: Apache | Encoding: gzip, deflate | Doc Root: /home/ualexcro/public_html | System TMP Writable: Yes

PHP Configuration :: Version: 5.3.17 | PHP API: apache2handler | Session Path Writable: Unknown | Display Errors: 1 | Error Reporting: 81 | Log Errors To: error_log | Last Known Error: 23rd November 2012 16:02:23. | Register Globals: | Magic Quotes: 1 | Safe Mode: | Open Base: | Uploads: 1 | Max. Upload Size: 32M | Max. POST Size: 32M | Max. Input Time: 60 | Max. Execution Time: 3600 | Memory Limit: 500M

MySQL Configuration :: Version: 5.1.63-cll (Client:5.1.63) | Host: --protected-- (--protected--) | Collation: utf8_general_ci (Character Set: utf8) | Database Size: 1.65 MiB | #of Tables: 117
Detailed Environment :: wrote:PHP Extensions :: Core (5.3.17) | date (5.3.17) | ereg () | libxml () | openssl () | pcre () | sqlite3 (0.7-dev) | zlib (1.1) | bcmath () | bz2 () | calendar () | ctype () | curl () | dom (20031129) | filter (0.11.0) | gd () | gettext () | hash (1.0) | iconv () | SPL (0.2) | json (1.2.1) | mbstring () | mcrypt () | mysql (1.0) | mysqli (0.1) | posix () | Reflection ($Id: 593a0506b01337cfaf9f63ebc12cd60523fc2c41 $) | session () | standard (5.3.17) | SimpleXML (0.1) | sockets () | imap () | tokenizer (0.1) | xml () | xmlreader (0.1) | xmlrpc (0.51) | xmlwriter (0.1) | xsl (0.1) | apache2handler () | XCache (2.0.1) | suhosin (0.9.33) | PDO (1.0.4dev) | pdo_sqlite (1.0.1) | SQLite (2.0-dev) | pdo_mysql (1.0.2) | SourceGuardian (8.2) | ionCube Loader () | Zend Guard Loader () | Zend Engine (2.3.0) |
Potential Missing Extensions :: zip |

Switch User Environment (Experimental) :: PHP CGI: No | Server SU: No | PHP SU: No | Custom SU (LiteSpeed/Cloud/Grid): Yes
Potential Ownership Issues: No

Apache Modules :: core | mod_authn_file | mod_authn_default | mod_authz_host | mod_authz_groupfile | mod_authz_user | mod_authz_default | mod_auth_basic | mod_include | mod_filter | mod_deflate | mod_log_config | mod_logio | mod_env | mod_expires | mod_headers | mod_unique_id | mod_setenvif | mod_version | mod_ssl | prefork | http_core | mod_mime | mod_status | mod_autoindex | mod_asis | mod_info | mod_suexec | mod_cgi | mod_negotiation | mod_dir | mod_actions | mod_userdir | mod_alias | mod_rewrite | mod_so | mod_ruid2 | mod_bwlimited | mod_php5 | mod_security2 | Apache |
Potential Missing Modules :: mod_security | mod_evasive | mod_dosevasive | mod_qos | mod_userdir |
Folder Permissions :: wrote:Core Folders :: images/ (755) | components/ (755) | modules/ (755) | plugins/ (755) | language/ (755) | templates/ (755) | cache/ (755) | logs/ (755) | tmp/ (755) | administrator/components/ (755) | administrator/modules/ (755) | administrator/language/ (755) | administrator/templates/ (755) |

Elevated Permissions (First 10) ::
Extensions Discovered :: wrote:Components :: SITE :: WF_XHTMLXTRAS_TITLE (2.2.9.1) | WF_CLEANUP_TITLE (2.2.9.1) | WF_SOURCE_TITLE (2.2.9.1) | WF_CONTEXTMENU_TITLE (2.2.9.1) | WF_NONBREAKING_TITLE (2.2.9.1) | WF_SEARCHREPLACE_TITLE (2.2.9.1) | WF_KITCHENSINK_TITLE (2.2.9.1) | WF_LISTS_TITLE (2.2.9.1) | WF_VISUALCHARS_TITLE (2.2.9.1) | WF_FULLSCREEN_TITLE (2.2.9.1) | WF_ARTICLE_TITLE (2.2.9.1) | WF_DIRECTIONALITY_TITLE (2.2.9.1) | WF_VISUALBLOCKS_TITLE (2.2.9.1) | WF_SPELLCHECKER_TITLE (2.2.9.1) | WF_LAYER_TITLE (2.2.9.1) | WF_TABLE_TITLE (2.2.9.1) | WF_MEDIA_TITLE (2.2.9.1) | WF_PRINT_TITLE (2.2.9.1) | WF_BROWSER_TITLE (2.2.9.1) | WF_ANCHOR_TITLE (2.2.9.1) | WF_INLINEPOPUPS_TITLE (2.2.9.1) | WF_CLIPBOARD_TITLE (2.2.9.1) | WF_TEXTCASE_TITLE (2.2.9.1) | WF_IMGMANAGER_TITLE (2.2.9.1) | WF_AUTOSAVE_TITLE (2.2.9.1) | WF_LINK_TITLE (2.2.9.1) | WF_STYLE_TITLE (2.2.9.1) | WF_PREVIEW_TITLE (2.2.9.1) | WF_FILESYSTEM_JOOMLA_TITLE (2.2.9.1) | WF_LINK_SEARCH_TITLE (2.2.9.1) | WF_MEDIAPLAYER_JCEPLAYER_TITLE (2.2.9.1) | WF_AGGREGATOR_[youtube]_TITLE (2.2.9.1) | WF_AGGREGATOR_VIMEO_TITLE (2.2.9.1) | WF_LINKS_JOOMLALINKS_TITLE (2.2.9.1) | WF_POPUPS_JCEMEDIABOX_TITLE (2.2.9.1) | WF_POPUPS_WINDOW_TITLE (2.2.9.1) | Default (1.0.0) | com_wrapper (2.5.0) | com_mailto (2.5.0) |
Components :: ADMIN :: com_weblinks (2.5.0) | Editor - JCE (2.2.9.1) | Editor - JCE (2.2.9.1) | plg_quickicon_jcefilebrowser (2.5.0) | JCE File Browser (2.0.0) | JCE (2.2.9.1) | Unknown (-) | com_search (2.5.0) | Admintools (2.2.5) | com_checkin (2.5.0) | com_finder (2.5.0) | com_messages (2.5.0) | com_plugins (2.5.0) | com_modules (2.5.0) | com_categories (2.5.0) | com_media (2.5.0) | com_phocagallery (3.2.0) | com_admin (2.5.0) | com_newsfeeds (2.5.0) | com_redirect (2.5.0) | com_languages (2.5.0) | com_templates (2.5.0) | com_login (2.5.0) | Akeeba (3.5.2) | com_users (2.5.0) | com_content (2.5.0) | com_xmap (2.2.1) | com_joomlaupdate (2.5.0) | com_config (2.5.0) | COM_BIBLESTUDY (7.1.2) | com_banners (2.5.0) | com_menus (2.5.0) | com_cpanel (2.5.0) | com_installer (2.5.0) | com_cache (2.5.0) |

Modules :: SITE :: mod_finder (2.5.0) | mod_footer (2.5.0) | mod_articles_latest (2.5.0) | mod_languages (2.5.0) | mod_search (2.5.0) | mod_related_items (2.5.0) | mod_breadcrumbs (2.5.0) | mod_banners (2.5.0) | mod_weblinks (2.5.0) | mod_menu (2.5.0) | mod_articles_archive (2.5.0) | mod_syndicate (2.5.0) | mod_articles_categories (2.5.0) | mod_random_image (2.5.0) | mod_login (2.5.0) | mod_articles_news (2.5.0) | mod_wrapper (2.5.0) | mod_whosonline (2.5.0) | mod_stats (2.5.0) | mod_biblestudy (7.0.4) | mod_users_latest (2.5.0) | mod_articles_popular (2.5.0) | mod_feed (2.5.0) | mod_custom (2.5.0) | mod_articles_category (2.5.0) |
Modules :: ADMIN :: Admin Tools Joomla! Upgrade No (svn746) | Admin Tools Joomla! Upgrade No (2.2.5) | mod_menu (2.5.0) | mod_login (2.5.0) | mod_multilangstatus (2.5.0) | mod_submenu (2.5.0) | mod_status (2.5.0) | mod_popular (2.5.0) | mod_logged (2.5.0) | mod_toolbar (2.5.0) | mod_quickicon (2.5.0) | mod_version (2.5.0) | mod_feed (2.5.0) | mod_custom (2.5.0) | mod_latest (2.5.0) | mod_title (2.5.0) |

Plugins :: SITE :: plg_captcha_recaptcha (2.5.0) | plg_extension_joomla (2.5.0) | plg_extension_joomla (2.5.0) | plg_search_categories (2.5.0) | plg_search_content (2.5.0) | plg_search_newsfeeds (2.5.0) | plg_search_weblinks (2.5.0) | plg_search_contacts (2.5.0) | plg_content_vote (2.5.0) | plg_content_emailcloak (2.5.0) | Content - JPlayer (1.5.4) | plg_content_josdewplayer (2.0) | plg_content_pagenavigation (2.5.0) | plg_content_pagebreak (2.5.0) | plg_content_finder (2.5.0) | plg_content_geshi (2.5.0) | plg_content_loadmodule (2.5.0) | plg_content_joomla (2.5.0) | plg_finder_categories (2.5.0) | plg_finder_content (2.5.0) | plg_finder_newsfeeds (2.5.0) | plg_finder_weblinks (2.5.0) | plg_finder_contacts (2.5.0) | plg_system_debug (2.5.0) | System - BIGSHOT Google Analyt (1.7) | plg_system_languagecode (2.5.0) | Google Maps (2.18) | plg_system_cache (2.5.0) | plg_system_languagefilter (2.5.0) | plg_system_redirect (2.5.0) | plg_system_highlight (2.5.0) | plg_system_remember (2.5.0) | plg_system_sef (2.5.0) | plg_system_log (2.5.0) | plg_system_logout (2.5.0) | System - Admin Tools (2.2.5) | plg_system_p3p (2.5.0) | plg_editors-xtd_article (2.5.0) | plg_editors-xtd_readmore (2.5.0) | plg_editors-xtd_pagebreak (2.5.0) | plg_editors-xtd_image (2.5.0) | plg_editors_tinymce (3.5.4.1) | Editor - JCE (2.2.9.1) | plg_editors_codemirror (1.0) | plg_authentication_gmail (2.5.0) | plg_authentication_ldap (2.5.0) | plg_authentication_joomla (2.5.0) | plg_quickicon_extensionupdate (2.5.0) | plg_quickicon_joomlaupdate (2.5.0) | plg_quickicon_jcefilebrowser (2.5.0) | Xmap - WebLinks Plugin (2.0) | Xmap - SobiPro Plugin (2.0.1) | Xmap - Content Plugin (2.0.3) | Xmap - Kunena Plugin (2.0.2) | Xmap - Virtuemart Plugin (2.0.0) | Xmap - Mosets Tree Plugin (2.0.2) | PLG_JMONITORING_AKEEBABACKUP_T (1.0) | plg_user_profile (2.5.0) | plg_user_joomla (2.5.0) | plg_user_contactcreator (2.5.0) |
Templates Discovered :: wrote:Templates :: SITE :: atomic (2.5.0) | beez_20 (2.5.0) | ProPages-FJT (1.7.0) | Bolito-FJT (1.7.0) | beez5 (2.5.0) | SkyExtend-FJT (1.7.0) |
Templates :: ADMIN :: bluestork (2.5.0) | hathor (2.5.0) |

alaoa
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Mon Sep 01, 2008 3:50 pm
Location: Washington, D.C
Contact:

Re: Class 'JControllerLegacy' not found

Post by alaoa » Sun Dec 30, 2012 5:25 pm

This is because of the changes to Joomla 3.0. This is Joomla's half hearted attempt at backward compatibly.

Angkorthom
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Sat Oct 17, 2009 6:19 am
Contact:

Re: Class 'JControllerLegacy' not found

Post by Angkorthom » Mon Mar 11, 2013 4:10 am

I tried to upgrade my site (2.5.3) to the latest Joomla 2.5 version from the Control Panel and after clicking on the Update button, I got this fatal error.

Fatal error: Class 'JControllerLegacy' not found in /home/wwwang5/public_html/social/administrator/components/com_installer/installer.php on line 17

My problem is only the back end admin area which I can't access. If I just restore the Administrator folder, would it work or the database also needs to be restored as well? Any suggestions are appreciated.

sovainfo
Joomla! Exemplar
Joomla! Exemplar
Posts: 8808
Joined: Sat Oct 01, 2011 7:06 pm

Re: Class 'JControllerLegacy' not found

Post by sovainfo » Tue Mar 19, 2013 8:18 pm

Restore your backup, download the 2.5.9 patch and use extension installer to install it.

Or replace all folders from the distribution (except installation) on your site. Run discover and install discovered extensions, run database and fix any missing updates.
Issue with migrating? Include logs/joomla_update.php in your report!
Blank screen? Verify pagesource for HTML code (javascript error)
Installation failing on populating database? Install with set_time_limit(0)
Document your customizations!

Angkorthom
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Sat Oct 17, 2009 6:19 am
Contact:

Re: Class 'JControllerLegacy' not found

Post by Angkorthom » Fri Mar 22, 2013 6:58 pm

Can you explain more on the 2nd option? What do you meant Run discover? Thanks for responding.
sovainfo wrote:Restore your backup, download the 2.5.9 patch and use extension installer to install it.

Or replace all folders from the distribution (except installation) on your site. Run discover and install discovered extensions, run database and fix any missing updates.

sovainfo
Joomla! Exemplar
Joomla! Exemplar
Posts: 8808
Joined: Sat Oct 01, 2011 7:06 pm

Re: Class 'JControllerLegacy' not found

Post by sovainfo » Fri Mar 22, 2013 7:11 pm

discover:
- login as Super user on Joomla/administrator
- Select Extensions->Extension manager from the menu
- Choose tab Discover
- Press Purge cache button
- Press Discover button

database:
- login as Super user on Joomla/administrator
- Select Extensions->Extension manager from the menu
- Choose tab Database
- Press Fix button if it doesn't say the structure is up2date
Issue with migrating? Include logs/joomla_update.php in your report!
Blank screen? Verify pagesource for HTML code (javascript error)
Installation failing on populating database? Install with set_time_limit(0)
Document your customizations!

Angkorthom
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Sat Oct 17, 2009 6:19 am
Contact:

Re: Class 'JControllerLegacy' not found

Post by Angkorthom » Fri Mar 22, 2013 7:52 pm

My problem now is I can't access my administrator because of that error. So just let me clarify: after I replaced all the folders with the latest version of Joomla, I would have access to my administrator area and able to do this?
sovainfo wrote:discover:
- login as Super user on Joomla/administrator
- Select Extensions->Extension manager from the menu
- Choose tab Discover
- Press Purge cache button
- Press Discover button

database:
- login as Super user on Joomla/administrator
- Select Extensions->Extension manager from the menu
- Choose tab Database
- Press Fix button if it doesn't say the structure is up2date

sovainfo
Joomla! Exemplar
Joomla! Exemplar
Posts: 8808
Joined: Sat Oct 01, 2011 7:06 pm

Re: Class 'JControllerLegacy' not found

Post by sovainfo » Fri Mar 22, 2013 8:42 pm

That is what the replacement of the files is for.
Issue with migrating? Include logs/joomla_update.php in your report!
Blank screen? Verify pagesource for HTML code (javascript error)
Installation failing on populating database? Install with set_time_limit(0)
Document your customizations!

testascossa
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Fri Apr 26, 2013 9:38 am

Re: Class 'JControllerLegacy' not found & etc etc..

Post by testascossa » Fri Apr 26, 2013 9:56 am

Hello folks!
Here a newbie without experience, very low base simple ideas on how do easy things with joomla.

Well after doing an automatic updating from 2.5.4. to 2.5.10 I get
Fatal error: Class 'JControllerLegacy' not found in /web/htdocs/www.xyz.com/home/administrator/componen ... cpanel.php on line 13

then I log in my site via ftp and i cnhaged something in com_cpanel/cpanel.php, trying to overrwrite that folder/files...

but now I get this

Fatal error: Class 'JViewLegacy' not found in /web/htdocs/www.dolfanitalia.com/home/administrator ... w.html.php on line 21

I really dont know how I can do now and I dont want create more problems and Im praying someone to help me in doing something right to solve this!

Thank you

testascossa
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Fri Apr 26, 2013 9:38 am

Re: Class 'JControllerLegacy' not found

Post by testascossa » Tue Apr 30, 2013 7:13 pm

:laugh: ok! solved ole' ahahha

sammydlc75
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Aug 20, 2013 5:01 pm

Re: Class 'JControllerLegacy' not found

Post by sammydlc75 » Tue Aug 20, 2013 5:04 pm

@testascossa
How were you able to fix the error? I am getting the same exact error and line 13.

dorsa
Joomla! Apprentice
Joomla! Apprentice
Posts: 30
Joined: Mon Jul 29, 2013 5:46 am

Re: Class 'ImageHelper' not found

Post by dorsa » Sat Jun 07, 2014 4:41 am

hi, please help me.

Code: Select all

Fatal error: Class 'ImageHelper' not found in /home3/ccrair/public_html/templates/sj_financial/html/mod_sj_gallery_pro/default.php on line 23
line 23 is:

Code: Select all

ImageHelper::setDefault($params);
if (count($items)>0){
	$instance	= rand().time();
	$titleposition			= $params->get("titleposition", 'over');
	$transition				= $params->get("transition", 'none');
	$show_nextprev					= $params->get('show_nextprev', 1);
	$count = count($items);
	$total = (int)$params->get('numberImage',60);
	if($total > $count){
		$total = $count;
	}
	$total_image_pag = $params->get('items_page', 9);
	$pags = (int)ceil($total/$total_image_pag);
	$play = $params->get('play', 1);
	if (!$play){
		$interval = 0;
	} else {
		$interval = $params->get('interval', 5000);
	}?>

terdono
Joomla! Apprentice
Joomla! Apprentice
Posts: 24
Joined: Wed Aug 14, 2013 6:38 am

Re: Class 'JControllerLegacy' not found

Post by terdono » Wed Jul 30, 2014 8:10 pm

Fatal error: Class 'ImageHelper' not found in /home/admin/domains/***/public_html/templates/sj_esport/html/mod_sj_meganews_ii/default.php on line 12

information
DirectAdmin 1.42.1 Running
Exim 4.77 Running
MySQL 5.1.65 Running
Named 9.3.4 Running
ProFTPd 1.3.3c Running
sshd Running
dovecot 2.1.14 Running
Php 5.2.17 Installed


Locked

Return to “Migrating and Upgrading to Joomla! 2.5”