NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Johan de Klerk on October 12, 2013, 02:20:01 AM

Title: NT 7.26 Error in FTP : NetTalkSendOneFTP extension template
Post by: Johan de Klerk on October 12, 2013, 02:20:01 AM
Hi Bruce,

I am getting an error since upgrading to 7.26 : Syntax Error: Unknown identifier: x"
In this line :  LocNETFTPQ.Remotefile       = sub(pLocalPath,x+1,len(pLocalPath) - ftpx)

I think it is related to: Change: FTP : NetTalkSendOndFTP extension template renamed variable x to ftpx.

Regards

Johan de Klerk
Title: Re: NT 7.26 Error in FTP : NetTalkSendOneFTP extension template
Post by: Bruce on October 13, 2013, 11:03:13 PM
yes, the first x there should be ftpx.
you can correct it in NetTalk.Tpl
lines 5529 and 5533
LocNETFTPQ.LocalFile        = sub(%LocalPath,x+1,len(%LocalPath) - ftpx)
should be
LocNETFTPQ.LocalFile        = sub(%LocalPath,ftpx+1,len(%LocalPath) - ftpx)

and
LocNETFTPQ.Remotefile       = sub(%LocalPath,x+1,len(%LocalPath) - ftpx)
should be
LocNETFTPQ.Remotefile       = sub(%LocalPath,ftpx+1,len(%LocalPath) - ftpx)

Cheers
Bruce
Title: Re: NT 7.26 Error in FTP : NetTalkSendOneFTP extension template
Post by: Johan de Klerk on October 14, 2013, 12:01:51 AM
Hi Bruce,

Thanks that fixed it.

Regards

Johan de Klerk