This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

Marius

  • ***
  • 89 posts
ssl error_log
« on: April 28, 2022, 10:07:25 PM »
Hello
how can i fix it?

Osclass version: 8.0.1


[28-Apr-2022 01:52:49 Europe/Bucharest] PHP Warning:  fsockopen(): unable to connect to ssl://pgn.ro:443 (Connection timed out) in /home/pgnro/public_html/oc-includes/osclass/utils.php on line 344
[28-Apr-2022 05:00:42 Europe/Bucharest] PHP Warning:  fsockopen(): unable to connect to ssl://pgn.ro:443 (Connection timed out) in /home/pgnro/public_html/oc-includes/osclass/utils.php on line 344
[28-Apr-2022 05:00:44 Europe/Bucharest] PHP Warning:  fsockopen(): unable to connect to ssl://pgn.ro:443 (Connection timed out) in /home/pgnro/public_html/oc-includes/osclass/utils.php on line 344
[28-Apr-2022 05:28:29 Europe/Bucharest] PHP Warning:  fsockopen(): unable to connect to ssl://pgn.ro:443 (Connection timed out) in /home/pgnro/public_html/oc-includes/osclass/utils.php on line 344
[28-Apr-2022 05:58:14 Europe/Bucharest] PHP Warning:  fsockopen(): unable to connect to ssl://pgn.ro:443 (Connection timed out) in /home/pgnro/public_html/oc-includes/osclass/utils.php on line 344
[28-Apr-2022 06:27:33 Europe/Bucharest] PHP Warning:  fsockopen(): unable to connect to ssl://pgn.ro:443 (Connection timed out) in /home/pgnro/public_html/oc-includes/osclass/utils.php on line 344
[28-Apr-2022 06:57:07 Europe/Bucharest] PHP Warning:  fsockopen(): unable to connect to ssl://pgn.ro:443 (Connection timed out) in /home/pgnro/public_html/oc-includes/osclass/utils.php on line 344
[28-Apr-2022 08:44:27 Europe/Bucharest] PHP Warning:  fsockopen(): unable to connect to ssl://pgn.ro:443 (Connection timed out) in /home/pgnro/public_html/oc-includes/osclass/utils.php on line 344
[28-Apr-2022 09:09:04 Europe/Bucharest] PHP Warning:  fsockopen(): unable to connect to ssl://pgn.ro:443 (Connection timed out) in /home/pgnro/public_html/oc-includes/osclass/utils.php on line 344
[28-Apr-2022 09:09:04 Europe/Bucharest] PHP Warning:  fsockopen(): unable to connect to ssl://pgn.ro:443 (Connection timed out) in /home/pgnro/public_html/oc-includes/osclass/utils.php on line 344
[28-Apr-2022 09:31:48 Europe/Bucharest] PHP Warning:  fsockopen(): unable to connect to ssl://pgn.ro:443 (Connection timed out) in /home/pgnro/public_html/oc-includes/osclass/utils.php on line 344
[28-Apr-2022 09:54:28 Europe/Bucharest] PHP Warning:  fsockopen(): unable to connect to ssl://pgn.ro:443 (Connection timed out) in /home/pgnro/public_html/oc-includes/osclass/utils.php on line 344
[28-Apr-2022 10:52:18 Europe/Bucharest] PHP Warning:  fsockopen(): unable to connect to ssl://pgn.ro:443 (Connection timed out) in /home/pgnro/public_html/oc-includes/osclass/utils.php on line 344
[28-Apr-2022 13:28:47 Europe/Bucharest] PHP Warning:  fsockopen(): unable to connect to ssl://pgn.ro:443 (Connection timed out) in /home/pgnro/public_html/oc-includes/osclass/utils.php on line 344
[28-Apr-2022 13:49:54 Europe/Bucharest] PHP Warning:  fsockopen(): unable to connect to ssl://pgn.ro:443 (Connection timed out) in /home/pgnro/public_html/oc-includes/osclass/utils.php on line 344
[28-Apr-2022 14:09:56 Europe/Bucharest] PHP Warning:  fsockopen(): unable to connect to ssl://pgn.ro:443 (Connection timed out) in /home/pgnro/public_html/oc-includes/osclass/utils.php on line 344
[28-Apr-2022 14:09:56 Europe/Bucharest] PHP Warning:  fsockopen(): unable to connect to ssl://pgn.ro:443 (Connection timed out) in /home/pgnro/public_html/oc-includes/osclass/utils.php on line 344
[28-Apr-2022 15:48:27 Europe/Bucharest] PHP Warning:  fsockopen(): unable to connect to ssl://pgn.ro:443 (Connection timed out) in /home/pgnro/public_html/oc-includes/osclass/utils.php on line 344
[28-Apr-2022 16:29:47 Europe/Bucharest] PHP Warning:  fsockopen(): unable to connect to ssl://pgn.ro:443 (Connection timed out) in /home/pgnro/public_html/oc-includes/osclass/utils.php on line 344
[28-Apr-2022 16:51:33 Europe/Bucharest] PHP Warning:  fsockopen(): unable to connect to ssl://pgn.ro:443 (Connection timed out) in /home/pgnro/public_html/oc-includes/osclass/utils.php on line 344
[28-Apr-2022 17:14:04 Europe/Bucharest] PHP Warning:  fsockopen(): unable to connect to ssl://pgn.ro:443 (Connection timed out) in /home/pgnro/public_html/oc-includes/osclass/utils.php on line 344
[28-Apr-2022 17:37:45 Europe/Bucharest] PHP Warning:  fsockopen(): unable to connect to ssl://pgn.ro:443 (Connection timed out) in /home/pgnro/public_html/oc-includes/osclass/utils.php on line 344
[28-Apr-2022 18:44:15 Europe/Bucharest] PHP Warning:  fsockopen(): unable to connect to ssl://pgn.ro:443 (Connection timed out) in /home/pgnro/public_html/oc-includes/osclass/utils.php on line 344
[28-Apr-2022 19:30:37 Europe/Bucharest] PHP Warning:  fsockopen(): unable to connect to ssl://pgn.ro:443 (Connection timed out) in /home/pgnro/public_html/oc-includes/osclass/utils.php on line 344
[28-Apr-2022 20:41:23 Europe/Bucharest] PHP Warning:  fsockopen(): unable to connect to ssl://pgn.ro:443 (Connection timed out) in /home/pgnro/public_html/oc-includes/osclass/utils.php on line 344
[28-Apr-2022 21:55:45 Europe/Bucharest] PHP Warning:  fsockopen(): unable to connect to ssl://pgn.ro:443 (Connection timed out) in /home/pgnro/public_html/oc-includes/osclass/utils.php on line 344

