0

I'm trying to get the Ansinerator library to work my on my localhost, but something's amiss.

I'm receiving the following errors: Notice: Undefined index: hash in ansi.php on line 23 Notice: Undefined index: aml in ansi.php on line 37 Notice: Undefined variable: PNG_DESTRUCT in ansi.php on line 119 Notice: Undefined offset: -1 in ansi.php on line 362 Notice: Trying to get property of non-object in ansi.php on line 362 Notice: Undefined variable: links in ansi.php on line 459 Notice: Trying to get property of non-object in ansi.php on line 677 Notice: Undefined variable: links in ansi.php on line 459 Notice: Undefined variable: map_link in ansi.php on line 687

Any idea where am I going wrong with this one? I've installed the php-gd library, restarted the server, and while runs perfectly on production server, localhost will refuse. Ideas?

Thank you.

Thomas Dickey
  • 51,086
  • 7
  • 70
  • 105
Tomer Lichtash
  • 9,002
  • 16
  • 55
  • 71

2 Answers2

0

Is it possible that you have set different error reporting levels on both servers?

Before anything, put error_reporting(E_ALL); at the top of your script on both servers and see if it runs perfectly. (My guess is you will get errors on both servers)

Tyler Carter
  • 60,743
  • 20
  • 130
  • 150
0

Check - That you've got 'proper' versions of everything installed on localhost. (Compare localhost with production.) There's obviously something different between the 2 servers here, just use phpinfo() to check.

  • Restart localhost again? (Just kidding...)
Moshe
  • 57,511
  • 78
  • 272
  • 425