Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PHP Errors

49 views
Skip to first unread message

The Doctor

unread,
Nov 18, 2022, 10:03:03 AM11/18/22
to
I am seeing weird errors as follows:


2022/11/17 21:09:25 [error] 48261#101347: *432718 FastCGI sent in stderr: "PHP message: PHP Warning: An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="https://wordpress.org/support/forums/">support forums</a>. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /usr/home/klint/html/wp-admin/includes/plugin-install.php on line 183" while reading upstream, client: 75.156.190.254, server: performanceplanning.ca, request: "GET /wp-admin/plugin-install.php HTTP/3.0", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", referrer: "https://klint.ca/wp-admin/plugins.php"


and

2022/11/17 22:02:01 [error] 61870#100691: *77 FastCGI sent in stderr: "PHP messa
ge: PHP Fatal error: Uncaught Error: Call to a member function getStatus() on null in /usr/home/doctor/html/blog/serendipity/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php:458
#0 /usr/home/doctor/html/blog/serendipity/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php(641): serendipity_event_spartacus->fetchfile('https://raw.git...', '/usr/home/docto...', 43200, true)
#1 /usr/home/doctor/html/blog/serendipity/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php(1302): serendipity_event_spartacus->fetchOnline('sidebar')
#2 /usr/home/doctor/html/blog/serendipity/include/plugin_api.inc.php(1184): serendipity_event_spartacus->event_hook('backend_plugins...', Object(serendipity_property_bag), Array, NULL)
#3 /usr/home/doctor/html/blog/serendipity/include/admin/plugins.inc.php(160): serendipity_plugin_api::hook_event('backend_plugins...', Array)
#4 /usr/home/doctor/html/blog/serendipity/serendipity_admin.php(127): include('/usr/home/docto...')
thrown in /usr/home/doctor/html/blog/serendipity/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php on line 458" while reading response header from upstream, client: 75.156.190.254, server: www.nk.ca, request: "GET /~doctor/blog/serendipity/serendipity_admin.php?serendipity[adminModule]=plugins&serendipity[adminAction]=addnew&serendipity[only_group]=UPGRADE&serendipity[token]=4baa76c4e646fa57664731401fd12b70 HTTP/3.0", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", referrer: "https://www.nk.ca/~doctor/blog/serendipity/serendipity_admin.php?serendipity[adminModule]=plugins"


I wonder if there is a relation?

Running nginx on FreeBSD with packet fitlering!
--
Member - Liberal International This is doc...@nk.ca Ici doc...@nk.ca
Yahweh, King & country!Never Satan President Republic!Beware AntiChrist rising!
Look at Psalms 14 and 53 on Atheism https://www.empire.kred/ROOTNK?t=94a1f39b
Happy Christmas 2022 and Merry New Year 2023 Beware https://mindspring.com

Arno Welzel

unread,
Nov 19, 2022, 11:23:50 AM11/19/22
to
The Doctor, 2022-11-18 16:02:

> I am seeing weird errors as follows:
>
>
> 2022/11/17 21:09:25 [error] 48261#101347: *432718 FastCGI sent in stderr: "PHP message: PHP Warning: An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="https://wordpress.org/support/forums/">support forums</a>. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /usr/home/klint/html/wp-admin/includes/plugin-install.php on line 183" while reading upstream, client: 75.156.190.254, server: performanceplanning.ca, request: "GET /wp-admin/plugin-install.php HTTP/3.0", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", referrer: "https://klint.ca/wp-admin/plugins.php"

That says, that the server can not connect to wordpress.org. Propably
while trying to install or update a plugin. Maybe there is some
connectivitiy issue.

> and
>
> 2022/11/17 22:02:01 [error] 61870#100691: *77 FastCGI sent in stderr: "PHP messa
> ge: PHP Fatal error: Uncaught Error: Call to a member function getStatus() on null in /usr/home/doctor/html/blog/serendipity/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php:458
[...]

> I wonder if there is a relation?
>
> Running nginx on FreeBSD with packet fitlering!

