Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

Date (Invalid Date Format) error

Quote Reply
Date (Invalid Date Format) error
Hi,
I am hoping someone can help me with this. I am installing this script for the first time and so far it hasn't worked. I have been able to add a category so far but I can't add a link. When I try to add a link using the admin form/page, it gives the following error:
Error: Unable to Add Link

There were problems with the following fields:

Date (Invalid date format)

Please fix any errors and submit the record again.

The form already had the date on it (16-Sep-2000) and I didn't change it. When this error comes up, the form is still right there under the error message for me to correct the date. What do I do to make it work? I have tried entering the date in different ways but did not succeed. When I changed the date to (16_Sep_2000) with the underscores, I got this long text error below:

CGI ERROR
==========================================
Error Message : fatal error: Can't locate Time/Local.pm in @INC (@INC contains: /usr/local/etc/httpd/cgi-bin/links/admin /usr/local/lib/perl5/i386-bsdos/5.00403 /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/i386-bsdos /usr/local/lib/perl5/site_perl .) at /usr/local/etc/httpd/cgi-bin/links/admin/links.cfg line 160.

Script Location : /usr/local/etc/httpd/cgi-bin/links/admin/admin.cgi
Perl Version : 5.00403

Form Variables
-------------------------------------------
Category : Entertainment
Contact Email : ashehab@netscape.net
Contact Name : Ed Shehab
Date : 16_Sep_2000
Description :
Hits : 0
ID : 3
Rating : 0
ReceiveMail : Yes
Title : Music of Lebanon
URL : http://www.musicoflebanon.com
Votes : 0
add_record : Add Link
db : links
isNew : No
isPopular : No

Environment Variables
-------------------------------------------
CONTENT_LENGTH : 271
CONTENT_TYPE : application/x-www-form-urlencoded
DOCUMENT_ROOT : /usr/local/etc/httpd/htdocs
GATEWAY_INTERFACE : CGI/1.1
HTTP_ACCEPT : image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
HTTP_ACCEPT_CHARSET : iso-8859-1,*,utf-8
HTTP_ACCEPT_ENCODING: gzip
HTTP_ACCEPT_LANGUAGE: en
HTTP_CONNECTION : Keep-Alive
HTTP_HOST : www.musicoflebanon.com
HTTP_REFERER : http://www.musicoflebanon.com/cgi-bin/links/admin/admin.cgi
HTTP_USER_AGENT : Mozilla/4.61 [en] (WinNT; U)
PATH : /bin:/usr/bin:/usr/contrib/bin:/usr/local/bin:/usr/home/musicofl/bin
QUERY_STRING :
REMOTE_ADDR : 24.218.196.73
REMOTE_HOST : h00c04f598682.ne.mediaone.net
REMOTE_PORT : 1298
REQUEST_METHOD : POST
REQUEST_URI : /cgi-bin/links/admin/admin.cgi
SCRIPT_FILENAME : /usr/local/etc/httpd/cgi-bin/links/admin/admin.cgi
SCRIPT_NAME : /cgi-bin/links/admin/admin.cgi
SERVER_ADMIN : webmaster@musicoflebanon.com
SERVER_NAME : www.musicoflebanon.com
SERVER_PORT : 80
SERVER_PROTOCOL : HTTP/1.0
SERVER_SOFTWARE : Apache/1.3.1.1 SSL/1.15 PHP/4.0b2

Plesae help me..I have read all the posts regarding this error. I also tried to download the Local.pm file from suggested links but I couldn't find it. Please help..I am not experienced at Perl.
Thanks!!

Quote Reply
Re: Date (Invalid Date Format) error In reply to
The error message means that your server does not have Local.pm installed...Please search this forum for Local.pm and you will find MANY threads that discusses this problem and some fixes.

Regards,

Eliot Lee

Quote Reply
Re: Date (Invalid Date Format) error In reply to
Thanks AnthroRules for replying. However, I have read all the posts and this is one of your posts:

...You need to download the complete Time module, then extract the Local.pm from the .tar.gz file.

Upload the Local.pm module to a directory in your local account.

Then replace the following codes in your links.cfg file:

use Time::Local;

with the following:

require "/absolute/path/to/Local.pm";

Now, when I go to the page at this link:
http://search.cpan.org/search?module=Time::Local

there is a tar.gz file at the top which is about 5.58 MB in size. I downloaded that but when I try to extract Local.pm from it using WINZIP, I get a 22MB file which cannot be opened or viewed. What is the best way to extract from the tar.gz file on a Windows system?
If I scroll down, there is a module listed there as
Time::Local
If I click on it, it takes to this page:
http://search.cpan.org/doc/JHI/perl-5.7.0/lib/Time/Local.pm
What do I do with that page? Where is the module that I need to upload to my server? I tried saving the contents of the page as "local.pm" and uploading them to the server. That didn't work.
If I save the "Time::Local" link, it saves it as "local.pm" on my computer, but when you view it in notepad, the contents are that of a page written in HTML.
Please help me in getting the module. If you can email the module to me as an attachment, I would greatly appreciate it. My email address is mc1005@yahoo.com

Quote Reply
Re: Date (Invalid Date Format) error In reply to
All you have to do is the following:

1) Upload the Local.pm to a directory in your Server.
2) Then make the appropriate edits in the links.cfg file.

OR you could ask your hosting company to install the current Perl package (5.006) OR install the appropriate Perl modules.

Regards,

Eliot Lee

Quote Reply
Re: Date (Invalid Date Format) error In reply to
I guess my problem is I don't know where to get the local.pm module from. If I had it, the rest will be easy. In my last post, I explained how I tried to get the local.pm module and how unsuccessfull I was at it. If anyone can show me how to get the module, it would be greatly appreciated.

Quote Reply
Re: Date (Invalid Date Format) error In reply to
It should be in the Time module that you downloaded.

Regards,

Eliot Lee