# SIMBRIEF ERROR 500.SHTML

**URL:** <https://forum.phpvms.net/t/simbrief-error-500-shtml/12860>\
**Category:** phpVMS Legacy Support (v2/v5)\
**Created:** [April 27, 2019, 6:55pm UTC](https://forum.phpvms.net/t/simbrief-error-500-shtml/12860 "2019-04-27T18:55:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Orazio](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/o/e274bd/32.png) [@Orazio](https://forum.phpvms.net/u/Orazio)\
**Post date:** [April 27, 2019, 6:55pm UTC](https://forum.phpvms.net/t/simbrief-error-500-shtml/12860/1 "2019-04-27T18:55:58Z")

</div>

Good day,

When I generate the flight with SIMBRIEF from I get the following error:

An Error Was Encountered

The module “500.SHTML” doesn’t exist!

---

<div class="post-metadata">

**Author:** ![ProAvia](https://forum.phpvms.net/user_avatar/forum.phpvms.net/proavia/32/135_2.png) [@ProAvia](https://forum.phpvms.net/u/ProAvia)\
**Post date:** [April 28, 2019, 1:50am UTC](https://forum.phpvms.net/t/simbrief-error-500-shtml/12860/2 "2019-04-28T01:50:03Z")

</div>

Have you checked the error\_log file in the main phpvms directory for any errors?

---

<div class="post-metadata">

**Author:** ![Orazio](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/o/e274bd/32.png) [@Orazio](https://forum.phpvms.net/u/Orazio)\
**Post date:** [April 28, 2019, 1:54am UTC](https://forum.phpvms.net/t/simbrief-error-500-shtml/12860/3 "2019-04-28T01:54:18Z")

</div>

Hi,

Many thanks, I am checking now, tredo the simbrief flight and seee what error will be wrote on the log.

&nbsp;

---

<div class="post-metadata">

**Author:** ![Orazio](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/o/e274bd/32.png) [@Orazio](https://forum.phpvms.net/u/Orazio)\
**Post date:** [April 28, 2019, 2:04am UTC](https://forum.phpvms.net/t/simbrief-error-500-shtml/12860/4 "2019-04-28T02:04:16Z")

</div>

Hi,

&nbsp;

Just tried again. This is the error log:

[28-Apr-2019 01:59:47 UTC] PHP Warning: mysql\_select\_db() expects parameter 1 to be string, resource given in /home/trinacri/public\_html/dbconnect.php on line 11

[28-Apr-2019 01:59:48 UTC] PHP Warning: mysql\_fetch\_assoc() expects parameter 1 to be resource, boolean given in /home/trinacri/public\_html/index.php on line 706

&nbsp;

---

<div class="post-metadata">

**Author:** ![Orazio](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/o/e274bd/32.png) [@Orazio](https://forum.phpvms.net/u/Orazio)\
**Post date:** [April 28, 2019, 4:40am UTC](https://forum.phpvms.net/t/simbrief-error-500-shtml/12860/5 "2019-04-28T04:40:42Z")

</div>

Dear All,

I have solved the issue via deleting the bold txt in the SimBrief.php file:

\<?php

$dep = (string) $info-\>origin[0]-\>icao\_code;

$arr = (string) $info-\>destination[0]-\>icao\_code;

**$actual\_link = “https://$\_SERVER[HTTP\_HOST]$\_SERVER[REQUEST\_URI]”;**

**file\_put\_contents(‘Simbriefs/’.$dep.‘’.$arr.‘.html’, file\_get\_contents(‘’.$actual\_link.‘’));**

?\>

Thanks to All.
