Unhandled Error!

Undefined index: Content-Type

Document /modules/vj/classes/vj_module.php
Document type PHP document
Line 1577
Exception class Phpr_PhpException

Code Highlight

 
            if (!$url) {
                throw new Exception("Could not determine Certificate location");
            }
 
            //Get mime type from file
            $mime = $this->curl_getheaders($url)["Content-Type"];
            //fix incorrectly identified pdf's
            if ($mime=="image/pdf") {
                $mime="application/pdf";
            }
 
            // Get file extension
# Call Stack Code Document Line
10 VJ_Module->get_certificate_func(array(3) [0 => 'Weissbart_', 1 => 'S400053', 2 => 'aHR0cHM6Ly91cC5kaWFjYW0zNjAuY29tL3NjYW4vMDg3NF8yMzU2ODk=']) /controllers/application.php 194
9 Application->find_access_point(()) /controllers/application.php 66
8 Application->On404(())
7 call_user_func_array(array(2) [0 => object(Application), 1 => 'On404'], array(0)) /phproad/modules/phpr/classes/phpr_controller.php 170
6 Phpr_Controller->executeAction('On404', array(0)) /phproad/modules/phpr/classes/phpr_controller.php 84
5 Phpr_Controller->_run('On404', array(0)) /phproad/modules/phpr/classes/phpr_response.php 64
4 Phpr_Response->open404(()) /phproad/modules/phpr/classes/phpr_response.php 37
3 Phpr_Response->open('/get_certificate/Weissbart_/S400053/aHR0cHM6Ly91cC5kaWFjYW0zNjAuY29tL3NjYW4vMDg3NF8yMzU2ODk=') /phproad/system/phproad.php 31
2 include('/home/vicjames/public_html/phproad/system/phproad.php') /boot.php 115
1 require_once('/home/vicjames/public_html/boot.php') /index.php 2