Results 1 to 6 of 6

Thread: NEXT_NUM error

  1. #1
    Join Date
    Feb 2007
    Posts
    6

    Default NEXT_NUM error

    Everything's been working fine with my form for ages. However, I've been using a third-party SMPT server (fastmail.fm) which now tells me I can't continue to use port 25 to send. I've tried changing the port in PEAR settings, but nothing else worked. So, I've changed the PEAR settings to use my server's SMPT. Testalert works OK, but the form sends the following error message:

    The following error occurred in FormMail :

    next_num_file
    **********
    Error=Cannot open next number file '/usr/local/psa/home/vhosts/arioso.co.uk/httpdocs/formmail/nextnum.txt': fopen(/usr/local/psa/home/vhosts/arioso.co.uk/httpdocs/formmail/nextnum.txt): failed to open stream: Operation not permitted


    email:
    realname:

    Any idea what's wrong? the new pear settings are:

    $PEAR_SMTP_HOST = "smtp.arioso.co.uk";
    $PEAR_SMTP_PORT = 587;
    $PEAR_SMTP_USER = "arioso.co.uk";
    $PEAR_SMTP_PWD = "xxxxxxx";

    Thanks for your help,
    Nick

  2. #2
    Join Date
    Dec 2003
    Posts
    3,980

    Default Re: NEXT_NUM error

    Hi,

    Changing the PEAR settings won't affect the NEXT_NUM_FILE operation.

    So, my guess is you modified a copy of FormMail that was not identical to the one previously installed on your system, and when you uploaded it, the differences caused the new problem.

    I recommend you restore from the backup you took (I hope you did), confirm that operation is back the way it was, then download that almost-working copy and make the changes to the PEAR settings in that.

    Alternatively, we can look directly at the new problem. In this case, please send access details to your server using this secure form:
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  3. #3
    Join Date
    Feb 2007
    Posts
    6

    Default Re: NEXT_NUM error

    Hi Russell,

    I was working directly on the FormMail and only changed the pear settings. If I revert to the old SMPT fastmail.fm settings using port 25 everything works as it should again. I'll send you the access details.

    Thanks,
    Nick

  4. #4
    Join Date
    Feb 2007
    Posts
    6

    Default Re: NEXT_NUM error

    I forgot to say, formmail.php is renamed as mailform, and the old/working FormMail is still on the server as mailform.old. Hope that helps. I feel sure the problem is with my hosting; I hope you can track it down!

    Best regards,
    Nick

  5. #5
    Join Date
    Dec 2003
    Posts
    3,980

    Default Re: NEXT_NUM error

    Hi,

    It's fixed now.

    The cause seems to be as I suggested in my earlier post.

    Your new copy had settings for various items that were no correct (NEXT_NUM_FILE, CSVDIR, TEMPLATEDIR, FORM_INI_FILE).

    So, I copied these settings from mailform.old and everything seems to be fine.

    I saved your broken one as "mailform-new-broken.php" so you can compare them and figure out how the wrong settings got in there.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  6. #6
    Join Date
    Feb 2007
    Posts
    6

    Default Re: NEXT_NUM error

    Mea culpa, I hang my head in shame! Thank you very much for sorting it out; superb support!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •