We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Fatal error: Call to undefined method Localize::decode_date in /system/expressionengine/libraries/Functions.php(688) : eval()'d code on line

Development and Programming

TCSComms's avatar
TCSComms
1 posts
11 years ago
TCSComms's avatar TCSComms

I’m upgrading from EE 2.5.2 to 2.9 and I’m getting this error message:

Fatal error: Call to undefined method Localize::decode_date() in /system/expressionengine/libraries/Functions.php(688) : eval()’d code on line 11

When I look at that file though there is nothing on line 11. Line 11 is where all this stuff is: * ExpressionEngine - by EllisLab * * @package ExpressionEngine * @author EllisLab Dev Team * @copyright Copyright (c) 2003 - 2014, EllisLab, Inc. * @license http://ellislab.com/expressionengine/user-guide/license.html * @link http://ellislab.com * @since Version 2.0 * @filesource */

What is causing this? How do I fix it?

       
TCSComms's avatar
TCSComms
1 posts
11 years ago
TCSComms's avatar TCSComms

I fixed this by changing decode_date to format_date. Even though I read somewhere that “format” is “deprecated” and we should be using “decode_date” instead apparently that is not the case because when I changed that in my template it worked and I stopped getting that error.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.