Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-08-12 15:09:52

castanet
Member
From: Oxford
Registered: 2005-03-19
Posts: 97

Warning: fsockopen()

Every time I publish an article I get this error message.
Warning: fsockopen() [function.fsockopen]: unable to connect to textpattern.com:80 (Permission denied) in /home/www/xxx.com/textpattern/lib/IXRClass.php on line 671

I click Save again and it disappears.
It happens from any computer in any location.
I recently changed permanent link mode option, but don’t know if that is related. Using 4.3.0

Any suggestions gratefully received

Offline

#2 2011-09-06 10:25:13

castanet
Member
From: Oxford
Registered: 2005-03-19
Posts: 97

Re: Warning: fsockopen()

Sorry to bump this back up but I’m now getting this error message across my Textpattern sites upgraded to 4.4.1. Nothing to do with link mode options. I’d really appreciate some advice. Thanks

Offline

#3 2011-09-06 16:38:43

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

Re: Warning: fsockopen()

Hi David

Can you post your diagnostics?


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

Offline

#4 2011-09-07 10:06:19

castanet
Member
From: Oxford
Registered: 2005-03-19
Posts: 97

Re: Warning: fsockopen()

Textpattern version: 4.4.1 (r3575)
last_update: 2011-09-05 18:56:17/2011-09-05 18:55:56
Document root: /home/www/myurl.com
$path_to_site: /home/www/myurl.com
Textpattern path: /home/www/myurl.com/textpattern
Permanent link mode: section_id_title
Temp folder: /home/www/myurl.com/textpattern/tmp
Site URL: www.myurl.com
PHP version: 5.2.17
gd_library: gd_info: bundled (2.0.34 compatible), GIF, JPG, PNG
Server TZ: Europe/London
server_time: 2011-09-07 10:59:46
Daylight Savings: 0
auto_dst: 0
Time Zone:  (+7200)
MySQL: 5.0.51a-24-log
Locale: C
Server: Apache/2.2.11
php_sapi_mode: cgi-fcgi
rfc2616_headers: 0
os_version: Linux 2.6.30.1-3.AM_PAE
active_plugins: wow_menu-0.9, upm_img_popper-1.3.5, rss_admin_db_manager-4.3, ako_write_page_email-0.2, smd_where_used-0.17, rah_sitemap-1.1
theme_name: classic 4.4.1

.htaccess file contents: 
------------------------
#DirectoryIndex index.php index.html

#Options +FollowSymLinks
#Options -Indexes
#ErrorDocument 403 default

<IfModule mod_rewrite.c>
	RewriteEngine On
	#RewriteBase /relative/web/path/

	RewriteCond %{REQUEST_FILENAME} -f [OR]
	RewriteCond %{REQUEST_FILENAME} -d
	RewriteRule ^(.+) - [PT,L]

	RewriteCond %{REQUEST_URI} !=/favicon.ico
	RewriteRule ^(.*) index.php

	RewriteCond %{HTTP:Authorization}  !^$
	RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>

#php_value register_globals 0

------------------------

Charset (default/config): latin1/
character_set_client: latin1
character_set_connection: latin1
character_set_database: latin1
character_set_filesystem: binary
character_set_results: latin1
character_set_server: latin1
character_set_system: utf8
character_sets_dir: /usr/share/mysql/charsets/
19 Tables: OK

10 custom: custom_1, custom_2, custom_3, custom_4, custom_5, custom_6, custom_7, custom_8, custom_9, custom_10 (10)

PHP extensions: date/5.2.17, libxml, openssl, pcre, zlib/1.1, bcmath, calendar, ctype, curl, dom/20031129, hash/1.0, filter/0.11.0, ftp, gd, gettext, session, iconv, standard/5.2.17, json/1.2.1, mbstring, mcrypt, mhash, mysql/1.0, SimpleXML/0.1, SPL/0.2, PDO/1.0.4dev, pdo_pgsql/1.0.2, pdo_sqlite/1.0.1, pgsql, posix, Reflection/0.1, imap, pdo_mysql/1.0.2, soap, mysqli/0.1, SQLite/2.0-dev, exif/1.4 $Id: exif.c 293036 2010-01-03 09:23:27Z sebastian $, tidy/2.0, tokenizer/0.1, xml, xmlreader/0.1, xmlwriter/0.1, xsl/0.1, cgi-fcgi, imagick/2.3.0, apc/3.0.19

