Fatal error: Call to undefined method JFactory::getdate()

Joomla version 1.5 is end-of-life 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
User avatar
SOAMJENA
Joomla! Ace
Joomla! Ace
Posts: 1274
Joined: Thu May 01, 2008 12:36 pm
Location: QubeSys Technologies Pvt. Ltd ,INDIA
Contact:

Fatal error: Call to undefined method JFactory::getdate()

Post by SOAMJENA » Wed Aug 13, 2008 6:34 pm

I was running my site,
[Mod Note: Self-promotion even when well intentioned is not permitted in these forums. Please see the Forum Rules for full clarification on this. URL removed] on Joomla 1.5.5

Just now i downloaded the 64 kb Patch files Zipped pack for 1.5.5 to 1.5.6 and applied the hacks to ym site via FTP,but after it was done,i found that,the frontend is not working anymore,but the admin backend is working fine...
Just the frontend...
im getting this error,

Fatal error: Call to undefined method JFactory::getdate() in /home/soamjena/public_html/joomlahackers/components/com_content/models/frontpage.php on line 178


Help needed!!!!
Web Design, eCommerce and Software Development
Joomla Premium Extensions,Templates and Support Packages

pedu
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sat Feb 23, 2008 7:35 pm

Re: Fatal error: Call to undefined method JFactory::getdate()

Post by pedu » Thu Aug 14, 2008 2:20 pm

I had the same problem. Then I was copping full Joomla 1.5.6 package and it works.

User avatar
SOAMJENA
Joomla! Ace
Joomla! Ace
Posts: 1274
Joined: Thu May 01, 2008 12:36 pm
Location: QubeSys Technologies Pvt. Ltd ,INDIA
Contact:

Re: Fatal error: Call to undefined method JFactory::getdate()

Post by SOAMJENA » Thu Aug 14, 2008 2:28 pm

But my site is already well built and my site and all of its URLs are very very very well indexed...

I get heavy traffic for it...
SO i cant risk it at alll.....

So i had to restore my 1.5.5 again..
Web Design, eCommerce and Software Development
Joomla Premium Extensions,Templates and Support Packages

User avatar
Tonie
Joomla! Master
Joomla! Master
Posts: 16553
Joined: Thu Aug 18, 2005 7:13 am

Re: Fatal error: Call to undefined method JFactory::getdate()

Post by Tonie » Thu Aug 14, 2008 2:32 pm

When you copy your files, you don't touch your data, database or current extensions (as long as they don't change any core files). The error message in question is normally the case of a corruption of a file.

Mod note: can you please change your signature according to the rules that can be found [url=http://forum.joomla.org/viewtopic.php?f=8&t=65[/url]

User avatar
ircmaxell
Joomla! Ace
Joomla! Ace
Posts: 1926
Joined: Thu Nov 10, 2005 3:10 am
Location: New Jersey, USA
Contact:

Re: Fatal error: Call to undefined method JFactory::getdate()

Post by ircmaxell » Thu Aug 14, 2008 6:41 pm

SOAMJENA wrote:But my site is already well built and my site and all of its URLs are very very very well indexed...

I get heavy traffic for it...
SO i cant risk it at alll.....

So i had to restore my 1.5.5 again..
If you get a JFactory::getDate() error, you arn't running 1.5.5, you're running either 1.5.0 or 1.5.1... Sorry... You may want to fix that FIRST...
Anthony Ferrara - Core Team - Development Coordinator - Bug Squad - JSST

http://moovum.com/ - The Bird is in the air! Get Mollom Anti-Spam on your Joomla! website with Moovur...
http://www.joomlaperformance.com For All Your Joomla Performance Needs

berlowin
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed Mar 26, 2008 6:13 am

Re: Fatal error: Call to undefined method JFactory::getdate()

Post by berlowin » Wed Aug 20, 2008 5:20 am

Hi, I have got the same problem... what should i do?

thanks...

randideo
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Aug 20, 2008 9:59 am

Re: Fatal error: Call to undefined method JFactory::getdate()

Post by randideo » Wed Aug 20, 2008 10:02 am

I had this same error too! It is because the display error settings are turned on in php.ini. Just add this to your .htaccess file, located in your root Joomla directory:

php_flag display_errors "0"

User avatar
ircmaxell
Joomla! Ace
Joomla! Ace
Posts: 1926
Joined: Thu Nov 10, 2005 3:10 am
Location: New Jersey, USA
Contact:

Re: Fatal error: Call to undefined method JFactory::getdate()

Post by ircmaxell » Wed Aug 20, 2008 11:37 am

randideo wrote:I had this same error too! It is because the display error settings are turned on in php.ini. Just add this to your .htaccess file, located in your root Joomla directory:

php_flag display_errors "0"
ROTFL... NO! You do that on a live site that you know works incase anything breaks. You don't do that to mask a problem that already exists...

As for how to fix? Copy a fresh install of 1.5.6 over your site... Something was upgraded wrong at some point...
Anthony Ferrara - Core Team - Development Coordinator - Bug Squad - JSST

http://moovum.com/ - The Bird is in the air! Get Mollom Anti-Spam on your Joomla! website with Moovur...
http://www.joomlaperformance.com For All Your Joomla Performance Needs

doctorhands
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Sun May 27, 2007 11:20 pm

Re: Fatal error: Call to undefined method JFactory::getdate()

Post by doctorhands » Thu Aug 28, 2008 3:20 pm

I get the same error when I try to save a form in CKforms. I have a fresh install of joomla 1.5.6. Using PHP 5.1.2 on a linux server.

When I checked the error in CKforms.PhP i noticed that there was no entry on line 92 which is where the error message said the error is coming from. It references a $getdate but I don't see an entry like that. I do see a $datenow, but these are further down the page. Is any of this connected?

Any help would be appreciated.


Locked

Return to “Migrating and Upgrading to Joomla! 1.5”