ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


escapeshellcmd error


  • 2008-01-25 03:25:31

    escapeshellcmd error

    Hi all,

    I have a problem about security settings. I think my hosting company don't allow "escapeshellcmd()" function because of the security risks.

    Earlier versions of ATutor I didn't have any problem about sending mail. How can I fix it?

    Thanks.

    Things to describe:
    operating system - Linux 2.6.9-023stab044.4-smp
    version of ATutor - 1.6
    versions of php - 4.4.6
    version of mysq l - 4.1.22-standard
    webserver & version - Apache 2.0
    changes to default settings - No changes
    web browser being used - IE, Firefox, Opera
    copies of error messages:

    Warning: escapeshellcmd() has been disabled for security reasons in /home/skwebtr/public_html/atutor/include/classes/phpmailer/class.phpmailer.php on line 395

    Warning: escapeshellcmd() has been disabled for security reasons in /home/skwebtr/public_html/atutor/include/classes/phpmailer/class.phpmailer.php on line 395

    Warning: Cannot modify header information - headers already sent by (output started at /home/skwebtr/public_html/atutor/include/classes/phpmailer/class.phpmailer.php:395) in /home/skwebtr/public_html/atutor/forum/new_thread.php on line 182

  • 2008-01-25 09:40:56

    Re: escapeshellcmd() error

    It seems like your host doesn't allow php to run server-side program, but this is just a warning message. The mail should still be sent.

    If the mails are being sent, you should contact your host.

    If you want to disable the messages, open include/vitals.inc.php
    change line 17 to

    define('AT_ERROR_REPORTING', E_ALL ^ E_NOTICE ^ E_WARNING);

  • 2008-01-25 11:50:18

    Re: escapeshellcmd() error

    Thank you very much Harris. It works...

  • 2008-06-15 09:02:57

    Re: escapeshellcmd() error

    hello,
    I've got this message on my browser every time i want to send confirmation via email. "Warning: escapeshellcmd() has been disabled for security reasons..."

    anyone knows the workaround for this problem... I would greatly appreciate. thanks

    -james

    Things to describe:
    operating system -Linux 2.6.9-42.0.3.ELsmp
    version of ATutor -ATutor 1.6.1 Beta2 Released versions of php -4.4.7
    version of mysq l - 4.1.22-standard
    webserver & version -Apache version 1.3.37 (Unix)
    copies of error messages -
    Warning: escapeshellcmd() has been disabled for security reasons in /home/cencom/public_html/elearning/include/classes/phpmailer/class.phpmailer.php on line 395.
    Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/cencom/public_html/elearning/users/private_enroll.php on line 50.

    changes to default settings -
    web browser being used - Firefox, IE
    and anything else relevant -

  • 2008-06-15 09:12:52

    Re: escapeshellcmd() error

    hello harris,

    your reply message:
    "It seems like your host doesn't allow php to run server-side program, but this is just a warning message. The mail should still be sent".----> nope, i did not received any mail.
    i did my research on the internet and it seems that most webhosts disables this thing because of potential security risk. any comment on this?

    thanks

    james

    Things to describe:
    operating system -
    version of ATutor -
    versions of php -
    version of mysq l -
    webserver & version -
    copies of error messages -
    changes to default settings -
    web browser being used -
    and anything else relevant -
    :(

  • 2008-06-16 10:14:30

    Re: escapeshellcmd() error

    Hey James,

    are you running your php under safe_mode?

  • 2008-10-14 22:49:11

    Re: escapeshellcmd() error

    hello

    I've the same problem when the user want to create course.

    I replace line 17 with
    define('AT_ERROR_REPORTING', E_ALL ^ E_NOTICE ^ E_WARNING);

    just the message change to

    The following errors occurred:

    * There was an error sending the email message.

    can i disable the message?


    My info :

    Operating system ATutor is installed on - Linux 2.6.18-92.1.10.el5PAE
    ATutor version - 1.6.1
    PHP version - 5.2.6
    MySQL version - 5.0.51a


    thank you :)

  • 2008-10-15 08:55:02

    Re: escapeshellcmd() error

    Does this thread help?
    http://www.atutor.ca/view/7/8376/1.html

  • 2011-03-20 18:49:15

    Re: escapeshellcmd() error

    deleting that line did not help anymore! just I can not see the URL of the file which I mention in my previous threat.

    what is wrong? really no one knows?

    I can send mails by my host and I have a CMS beside Atutor in root directory(Joomla)it works properly with mail.

    after creating mail, in the report I see
    Username: info@vafl.ir
    Password: ********
    Pop3 Server: mail.vafl.ir
    Smtp Server: mail.vafl.ir

    ATutor Version:
    2.0.2(r10589 - 2010-12-21 16:47:09). PHP Version:
    5.2.17
    MySQL Version:
    5.0.91-community
    OS:
    Linux 2.6.18-238.5.1.el5.028stab085.2

  • 2011-03-22 09:27:02

    Re: escapeshellcmd() error

    Which URL of the file you can not see?

    Which line in which file did you delete?

  • 2011-03-22 09:31:05

    Re: escapeshellcmd() error

    Ignore my questions please. Found the question source at http://www.atutor.ca/view/7/10013/1.html