pretext_data: array (
  'id' => '',
  's' => '',
  'c' => '',
  'context' => '',
  'q' => '',
  'm' => '',
  'pg' => '',
  'p' => '',
  'month' => '',
  'author' => '',
  'request_uri' => '/680d48c25766e0f787e08346dcde7b43/?txpcleantest=1',
  'qs' => 'txpcleantest=1',
  'subpath' => '\\/',
  'req' => '/680d48c25766e0f787e08346dcde7b43/?txpcleantest=1',
)

/home/www/myurl.com/index.php: 
	r3189 (5dfca604bf4976675f92222dd5628b0a)
/home/www/myurl.com/css.php: 
	r3189 (b53deffeb21070b8d493af6846db8ac3)
/home/www/myurl.com/textpattern/css.php: 
	r3189 (820df954c923979eabace541888feb4a)
/home/www/myurl.com/textpattern/include/import/import_b2.php: 
	r3446 (7a044ad474fd04ae61063d0df15e05d8)
/home/www/myurl.com/textpattern/include/import/import_blogger.php: 
	r3446 (4eade881581bd9932f05a7ff6e2a6e1f)
/home/www/myurl.com/textpattern/include/import/import_mt.php: 
	r3446 (f0ab362246e60f37d3c52ef3f004e79d)
/home/www/myurl.com/textpattern/include/import/import_mtdb.php: 
	r3488 (22628f6ba8d15645498ba09eb48bab32)
/home/www/myurl.com/textpattern/include/import/import_wp.php: 
	r3488 (977d7be6fad569982ad175225e8e4df5)
/home/www/myurl.com/textpattern/include/txp_admin.php: 
	r3570 (7925fc6a6c15f944ab255a0a7e239dab)
/home/www/myurl.com/textpattern/include/txp_article.php: 
	r3560 (c12a042e5f56efeb4f5af57be4d42023)
/home/www/myurl.com/textpattern/include/txp_auth.php: 
	r3571 (dea6f26aa1af3ef10a0dc002f3a397ea)
/home/www/myurl.com/textpattern/include/txp_category.php: 
	r3534 (37ecab71b01c146dd58da97d9b5c6439)
/home/www/myurl.com/textpattern/include/txp_css.php: 
	r3535 (8cbc6b0e164b1cb790bea0264e867915)
/home/www/myurl.com/textpattern/include/txp_diag.php: 
	r3521 (fac584135850fcae546cb8c59bf94688)
/home/www/myurl.com/textpattern/include/txp_discuss.php: 
	r3569 (9e1d3b6ab40fde25a41d192e5f573ef7)
/home/www/myurl.com/textpattern/include/txp_file.php: 
	r3569 (a1848e934804174886ae3b57d418ebd2)
/home/www/myurl.com/textpattern/include/txp_form.php: 
	r3560 (06f2ddc008dbc82ce8d50af615f5f1a0)
/home/www/myurl.com/textpattern/include/txp_image.php: 
	r3569 (a77c218d6db978157ec9f289d561cd33)
/home/www/myurl.com/textpattern/include/txp_import.php: 
	r3556 (f8187a926ca6a379c1b0dd79fc194bec)
/home/www/myurl.com/textpattern/include/txp_link.php: 
	r3569 (412a2382de98901a535548e5cf2def96)
/home/www/myurl.com/textpattern/include/txp_list.php: 
	r3569 (91d67b3a1576a5dee3a128a03cdf9f04)
/home/www/myurl.com/textpattern/include/txp_log.php: 
	r3569 (fd8cd943143eb3537074563625521033)