*

MB Themes

Re: ssl error_log
« Reply #1 on: April 28, 2022, 10:24:59 PM »
Have you checked it with hosting?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Marius

  • ***
  • 89 posts
Re: ssl error_log
« Reply #2 on: April 28, 2022, 10:40:19 PM »
no, I said to ask here for the first time

*

MB Themes

Re: ssl error_log
« Reply #3 on: April 29, 2022, 09:22:52 AM »
It does not sound like related to Osclass.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Marius

  • ***
  • 89 posts
Re: ssl error_log
« Reply #4 on: April 29, 2022, 06:43:06 PM »
I talked to the hosting people and they said that everything is fine with them
they said to talk to you
 ;D ;D
so

*

mwindey

  • *****
  • 468 posts
Re: ssl error_log
« Reply #5 on: April 30, 2022, 07:31:17 AM »

*

MB Themes

Re: ssl error_log
« Reply #6 on: April 30, 2022, 08:06:06 AM »
@mwindey
Thanks for sharing, looks like identical issue  :-*
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

mwindey

  • *****
  • 468 posts
Re: ssl error_log
« Reply #7 on: April 30, 2022, 02:59:19 PM »
@MB Themes

Welcome ;) Hopefully it solves the issue.....
« Last Edit: April 30, 2022, 03:02:28 PM by mwindey »

*

dsf

  • *****
  • 261 posts
Re: ssl error_log
« Reply #8 on: April 30, 2022, 05:48:13 PM »
We occasionally have this error and we do NOT run Osclasspoint (yet, because we have upgrade issues).

This is either a hosting issue or a legacy Osclass issue, who knows. Nothing to do with certificates.

In our case it happens in classes/utils.php and i guess it is related to some cron or other automated service.
« Last Edit: April 30, 2022, 05:56:13 PM by dsf »

*

Marius

  • ***
  • 89 posts
