Class 'IntlDateFormatter' not found

Status
Not open for further replies.

myworko2

New Member
Messages
5
Reaction score
0
Points
1
I've getting this error Fatal error: Class 'IntlDateFormatter' not found in /home/mysite/public_html/....
Is there a way to enable/activate IntlDateFormatter in php.ini?

Cheers

Robert
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Do you have a URL that shows the error?

That class is functioning on the free server Vox (your account is on Level) and all the servers should be configured the same.

Following code works on Vox:

PHP:
<?php

echo date('l jS \of F Y h:i:s A');
echo "\n<br >";

$now = new DateTime();

$fmt = new IntlDateFormatter( "en_US" ,IntlDateFormatter::FULL, IntlDateFormatter::FULL,
    'America/Los_Angeles',IntlDateFormatter::GREGORIAN  );
echo "First Formatted output is ".$fmt->format($now);
echo "\n<br >";
$fmt = new IntlDateFormatter( "de-DE" ,IntlDateFormatter::FULL, IntlDateFormatter::FULL,
    'America/Los_Angeles',IntlDateFormatter::GREGORIAN  );
echo "Second Formatted output is ".$fmt->format($now);
echo "\n<br >";

$fmt = new IntlDateFormatter( "en_US" ,IntlDateFormatter::FULL, IntlDateFormatter::FULL,
    'America/Los_Angeles',IntlDateFormatter::GREGORIAN  ,"MM/dd/yyyy");
echo "First Formatted output with pattern is ".$fmt->format($now);
echo "\n<br >";
$fmt = new IntlDateFormatter( "de-DE" ,IntlDateFormatter::FULL, IntlDateFormatter::FULL,
      'America/Los_Angeles',IntlDateFormatter::GREGORIAN , "MM/dd/yyyy");
echo "Second Formatted output with pattern is ".$fmt->format($now);
echo "\n<br >";

$fmt = datefmt_create( "en_US" ,IntlDateFormatter::FULL, IntlDateFormatter::FULL,
    'America/Los_Angeles', IntlDateFormatter::GREGORIAN  );
echo "First Formatted output is ".datefmt_format( $fmt , $now);
echo "\n<br >";
$fmt = datefmt_create( "de-DE" ,IntlDateFormatter::FULL, IntlDateFormatter::FULL,
    'America/Los_Angeles',IntlDateFormatter::GREGORIAN  );
echo "Second Formatted output is ".datefmt_format( $fmt , $now);
echo "\n<br >";

$fmt = datefmt_create( "en_US" ,IntlDateFormatter::FULL, IntlDateFormatter::FULL,
    'America/Los_Angeles',IntlDateFormatter::GREGORIAN  ,"MM/dd/yyyy");
echo "First Formatted output with pattern is ".datefmt_format( $fmt , $now);
echo "\n<br >";
$fmt = datefmt_create( "de-DE" ,IntlDateFormatter::FULL, IntlDateFormatter::FULL,
    'America/Los_Angeles',IntlDateFormatter::GREGORIAN  ,"MM/dd/yyyy");
echo "Second Formatted output with pattern is ".datefmt_format( $fmt , $now);
echo "\n<br >";
?>
 

bdistler

Well-Known Member
Prime Account
Messages
3,534
Reaction score
196
Points
63
No issue on free-hosting server [ Vox ]

BUT - throws "Fatal error: Class 'IntlDateFormatter' not found..." - on free-hosting server [ Level ]
 

myworko2

New Member
Messages
5
Reaction score
0
Points
1
That class is functioning on the free server Vox (your account is on Level) and all the servers should be configured the same.
Apparently there might be some slight difference......

BUT - throws "Fatal error: Class 'IntlDateFormatter' not found..." - on free-hosting server [ Level ]

Here's the URL: http://myworkout.elementfx.com/activities
log in with user: admin password : *NUKED BY leafypiggy*

Cheers,

Robert
 
Last edited by a moderator:

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,819
Reaction score
163
Points
63
Do NOT post passwords on the forums. These forums are public.
 

myworko2

New Member
Messages
5
Reaction score
0
Points
1
leafypiggy,

This is a test system for an Openfit site. Its ok for the password to be tested.
(This is the only way the site can be tested. The error will only pop-up if you have access into the site)
The site will be put-down and upgraded to a paid account as soon as all the kinks are ironed out.

Thanks for the warning :) ....

Robert
 

bdistler

Well-Known Member
Prime Account
Messages
3,534
Reaction score
196
Points
63
Any chance we can move my site to the VOX server?

In short - NO

They (x10hosting) do not move free-hosting accounts from one server to a other one - unless it is a 'upgrade'
 

myworko2

New Member
Messages
5
Reaction score
0
Points
1
Sigh.....:(
Would this the final answer from "descalzo" and "leafypiggy" ?
I was hoping to get a confirmation if indeed the free-servers are operating the same or "Level" really has some problems.
Waiting to close the issue . . . . . .

Robert
 

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,819
Reaction score
163
Points
63
Considering we're migrating all the free servers right now to new hardware.. it's really not worth moving anyone anywhere...
 
Status
Not open for further replies.
Top