Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

[resolved] PHP dns_get_record Error

I recently setup a A record DNS entry for my server. Before it was simply running on an IP address 10.X.X.X; I now mapped that IP to a FQDN. I changed the network configuration on the server itself; I can PING the FQDN and get to the ticketing system just fine with its  FQDN.

However, when I go test the Landing page, to generate a ticket; once the ticket is submitted, I get a Webserver 500 Error for the "open.php" page.

These are the errors in my Apache log:

PHP Warning:  dns_get_record(): A temporary server error occurred. in /var/www/html/osticket/upload/include/class.validator.php on line 164, referer:
PHP Stack trace:, referer:
PHP   1. {main}() /var/www/html/osticket/upload/login.php:0, referer:
PHP   2. ClientCreateRequest->attemptAutoRegister() /var/www/html/osticket/upload/login.php:56, referer:
PHP   3. Form->isValid() /var/www/html/osticket/upload/include/class.auth.php:136, referer:
PHP   4. Form->getClean() /var/www/html/osticket/upload/include/class.forms.php:104, referer:
PHP   5. FormField->getClean() /var/www/html/osticket/upload/include/class.forms.php:131, referer:
PHP   6. TextboxField->validateEntry() /var/www/html/osticket/upload/include/class.forms.php:625, referer:
PHP   7. call_user_func:{/var/www/html/osticket/upload/include/class.forms.php:1330}() /var/www/html/osticket/upload/include/class.forms.php:1330, referer:
PHP   8. Validator::is_valid_email() /var/www/html/osticket/upload/include/class.forms.php:1330, referer:
PHP   9. Validator::is_email() /var/www/html/osticket/upload/include/class.validator.php:173, referer:
PHP  10. dns_get_record() /var/www/html/osticket/upload/include/class.validator.php:164, referer:
PHP Fatal error:  Call to a member function addNote() on null in /var/www/html/osticket/upload/include/class.ticket.php on line 2635, referer:
PHP Stack trace:, referer:
PHP   1. {main}() /var/www/html/osticket/upload/open.php:0, referer:
PHP   2. Ticket::create() /var/www/html/osticket/upload/open.php:42, referer:
PHP   3. Ticket->save() /var/www/html/osticket/upload/include/class.ticket.php:3373, referer:
PHP   4. VerySimpleModel->save() /var/www/html/osticket/upload/include/class.ticket.php:2740, referer:
PHP   5. Signal::send() /var/www/html/osticket/upload/include/class.orm.php:619, referer:
PHP   6. call_user_func_array:{/var/www/html/osticket/upload/include/class.signal.php:98}() /var/www/html/osticket/upload/include/class.signal.php:98, referer:
PHP   7. SpreaderPlugin::spreadTicket() /var/www/html/osticket/upload/include/class.signal.php:98, referer:
PHP   8. Ticket->assignToStaff() /var/www/html/osticket/upload/include/plugins/osticket-spreader/spreader.php:56, referer:
PHP   9. Ticket->onAssign() /var/www/html/osticket/upload/include/class.ticket.php:2145, referer:
PHP  10. Ticket->logNote() /var/www/html/osticket/upload/include/class.ticket.php:1727, referer:


  • I haven't seen this issue before which makes me believe this is related to a DNS issue on your end. Have you updated your Helpdesk URL in Admin Panel > Settings > System?

  • Also have you tested DNS?  
    at a command prompt you can:
    nslookup <hostname>
  • edited April 4
    Yes NSLOOKUP works fine with my FQDN; and I have also made the respective changes in the "System" settings under the Admin Panel.

    I am also getting the following error from my Apache error-log:

    [:error] [pid 1467] [client 10.2.X.X:56558] script '/var/www/html/open.php' not found or unable to stat

    I'm just having trouble understanding whether this is an Apache configuration error or osTicket configuration error.

    My VirtualHost file seems totally fine to me:

    <VirtualHost *:80>
            ServerAlias osticket
            ServerAdmin webmaster@localhost
            DocumentRoot /var/www/html/osticket/upload/
            ErrorLog ${APACHE_LOG_DIR}/osticket_error.log
            CustomLog ${APACHE_LOG_DIR}/osticket_access.log combined


    Apologies; I am running PHP5.6 on osTicket version 1.10.1; Ubuntu 16.04 core server.
  • Fixed.

    The issue was that in the System settings; I had not added the trailing /scp at the end of the helpdesk URL.

    So resolution is:

    1. Check your hosts file
    2. Check your resolve.conf file
    3. PING/NSLOOKUP on your domain
    4. Change URL in Admin Panel -> Settings -> System to the following:
    The only weird thing is that before when it was just my IP address; it did not have the trailing /scp on the end of it and it was still working? Hm.

    You can close this discussion! Thank you gentlemen for you quick response times on this forum. Seriously its great.
  • Very welcome. :)
  • @Pietro_Arentino

    No problem at all!

This discussion has been closed.