Re: ssl error_log
« Reply #9 on: April 30, 2022, 07:17:57 PM »
I don't think it works
 :-[
/public_html/oc-includes/osclass/utils.php on line 363
[30-Apr-2022 20:16:38 Europe/Bucharest] PHP Warning:  fsockopen(): unable to connect to :0 (Failed to parse address "") in /home/pgnro/public_html/oc-includes/osclass/utils.php on line 363
[30-Apr-2022 20:16:38 Europe/Bucharest] PHP Warning:  fsockopen(): unable to connect to :0 (Failed to parse address "") in /home/pgnro/public_html/oc-includes/osclass/utils.php on line 363
[30-Apr-2022 20:16:38 Europe/Bucharest] PHP Warning:  fsockopen(): unable to connect to :0 (Failed to parse address "") in /home/pgnro/public_html/oc-includes/osclass/utils.php on line 363
[30-Apr-2022 20:16:39 Europe/Bucharest] PHP Warning:  fsockopen(): unable to connect to :0 (Failed to parse address "") in /home/pgnro/public_html/oc-includes/osclass/utils.php on line 363
[30-Apr-2022 20:16:40 Europe/Bucharest] PHP Warning:  fsockopen(): unable to connect to :0 (Failed to parse address "") in /home/pgnro/public_html/oc-includes/osclass/utils.php on line 363
[30-Apr-2022 20:16:40 Europe/Bucharest] PHP Warning:  fsockopen(): unable to connect to :0 (Failed to parse address "") in /home/pgnro/public_html/oc-includes/osclass/utils.php on line 363
[30-Apr-2022 20:16:41 Europe/Bucharest] PHP Warning:  fsockopen(): unable to connect to :0 (Failed to parse address "") in /home/pgnro/public_html/oc-includes/osclass/utils.php on line 363
[30-Apr-2022 20:16:41 Europe/Bucharest] PHP Warning:  fsockopen(): unable to connect to :0 (Failed to parse address "") in /home/pgnro/public_html/oc-includes/osclass/utils.php on line 363

*

mwindey

  • *****
  • 468 posts
Re: ssl error_log
« Reply #10 on: May 01, 2022, 10:19:30 AM »
@Marius

Is your utils.php file correct?
line 362 and 363 are empty spaces..
Starting from lin 332 to line 361 i have the following code:

Code: [Select]
  // extract host, path, port:
  $host = $url['host'];
  $path = $url['path'];
  $port = 80;
  if (isset($url['port'])) {
    $port = $url['port'];
  }

  if (isset($url['scheme']) && $url['scheme'] === 'https') {
    $host = 'ssl://' . $host;
    $port = 443;
  }
  $fp = fsockopen($host, $port);

  if ($fp === false) {
    return false;
  }
  $data        = http_build_query($_data);
  $out         = 'POST ' . $path . ' HTTP/1.1' . PHP_EOL;
  $out         .= 'Host: ' . $url['host'] . PHP_EOL;
  $out         .= 'Referer: Osclass ' . osc_version() . PHP_EOL;
  $out         .= 'Content-type: application/x-www-form-urlencoded' . PHP_EOL;
  $out         .= 'Content-Length: ' . strlen($data) . PHP_EOL;
  $out         .= 'Connection: close' . PHP_EOL . PHP_EOL;
  $out         .= $data;
  $number_bytes_sent = fwrite($fp, $out);
  fclose($fp);

  return $number_bytes_sent; // or false on fwrite() error
}

*

Marius

  • ***
  • 89 posts
Re: ssl error_log
« Reply #11 on: May 01, 2022, 02:25:34 PM »
I put the correct code :-X
I think I'm overwhelmed by the situation
you can write me the code as you think it would work
Maybe I'm wrong somewhere :-\



*

mwindey

  • *****
  • 468 posts
Re: ssl error_log
« Reply #12 on: May 01, 2022, 03:24:10 PM »
@Marius

In your latest post the error shows fsockopen(): unable to connect to :0  - Port 0 should be 80 i think....
Anyway:

I have uploaded  the original file to my server so try to download it and replace yours... Download here: https://deetje.be/doc/utils.rar

*

Marius

  • ***
  • 89 posts
Re: ssl error_log
« Reply #13 on: May 01, 2022, 05:58:51 PM »
the error is gone
Thank you very much 8)
 :P :P :P :P :P :P
I hope it doesn't show up again



*

Marius

  • ***
  • 89 posts
Re: ssl error_log
« Reply #14 on: May 01, 2022, 07:33:59 PM »
 :-[
surprise
[01-May-2022 20:22:13 Europe/Bucharest] PHP Warning:  fsockopen(): unable to connect to ssl://pgn.ro:443 (Connection timed out) in /home/pgnro/public_html/oc-includes/osclass/utils.php on line 344