/home/www/myurl.com/textpattern/include/txp_page.php: 
	r3560 (180b3a6b8669add7dab51a67ec76f89b)
/home/www/myurl.com/textpattern/include/txp_plugin.php: 
	r3551 (51152310c17015cf906fb26ddaa68275)
/home/www/myurl.com/textpattern/include/txp_prefs.php: 
	r3555 (6e844f30b97b1454c3d201914a2464a9)
/home/www/myurl.com/textpattern/include/txp_section.php: 
	r3552 (89aacca63f7afc9fe28dc111cb61fa5d)
/home/www/myurl.com/textpattern/include/txp_tag.php: 
	r3560 (d22e90318bd6fdf006198ebd33c5e6b3)
/home/www/myurl.com/textpattern/index.php: 
	r3575 (c2c7bf18468d74254c77570a9573b46b)
/home/www/myurl.com/textpattern/jquery.js: 
	unknown (a34f78c3aecd182144818eb4b7303fda)
/home/www/myurl.com/textpattern/lib/IXRClass.php: 
	r3394 (e0b53564e1504316b35872309780edab)
/home/www/myurl.com/textpattern/lib/admin_config.php: 
	r3559 (52d8b15bbf633de98c565252b9ef8ceb)
/home/www/myurl.com/textpattern/lib/class.thumb.php: 
	r3301 (78f52a89b91018c8fa00ddd73cd398f5)
/home/www/myurl.com/textpattern/lib/classTextile.php: 
	r3566 (03d537017f6fc1f43535fa8d18f4cd48)
/home/www/myurl.com/textpattern/lib/constants.php: 
	r3488 (aa0ea1b5749497d3b19f0ed07acccaa2)
/home/www/myurl.com/textpattern/lib/taglib.php: 
	r2868 (5738c5e31820cda422f32701c71cb77e)
/home/www/myurl.com/textpattern/lib/txplib_admin.php: 
	r3488 (e7f66b6f8cc7e5a51eb05555ad3cb6dc)
/home/www/myurl.com/textpattern/lib/txplib_db.php: 
	r3389 (0e7462a104d815a33d25c5a6e775f84d)
/home/www/myurl.com/textpattern/lib/txplib_forms.php: 
	r3531 (a4dbb070460ecc5698ab80bba2cdfe5b)
/home/www/myurl.com/textpattern/lib/txplib_head.php: 
	r3560 (1a82941e28253d6df3735c05df5f7ebd)
/home/www/myurl.com/textpattern/lib/txplib_html.php: 
	r3569 (84ee78759355041d1ebb2c36bf565d80)
/home/www/myurl.com/textpattern/lib/txplib_misc.php: 
	r3569 (ea1314b56962fc9c67885691d977a3c5)
/home/www/myurl.com/textpattern/lib/txplib_theme.php: 
	r3388 (51ad413813a10071873571304bea9f97)
/home/www/myurl.com/textpattern/lib/txplib_update.php: 
	r2812 (52029367bf0aef18c1879d5ff2cf3d46)
/home/www/myurl.com/textpattern/lib/txplib_wrapper.php: 
	r2931 (17472ff98d9ffb3dbcc9ebdf222d11ac)
/home/www/myurl.com/textpattern/publish.php: 
	r3500 (e3bba9bec573b33dea759c0344db96a8)
/home/www/myurl.com/textpattern/publish/atom.php: 
	r3399 (f4470b45eedc8e1ad4a48f8e74b45233)
/home/www/myurl.com/textpattern/publish/comment.php: 
	r3395 (9e8596ada0a85ebdd52e1548fda81314)
/home/www/myurl.com/textpattern/publish/log.php: 
	r3505 (8401dab65b91b1b1021fc876daf473bd)
/home/www/myurl.com/textpattern/publish/rss.php: 
	r3399 (f8cb3ec280bffb8a15832ee3143f576c)
/home/www/myurl.com/textpattern/publish/search.php: 
	r2812 (e2355f5b045bf80acc3a52ba32dddb1a)
