debug.php
Hi zerke2001,
Thanks a lot for all the details and your efforts. You've apparently read the documentation A pity that it is still not working. In fact, I have no idea why osTicket is failing you but at least this makes it more interesting.
I thought about how to best go on and debug your installation. Unfortunately, I am not good with OO code and I do not know much of osTicket. Anyway, I started to write a basic debug.php. Maybe you want to give it a try:
<?php /* debug.php */
require_once('main.inc.php');
if(!defined('INCLUDE_DIR')) die('Fatal Error');
echo "<pre>osTicket " . THIS_VERSION . " on PHP " . phpversion();
echo "\n display_errors: " . ini_get('display_errors');
echo "\n display_statup_errors: " . ini_get('display_startup_errors');
echo "\n\n";
echo $undefined_debug_var; // must cause a warning message
require_once(INCLUDE_DIR.'class.ticket.php');
$to='myaddress@example.com'; // change this to your address
echo "\n Debug 1: ";
$email=$cfg->getDefaultEmail();
if(!$email) echo "cfg->getDefaultEmail returned nothing.\n";
print_r($email->send($to,"osTicket Debug 1",''));
echo "\n Debug 2: ";
print_r(Sys:('osTicket Debug 2',''));
echo "\n Debug 3: ";
print_r(Email:($to,'osTicket Debug 3','',$to));
echo "\n Debug 4: ";
print_r(mail($to,'osTicket Debug 4','',"From: $to"));
Change myaddress@example.com to your address and save the file as debug.php. Then, put it in the main directory of osTicket, and make sure the permissions are appropriate (e.g. chmod 644 debug.php).
Then enable error reporting as mentioned in http://osticket.com/wiki/Installation#Self-Help_Troubleshooting(http://osticket.com/wiki/Installation#Self-Help_Troubleshooting) and open debug.php in your browser.
Eventually check your logs, also the log of your mail server, and your INBOX. debug.php tries to send 4 messages. Post the results and the errors and warnings from the logs.