Error: "Undefined index: HIL in /usr/etc/portal/PORTAL/libs/PORTAL.obj.php" When Uploading Files with Pilot

Overview


There might be cases where you are not able to upload files with Pilot when you are logged in using the Fully Qualified Domain Name (FQDN, i.e., example.domain.com). But you are able to do it if you use local hostname or IP of the server. After checking the SSL logs, you should notice an error similar to the following one: 

PHP Notice: Undefined index: HIL in /usr/etc/portal/PORTAL/libs/PORTAL.obj.php on line 9777, referer: https://example.domain.com/PORTAL/BROWSE.php?tmpl=browse.tmpl.html&releasetmpl=true&page=1&id=48&csrf_token=4a79745d650a25.0152354


 

Environment


Xinet Portal with SSL configured.


 

Process

  1. Connect to the server where Xinet Portal is installed.
  2. Open the SSL configuration file with a text editor, the file is located at the following path :
    /etc/httpd/conf.d/ssl.conf
  3. For each <VirtualHost *:443> entry on the referred file, add the ProxyPreseveHost on directive. It should look the following way:
    <VirtualHost *:443>
    ...
    ProxyPreseveHost on
    </VirtualHost *:443>
  4. Restart Apache with the following command:
    sudo systemctl start httpd.service

 

Confirmation


Uploading with Pilot should work fine without any errors.

 

 

Back to top

Comments

0 comments

Please sign in to leave a comment.