×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Posting comment Fatal error: Call to undefined method

Posting comment Fatal error: Call to undefined method 14 years 10 months ago #8306

  • harry
  • harry's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
Just installed 4.0 beta2 and i am getting this error message when trying to post comments:

<br />
<b>Fatal error</b>: Call to undefined method JFactory::getdate() in <b>C:\DEV\xampp\htdocs\OI WEB\components\com_comment\joscomment\comment.class.php</b> on line <b>1016</b><br />

Any idea what i am doing wrong. Pls help

Posting comment Fatal error: Call to undefined method 14 years 10 months ago #8330

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
JoomlaComment4 requires Joomla 1.5.11 or newer. If you already have Joomla 1.5, your server is definitely corrupted because JFactory::getDate is part of the Joomla core and therefore needs to be repaired (probably a reinstall will work, unless your webhost is failing).

EDIT: "OI WEB" also has a space in the name. While it's probably unrelated (i'm not sure), you should never have spaces in URL's or E-Mails or anything like that - use a dash (-) or underscore (_) instead.

Posting comment Fatal error: Call to undefined method 14 years 10 months ago #8331

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Cool, I didn't know that the method JFactory::getdate() was introduces with 1.5.11. Good work Jonus :)

Posting comment Fatal error: Call to undefined method 14 years 10 months ago #8332

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
Well I don't know what version the getDate method was written but it must have been sometime before 1.5.11. I just remember trying Beta2 in an older 1.5.x once and it didn't work until I got up to .11 :)

EDIT: JFactory::getDate() was introduced in Joomla v1.5.2 ;) So Harry, if you are running Joomla 1.5.3 or newer, you've got a corrupted Joomla install. Restore from a server backup or re-upload the Joomla PHP files. Many users have reported problems like this after installing a Joomla update in an unreliable way (such as via cPanel webbrowser upload or a non-SSH FTP connection).
  • Page:
  • 1
Time to create page: 0.101 seconds