Looks like Serendipity tries to install or update a WordPress plugin and
your "nginx on FreeBSD with packet fitlering" prohibits the connection.


--
Arno Welzel
https://arnowelzel.de

The Doctor

unread,
Nov 19, 2022, 9:51:51 PM11/19/22
to
In article <jtse8c...@mid.individual.net>,
HOw do we test if this is the case?

BTW serendipity is not wordpress!


>
>--
>Arno Welzel
>https://arnowelzel.de
>


J.O. Aho

unread,
Nov 20, 2022, 6:05:24 AM11/20/22
to
On 20/11/2022 03.51, The Doctor wrote:
> Arno Welzel <use...@arnowelzel.de> wrote:

>> Looks like Serendipity tries to install or update a WordPress plugin and
>> your "nginx on FreeBSD with packet fitlering" prohibits the connection.
>>
>
> HOw do we test if this is the case?

First see if you can resolve the domain name to an ip on the machine

host wordpress.org

also check if you can connect to it

wget -S https://wordpress.org


> BTW serendipity is not wordpress!

It's trying to access https://raw.git... but what the full domain name
is you should find in the php files somewhere or in the database.

--
//Aho

The Doctor

unread,
Nov 20, 2022, 8:56:29 AM11/20/22
to
In article <jtufva...@mid.individual.net>,
J.O. Aho <us...@example.net> wrote:
>On 20/11/2022 03.51, The Doctor wrote:
>> Arno Welzel <use...@arnowelzel.de> wrote:
>
>>> Looks like Serendipity tries to install or update a WordPress plugin and
>>> your "nginx on FreeBSD with packet fitlering" prohibits the connection.
>>>
>>
>> HOw do we test if this is the case?
>
>First see if you can resolve the domain name to an ip on the machine
>
>host wordpress.org

wordpress.org has address 198.143.164.252
wordpress.org mail is handled by 10 mail.wordpress.org.

>
>also check if you can connect to it
>
>wget -S https://wordpress.org
>

wget -v -v -v -v -v -v -v -v -v -v -S https://wordpress.org
--2022-11-20 06:54:04-- https://wordpress.org/
Resolving wordpress.org (wordpress.org)... 198.143.164.252
Connecting to wordpress.org (wordpress.org)|198.143.164.252|:443... failed: Operation timed out.
Retrying.

--2022-11-20 06:55:20-- (try: 2) https://wordpress.org/
Connecting to wordpress.org (wordpress.org)|198.143.164.252|:443...


>
>> BTW serendipity is not wordpress!
>
>It's trying to access https://raw.git... but what the full domain name
>is you should find in the php files somewhere or in the database.
>

Looks like you snipped the error!

Hold on!

I am gettting

The URL http://s9y.org/mirror/package_sidebar_en.xml (IP 185.26.156.208) could not be opened. Maybe the Serendipity or SourceForge.net Server is down - we are sorry, you need to try again later.
>--
> //Aho

J.O. Aho

unread,
Nov 20, 2022, 11:44:56 AM11/20/22
to
On 20/11/2022 14.56, The Doctor wrote:
> In article <jtufva...@mid.individual.net>,
> J.O. Aho <us...@example.net> wrote:
>> On 20/11/2022 03.51, The Doctor wrote:

>>> HOw do we test if this is the case?
>>
>> First see if you can resolve the domain name to an ip on the machine
>> host wordpress.org
>
> wordpress.org has address 198.143.164.252
> wordpress.org mail is handled by 10 mail.wordpress.org.

At least not dns issues.

>> also check if you can connect to it
>>
>> wget -S https://wordpress.org
>>
>
> wget -v -v -v -v -v -v -v -v -v -v -S https://wordpress.org
> --2022-11-20 06:54:04-- https://wordpress.org/
> Resolving wordpress.org (wordpress.org)... 198.143.164.252
> Connecting to wordpress.org (wordpress.org)|198.143.164.252|:443... failed: Operation timed out.
> Retrying.
>
> --2022-11-20 06:55:20-- (try: 2) https://wordpress.org/
> Connecting to wordpress.org (wordpress.org)|198.143.164.252|:443...
>
> The URL http://s9y.org/mirror/package_sidebar_en.xml (IP 185.26.156.208) could not be opened.
> Maybe the Serendipity or SourceForge.net Server is down - we are sorry, you need to try again later.

