Author Topic: PM Classic send mail using php option error  (Read 4207 times)

Offline slartyb

  • Newcomer
  • *
  • Posts: 20
    • View Profile
    • ShutterUP Studios
PM Classic send mail using php option error
« on: August 28, 2012, 10:40:22 AM »
Hi,

I set up a gallery using the PM Classic template in PM 5, I selected enable image selections and send mail using php. When I uploaded a test to my server and tried to send an email, it got an error page saying:
 An unknown error has occurred! Please contact the website administrator.

Has anyone encountered this and is there a solution?

Cheers,
Richerd
« Last Edit: August 28, 2012, 10:56:35 AM by slartyb »

Offline Brandon

  • Member
  • **
  • Posts: 85
    • View Profile
Re: PM Classic send mail using php option error
« Reply #1 on: August 28, 2012, 01:03:48 PM »
That's an error from send_mail.php

Make sure you have [valid] entries in your Email To, Email From, Email Subject, and Email Body
Do you have access to your server logs? There might be php sendmail entries that could lead you to the reason why the mail function couldn't complete.

Offline slartyb

  • Newcomer
  • *
  • Posts: 20
    • View Profile
    • ShutterUP Studios
Re: PM Classic send mail using php option error
« Reply #2 on: August 28, 2012, 01:06:52 PM »
Thanks Brandon, I'll check my logs and see what I can see.
Cheers!

Offline slartyb

  • Newcomer
  • *
  • Posts: 20
    • View Profile
    • ShutterUP Studios
Re: PM Classic send mail using php option error
« Reply #3 on: August 28, 2012, 06:33:36 PM »
Well I checked my logs and came up empty. The Email Body and Email Subject are the defaults and the To and From emails are valid email addresses. I'm still getting the error, is the gallery to be located in a specific directory or something?

Offline slartyb

  • Newcomer
  • *
  • Posts: 20
    • View Profile
    • ShutterUP Studios
Re: PM Classic send mail using php option error
« Reply #4 on: January 07, 2013, 06:47:10 PM »
I revisited my error logs (finally got my hands on them). Here's the error on the server
[error] [client 00.00.00.00] SoftException in Application.cpp:610: Directory "/home/shut6701/public_html/blink/CDIXMas2012" is writeable by others, referer: http://www.shutterupstudios.com/blink/CDIXMas2012/preview.html

I tried changing the permissions on the results directory to 777 from 755 and it appears that that is what has my server screaming blue murder. Here's the current server error message (after switching to 777): 500 Internal Server Error The page cannot be displayed.

Prior to that, when my permissions were set to 755, the error message was the one generated from the  send_mail.php file (An unknown error has occurred!...)

Any ideas on how to fix this situation?

Offline slartyb

  • Newcomer
  • *
  • Posts: 20
    • View Profile
    • ShutterUP Studios
Re: PM Classic send mail using php option error
« Reply #5 on: September 25, 2013, 01:09:58 PM »
It has been 8 months now... still no ideas?

Offline Brandon

  • Member
  • **
  • Posts: 85
    • View Profile
Re: PM Classic send mail using php option error
« Reply #6 on: September 30, 2013, 03:31:00 PM »
That error is complaining about "CDIXMas2012" being globally writable (777)

Check to make sure that /home/shut6701/public_html/blink/CDIXMas2012 is set to 755. You may also want to check the blink/ directory permissions to make sure it's not set to 777.

« Last Edit: September 30, 2013, 03:39:55 PM by Brandon »