/home/www/myurl.com/textpattern/publish/taghandlers.php: 
	r3567 (6e87e8065d71acaa25512f8901d57938)
/home/www/myurl.com/textpattern/textpattern.js: 
	r3560 (d0f6e8f931eb32d945112b712a45e32b)
/home/www/myurl.com/textpattern/theme/classic/classic.php: 
	r3191 (f5337d226aef1552c4d4d99fe3bee912)
/home/www/myurl.com/textpattern/update/_to_1.0.0.php: 
	r3047 (d631745cc332531712480f2bd6dfae29)
/home/www/myurl.com/textpattern/update/_to_4.0.2.php: 
	r3462 (a08e1b95ea2256a33effab779989d1fd)
/home/www/myurl.com/textpattern/update/_to_4.0.3.php: 
	r3047 (888328073220c66f316c1f04e5498692)
/home/www/myurl.com/textpattern/update/_to_4.0.4.php: 
	r3047 (3da0f3b179ad98a49f8846c4e328cd0d)
/home/www/myurl.com/textpattern/update/_to_4.0.5.php: 
	r2894 (e5150247c0e2d8882f65e24c938df1d6)
/home/www/myurl.com/textpattern/update/_to_4.0.6.php: 
	r3047 (faeb0eaa7c042d18e79ded54ad3f68b3)
/home/www/myurl.com/textpattern/update/_to_4.0.7.php: 
	r3014 (59dfb80496aa6f8bbcb486f26488f65d)
/home/www/myurl.com/textpattern/update/_to_4.0.8.php: 
	r3057 (89382671f0509e1d880707bbd293f86c)
/home/www/myurl.com/textpattern/update/_to_4.2.0.php: 
	r3480 (7bb41aac414aff7fa81cf960b5a42c1c)
/home/www/myurl.com/textpattern/update/_to_4.3.0.php: 
	r3304 (59fcf5b4e1dc7870d6729c63b824e55f)
/home/www/myurl.com/textpattern/update/_to_4.4.0.php: 
	r3498 (4b3bd3eadb29f3a9df6398126e137a87)
/home/www/myurl.com/textpattern/update/_update.php: 
	r3575 (3386cdffb48e0b00c2b77e00ef57daec)

------------------------

Added formatting (bc.) for the diagnostics report -Gocom

Last edited by Gocom (2011-09-07 11:33:09)

Offline

#5 2011-09-07 11:30:01

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Warning: fsockopen()

Your Textpattern installation tries to ping Textpattern.com (as set in preferences), and the connection fails for a reason or another; likely your hosting provider isn’t allowing fsockopen() to do remote connections.

That particular error appearance should go away if you disable pinging. To disable pinging, go to Advanced Preference panel (Admin/Preferences/Advanced) and set the Ping textpattern.com? option to No. Now the message should go away.

Disabling pinging obviously won’t allow you to do remote connection with fsockopen() (i.e. fix the actual cause), it just makes that particular error go away. If you need remote connections, you will have to talk with your hosting provider or open up the server’s configuration.

Last edited by Gocom (2011-09-07 11:32:18)

Offline

#6 2011-09-07 15:31:36

castanet
Member
From: Oxford
Registered: 2005-03-19
Posts: 97

Re: Warning: fsockopen()

Many thanks, Gocom – that’s solved the error message. Sorry to sound thick, but how might not being able to have a remote connection with fsockopen() affect the day-to-day operation of the site?

Offline

#7 2011-09-07 15:37:50

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

Re: Warning: fsockopen()

Wild guess:

It might affect your

  • feeds
  • language files update

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

Offline

#8 2011-09-07 16:17:01

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Warning: fsockopen()

colak wrote:

feeds

Fortunately, no. Feeds do not require to make outgoing connections.

language files update

Correct, automatic language file updating won’t work, neither will anything else that requires the RPC class, like the update checks and pinging.

You can still update language files manually by downloading the file from rpc.textpattern.com/lang and placing it to /textpattern/lang directory tho.

Offline

Board footer

Powered by FluxBB