I would check the result of `pfctl -sr` to see if you have setup rules
that may block traffic to or from the remote service. Sadly my BSD
skills are minimal, so no further suggestions what to look at regarding
firewall.

If you don't find anything in the firewall rules, you can also try to
use tcptraceroute and see if you can get a route from you to
wordpress/s9y.org

--
//Aho






Arno Welzel

unread,
Nov 20, 2022, 2:17:08 PM11/20/22
to
The Doctor, 2022-11-20 03:51:

> In article <jtse8c...@mid.individual.net>,
> Arno Welzel <use...@arnowelzel.de> wrote:
[...]
>> Looks like Serendipity tries to install or update a WordPress plugin and
>> your "nginx on FreeBSD with packet fitlering" prohibits the connection.
>>
>
> HOw do we test if this is the case?

I don't know your server setup. Only you can find this out.

However:

https://klint.ca/wp-admin/plugins.php

This looks like WordPress.

While this is Serendipity:

/usr/home/doctor/html/blog/serendipity/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php

I don't know why you have these errors. Only you can find this out.

> BTW serendipity is not wordpress!

I know. But I do not know how you run your server. Maybe you use both.

Arno Welzel

unread,
Nov 20, 2022, 2:18:49 PM11/20/22
to
The Doctor, 2022-11-20 14:56:

[...]
> Hold on!
>
> I am gettting
>
> The URL http://s9y.org/mirror/package_sidebar_en.xml (IP 185.26.156.208) could not be opened. Maybe the Serendipity or SourceForge.net Server is down - we are sorry, you need to try again later.

Yes - you still have network issues. If you have set up some kind of
packet filter which forbids outgoing connections, then change that. Or
ask the administrator of your server hosting.

The Doctor

unread,
Nov 20, 2022, 5:39:08 PM11/20/22
to
In article <jtv3s0...@mid.individual.net>,
Too much info to reveal.

>
>If you don't find anything in the firewall rules, you can also try to
>use tcptraceroute and see if you can get a route from you to
>wordpress/s9y.org
>
>--
> //Aho
>
>
>
>
>
>


The Doctor

unread,
Nov 20, 2022, 5:42:53 PM11/20/22
to
In article <jtvcpc...@mid.individual.net>,
Arno Welzel <use...@arnowelzel.de> wrote:
>The Doctor, 2022-11-20 03:51:
>
>> In article <jtse8c...@mid.individual.net>,
>> Arno Welzel <use...@arnowelzel.de> wrote:
>[...]
>>> Looks like Serendipity tries to install or update a WordPress plugin and
>>> your "nginx on FreeBSD with packet fitlering" prohibits the connection.
>>>
>>
>> HOw do we test if this is the case?
>
>I don't know your server setup. Only you can find this out.
>
>However:
>
>https://klint.ca/wp-admin/plugins.php
>
>This looks like WordPress.
>
>While this is Serendipity:
>
>/usr/home/doctor/html/blog/serendipity/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php
>
>I don't know why you have these errors. Only you can find this out.
>
>> BTW serendipity is not wordpress!
>
>I know. But I do not know how you run your server. Maybe you use both.
>


FYI

tcptraceroute wordpress.org
Selected device igb0, address 204.209.81.1, port 58686 for outgoing packets
Tracing the path to wordpress.org (198.143.164.252) on TCP port 80 (http), 30 hops max
1 * *Fy

G *
2 * * *
3 * * *
4 * * *
5 * * *



>
>--
>Arno Welzel
>https://arnowelzel.de
>


The Doctor

unread,
Nov 20, 2022, 5:43:20 PM11/20/22
to
In article <jtvcsh...@mid.individual.net>,
I am the administrator.

