Jump to content

SIMBRIEF ERROR 500.SHTML


Orazio

Recommended Posts

Hi,

 

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

 

Edited by Orazio
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...