Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#376 2022-11-15 15:44:54

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,216
Website GitHub

Re: com_connect - form and contact mailer

Ah, thanks for the confirmation. No matter about the omission: good to know that my amateur code pokings were in the right direction.

BTW: this was with v 4.7.0 with my minor self-closing tags modifications.

EDIT: I submitted a PR with the update to the docs


TXP Builders – finely-crafted code, design and txp

Offline

#377 2023-01-10 12:45:39

whocarez
Plugin Author
From: Germany/Ukraine
Registered: 2007-10-08
Posts: 305
Website GitHub Twitter

Re: com_connect - form and contact mailer

Hello,

recently I recognized, that com_connect_serverinfo stopped working in v4.7.0 with textpattern 4.8.8.

By setting something like:

<txp:com_connect_serverinfo name="REMOTE_ADDR" label="IP Nummer" />
<txp:com_connect_serverinfo name="HTTP_USER_AGENT" label="Browser" />
<txp:com_connect_serverinfo name="REQUEST_URI" label="URI" />

I get only the labels, without any data.

IP Nummer: 

Browser: 

URI: 

I tested it with php 8.0.27 and php 8.1.14. So it is probably not linked to php 8.1. I also don’t see any warnings or errors in log files.

Offline

#378 2023-01-10 14:11:08

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,485
Website GitHub

Re: com_connect - form and contact mailer

Thanks for the report. I’ll run some tests later and try to find out what’s going on.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#379 2023-01-10 17:24:46

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,389
Website GitHub Mastodon Twitter

Re: com_connect - form and contact mailer

whocarez wrote #334485:

Hello,

recently I recognized, that com_connect_serverinfo stopped working in v4.7.0 with textpattern 4.8.8.

By setting something like:

<txp:com_connect_serverinfo name="REMOTE_ADDR" label="IP Nummer" />...

I get only the labels, without any data.

IP Nummer:...

I tested it with php 8.0.27 and php 8.1.14. So it is probably not linked to php 8.1. I also don’t see any warnings or errors in log files.

Just to say that I have them working on php 8.0.12.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#380 2023-01-10 18:22:46

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,485
Website GitHub

Re: com_connect - form and contact mailer

I do suspect this is a server issue, but I can’t say for sure until I run a few tests. It may depend if the server is configured to pass that info.

Whocarez: you might get a clue from the browser inspector’s network pane. When you make requests to the server for the site, does it pass any of the server vars you’re interested in?


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#381 2023-01-11 00:02:51

phiw13
Plugin Author
From: South-Western Japan
Registered: 2004-02-27
Posts: 3,666
Website

Re: com_connect - form and contact mailer

Bloke wrote #334489:

I do suspect this is a server issue,

Probably yes, I have the txp:com_connect_serverinfo name="REMOTE_ADDR" one working fine on different servers / hosts and different versions of PHP (8.0 and 8.1).

info.php may also tell that (search for $_SERVER['REMOTE_ADDR']).


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg

Offline

#382 2023-01-11 18:42:05

whocarez
Plugin Author
From: Germany/Ukraine
Registered: 2007-10-08
Posts: 305
Website GitHub Twitter

Re: com_connect - form and contact mailer

Hm, I rechecked that and with v4.6.0 it is working, but with v4.7.0 not.
phpinfo() gives normal server variables, like that

$_SERVER['HTTP_USER_AGENT']	Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:108.0) Gecko/20100101 Firefox/108.0

I fetched the plugin from github.

Offline

#383 2023-01-11 18:45:31

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,485
Website GitHub

Re: com_connect - form and contact mailer

Okay, so it’s likely to be the plugin at fault then. Thanks for checking. I’ll have to do some debugging.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#384 2023-01-16 18:18:29

whocarez
Plugin Author
From: Germany/Ukraine
Registered: 2007-10-08
Posts: 305
Website GitHub Twitter

Re: com_connect - form and contact mailer

Had today some time for more tests.
So, if I comment out in function com_connect_serverinfo

$name = sanitizeForUrl($name);

then it works.

sanitizeForUrl makes everything lowercase, as far as I understand it. So REMOTE_ADDR gets remote_addr. And because the server variables are case sensitive, they cannot be found.

Offline

#385 2023-01-16 18:22:39

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,485
Website GitHub

Re: com_connect - form and contact mailer

whocarez wrote #334519:

sanitizeForUrl makes everything lowercase… REMOTE_ADDR gets remote_addr.

D’oh. Rookie mistake. Thank you for sleuthing it. This will be patched.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#386 2023-02-28 15:03:20

keukenkikker
Member
From: Netherlands
Registered: 2006-08-08
Posts: 79
Website

Re: com_connect - form and contact mailer

Hi you all, I could use some help. I have a form that sends an email, but when I reply to sender, the email address is incorrect. It takes everything in front of the @ and adds my own domain to form the email address.

For example: the sender is johndoe@senderdomain.com
When I reply the following email address appears: johndoe@mydomain.com

Am I overlooking something?
Sharon

Offline

#387 2023-03-10 03:04:18

Kjeld
Member
From: Tokyo, Japan
Registered: 2005-02-05
Posts: 465
Website

Re: com_connect - form and contact mailer

Strange Address in ‘From’

These days the messages that I receive via the com_connect plugin use this address format in ‘From’:

com_connect <sample@sample.com X-Mailer: Textpattern X-Originating-IP: 60.47.18.233 Content-Transfer-Encoding: 8bit Content-Type: text/plain charset="UTF-8">

Previously it showed only the sender’s email address (sample@sample.com).

Is this the result of a setting on my hosting service, or is this a feature of com_connect?

I am using com_connect 4.6.0 with Textpattern 4.8.7.


Old Photos of Japan – Japan in the 1850s~1960s (100% txp)
MeijiShowa – Stock photos of Japan in the 1850s~1960s (100% txp)
JapaneseStreets.com – Japanese street fashion (mostly txp)

Offline

#388 2023-03-10 05:56:51

phiw13
Plugin Author
From: South-Western Japan
Registered: 2004-02-27
Posts: 3,666
Website

Re: com_connect - form and contact mailer

That sounds like the same issue

What is the PHP version in use?

Upgrading to com_connect 4.7 might help.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg

Offline

#389 2023-03-10 07:26:55

Kjeld
Member
From: Tokyo, Japan
Registered: 2005-02-05
Posts: 465
Website

Re: com_connect - form and contact mailer

phiw13 wrote #334997:

That sounds like the same issue

What is the PHP version in use?

Upgrading to com_connect 4.7 might help.

Thanks. Yes that looks like the same issue.

I am using PHP version 8.0.

Just upgraded to com_connect 4.7, but still have the same issue.

Last edited by Kjeld (2023-03-10 07:31:43)


Old Photos of Japan – Japan in the 1850s~1960s (100% txp)
MeijiShowa – Stock photos of Japan in the 1850s~1960s (100% txp)
JapaneseStreets.com – Japanese street fashion (mostly txp)

Offline

#390 2023-03-10 08:21:06

phiw13
Plugin Author
From: South-Western Japan
Registered: 2004-02-27
Posts: 3,666
Website

Re: com_connect - form and contact mailer

Kjeld wrote #335000:

Just upgraded to com_connect 4.7, but still have the same issue.

Strange. This issue is marked fixed for 4.7 – if I read Github correctly.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg

Offline

Board footer

Powered by FluxBB