J.O. Aho

unread,
Nov 21, 2022, 1:08:37 AM11/21/22
to
On 20/11/2022 23.42, The Doctor wrote:

> tcptraceroute wordpress.org
> Selected device igb0, address 204.209.81.1, port 58686 for outgoing packets
> Tracing the path to wordpress.org (198.143.164.252) on TCP port 80 (http), 30 hops max
> 1 * *Fy
>
> G *
> 2 * * *
> 3 * * *
> 4 * * *
> 5 * * *

Feels like you have blocked outgoing http/https traffic, as I mentioned
YOU have to check your firewall rules and adjust them, for you to see
what rules are applied, review `pfctl -sr`.

--
//Aho

Arno Welzel

unread,
Nov 21, 2022, 12:58:46 PM11/21/22
to
The Doctor, 2022-11-21 15:08:

> In article <ju0ius...@mid.individual.net>,
> pfctl -vsr
>
>
> Which gives

See the "block drop out" messages.

You need to enable outgoing traffic to wordpress.org

No, I don't know how you can do that - it's your server, so you have to
sort this out on your own.

The Doctor

unread,
Nov 22, 2022, 4:38:36 PM11/22/22
to
In article <ju1sie...@mid.individual.net>,
Tests yield wordpress.org is blocking a set of network addresses.

Now to figure out s9y.org .

The Doctor

unread,
Nov 30, 2022, 6:36:14 PM11/30/22
to
In article <tljfgj$27ek$4...@gallifrey.nk.ca>,
The issue with wordpress was a firewalling issue!

As for serendipity, from
https://board.s9y.org/viewtopic.php?p=10455367#p10455367

From CLI

php testcode.php
Failed loading /usr/local/lib/php/20131226-zts-debug/ioncube/ioncube_loader.so: Cannot open "/usr/local/lib/php/20131226-zts-debug/ioncube/ioncube_loader.so"
PHP Warning: PHP Startup: igbinary: Unable to initialize module
Module compiled with module API=20170718
PHP compiled with module API=20190902
These options need to match
in Unknown on line 0
curl seems to work PHP Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /usr/home/doctor/html/blog/serendipity/testcode.php on line 15
PHP Warning: file_get_contents(): Failed to enable crypto in /usr/home/doctor/html/blog/serendipity/testcode.php on line 15
PHP Warning: file_get_contents(https://raw.github.com/s9y/additional_p ... bar_en.xml): failed to open stream: operation failed in /usr/home/doctor/html/blog/serendipity/testcode.php on line 15
HTTP_Request2_ConnectionException: Unable to connect to tls://raw.github.com:443. Error: stream_socket_client(): unable to connect to tls://raw.github.com:443 (Unknown error)
stream_socket_client(): Failed to enable crypto
stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /usr/home/doctor/html/blog/serendipity/bundled-libs/HTTP/Request2/Adapter/Socket.php on line 331
#0 /usr/home/doctor/html/blog/serendipity/bundled-libs/HTTP/Request2/Adapter/Socket.php(331): HTTP_Request2_SocketWrapper->__construct('tls://raw.githu...', 10, Array)
#1 /usr/home/doctor/html/blog/serendipity/bundled-libs/HTTP/Request2/Adapter/Socket.php(128): HTTP_Request2_Adapter_Socket->connect()
#2 /usr/home/doctor/html/blog/serendipity/bundled-libs/HTTP/Request2.php(941): HTTP_Request2_Adapter_Socket->sendRequest(Object(HTTP_Request2))
#3 /usr/home/doctor/html/blog/serendipity/testcode.php(31): HTTP_Request2->send()
#4 {main}PHP Notice: Undefined variable: response in /usr/home/doctor/html/blog/serendipity/testcode.php on line 39
PHP Fatal error: Uncaught Error: Call to a member function getBody() on null in /usr/home/doctor/html/blog/serendipity/testcode.php:39
Stack trace:
#0 {main}
thrown in /usr/home/doctor/html/blog/serendipity/testcode.php on line 39

Okay, so openssl.c afile is empty. I think that's around where the problem is. The error message showed PHP is failing to valdiate github's certificate:
CODE: SELECT ALL

error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /usr/home/doctor/html/blog/serendipity/testcode.php on line 15
I assume there is something misconfigured, either the local cert collection is missing or can't be read by PHP. The server time is set correctly, right?

As in https://github.com/composer/composer/issues/8312, you could try to download a fresh cacert.pem and configure PHP to use it for openssl, via the openssl.cafile setting. Otherwise you would need someone with knowledge about FreeBSD on what might be wrong with the cert chain here. This is likely a bug in FreeBSD.



There are new sets of certs for FreeBSD IIRC.

J.O. Aho

unread,
Dec 1, 2022, 3:16:51 AM12/1/22
to
On 01/12/2022 00.36, The Doctor wrote:

> php testcode.php
> Failed loading /usr/local/lib/php/20131226-zts-debug/ioncube/ioncube_loader.so: Cannot open "/usr/local/lib/php/20131226-zts-debug/ioncube/ioncube_loader.so"

You should remove the loading of a module you don't use? Check your
/etc/php or where you have your php config files.

> curl seems to work PHP Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
> error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /usr/home/doctor/html/blog/serendipity/testcode.php on line 15
> PHP Warning: file_get_contents(): Failed to enable crypto in /usr/home/doctor/html/blog/serendipity/testcode.php on line 15
> PHP Warning: file_get_contents(https://raw.github.com/s9y/additional_p ... bar_en.xml): failed to open stream: operation failed in /usr/home/doctor/html/blog/serendipity/testcode.php on line 15
> HTTP_Request2_ConnectionException: Unable to connect to tls://raw.github.com:443. Error: stream_socket_client(): unable to connect to tls://raw.github.com:443 (Unknown error)
> stream_socket_client(): Failed to enable crypto
> stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
> error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /usr/home/doctor/html/blog/serendipity/bundled-libs/HTTP/Request2/Adapter/Socket.php on line 331

> error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /usr/home/doctor/html/blog/serendipity/testcode.php on line 15
> I assume there is something misconfigured, either the local cert collection is missing or can't be read by PHP. The server time is set correctly, right?

Do you have the right package installed for ca certificates? Seems
FreeBSD changed ca-root to ca_root_nss, see
http://ootput.github.io/2011/09/25/ca-certificates-in-freebsd/


--
//Aho

The Doctor

unread,
Dec 1, 2022, 8:10:19 AM12/1/22
to
In article <jur67a...@mid.individual.net>,
Will do!

>
>--
> //Aho

The Doctor

unread,
Dec 2, 2022, 11:25:20 AM12/2/22
to
In article <tma93i$aqo$6...@gallifrey.nk.ca>,
Finally found the solution.

in your php.ini file set up the cainfo

settings.

Problem solved!

The Doctor

unread,
Dec 2, 2022, 4:43:06 PM12/2/22
to
Next problem to link mysql.socket for php 8 using mariadb 10.6

Jerry Stuckle

unread,
Dec 2, 2022, 11:46:55 PM12/2/22
to
On 12/2/2022 4:42 PM, The Doctor wrote:
> Next problem to link mysql.socket for php 8 using mariadb 10.6
>

Just follow the instructions. It works fine.

--
==================
Remove the "x"'s from my email address
Jerry Stuckle
stuckle...@gmail.com
==================

The Doctor

unread,
Dec 3, 2022, 10:13:18 AM12/3/22
to
In article <tmekbm$39t4t$1...@jstuckle.eternal-september.org>,
Jerry Stuckle <stuckl...@gmail.com> wrote:
>On 12/2/2022 4:42 PM, The Doctor wrote:
>> Next problem to link mysql.socket for php 8 using mariadb 10.6
>>
>
>Just follow the instructions. It works fine.
>

Solved.

>--
>==================
>Remove the "x"'s from my email address
>Jerry Stuckle
>stuckle...@gmail.com
>==================
>


0 new messages