Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-03-17 08:51:14

qwallis
Member
From: Köln Germany
Registered: 2006-03-13
Posts: 17
Website

Tech-heads: Textpattern times out when posting images

Hello, I have a problem which I think (correct me if I’m wrong) is caused by my hosting provider.
Which is I can’t post articles which include an absolute URL when I use the textile option (i.e. ). Whenever I try it just times out. Associating a single image with this with an article on the other hand works fine.
To pin down the symptoms I tried the following:
Posting using:
<code>!/friends/images/6.jpg(lichen)!</code> Ok
<code>!http://www.soldering-on.co.uk/friends/images/6.jpg(lichen)!</code> Ok
local, but outside the textpattern instilation
<code>!http://www.soldering-on.co.uk/site/images/item_images/small_item_images/small_ring_images/r54small.jpg(mixed material rings)!</code> Ok
And even (which I didn’t expect to work), from another web site hosted for someone else on the same server (i.e. both have the same IP).
<code>!http://1066productions.com/images/1066_look2_theatre.jpg!</code> Ok

But anything else (like the example below) times out.
<code>!http://static.flickr.com/42/105212926_cb18161263_m.jpg!</code> not Ok

So I think I need to ask my hosing provider to change a setting or something, but I don’t know what that would be as I don’t know what textpattern does/ or needs in the circumstances where posting times out.

My diagnostics are as follows, and I could post the results of phpinfo() if there is anything relevant in that which may be omitted in this report.

———————————————
<code>
Textpattern version: 4.0.3 (r1188)
last_update: 2006-03-08 13:23:02/2006-03-08 13:14:32
Document root: /home/solderingon/public_html
$path_to_site: /home/solderingon/public_html/friends
Textpattern path: /home/solderingon/public_html/friends/textpattern
Permanent link mode: section_title
open_basedir: /home/solderingon/public_html
Temp folder: /home/solderingon/public_html/friends/images
Site URL: www.soldering-on.co.uk/friends
PHP version: 4.4.1
Register globals: 1
Server time: 2006-03-17 07:35:13
MySQL: 4.0.22-standard
Locale: en_GB.UTF-8
Server: Apache/1.3.33 (Unix) mod_gzip/1.3.19.1a PHP/4.4.1 mod_perl/1.24
Apache version: Apache/1.3.33 (Unix) mod_gzip/1.3.19.1a PHP/4.4.1 mod_perl/1.24
PHP mode: apache
Operating System: Linux 2.2.25

.htaccess file contents:
————————————
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/

<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]

RewriteRule ^(.*) index.php </IfModule>

#php_value register_globals 0

————————————

Charset (default/config): latin1/latin1
character_set: latin1
character_sets: latin1 big5 czech euc_kr gb2312 gbk latin1_de sjis tis620 ujis dec8 dos german1 hp8 koi8_ru latin2 swe7 usa7 cp1251 danish hebrew win1251 estonia hungarian koi8_ukr win1251ukr greek win1250 croat cp1257 latin5
18 Tables: OK

PHP extensions: yp, xml, wddx, tokenizer/0.1, standard/4.4.1, sockets, shmop, session, posix, pcre, overload, mysql, mbstring, iconv, gmp, gettext, gd, dio/0.1, dbx, dba, ctype, calendar, bz2, bcmath, zlib/1.1, openssl, apache, imagick/0.9.11
/include/txp_category.php: r1154 (dffd7979531373149c74e3eedfbb50e2)
/include/txp_plugin.php: r1167 (c2c7d7fc1e4918c79cd3658c62e4fbda)
/include/txp_auth.php: r1166 (3e2eaca7b151e14561125ab68e722203)
/include/txp_form.php: r947 (c0e4393328985742bd81cda61d10d5ed)
/include/txp_section.php: r1154 (d85c1ce405fccd9dac364c8ef4eb72eb)
/include/txp_tag.php: r1134 (3e2dfbd6fdccf0693c147ba22a9705e7)
/include/txp_list.php: r1042 (e85d2de1c63b41f0e5bdcf268e3c487b)
/include/txp_page.php: r876 (e22dc37b465b87757722732a225b25f3)
/include/txp_discuss.php: r1170 (1e56e08cc95c255783410076db12529f)
/include/txp_prefs.php: r1170 (c806be1b1f238e75a5ff6b7cf8432d17)
/include/txp_log.php: r906 (68c4f32b70ce41a349f197b6bba6c200)
/include/txp_preview.php: r628 (a16f84b6610fc66db0bce51e25b7af34)
/include/txp_image.php: r1168 (e8ec79ff9b3a21c356ee23da7973b1f0)
/include/txp_article.php: r1170 (88689d7469d16c13d51bd4adff03ebd7)
/include/txp_css.php: r922 (0c596d9968052b89581d1ca65a77c5de)
/include/txp_admin.php: r1074 (7e87ff0e29101593fb170b1a2de9fd59)
/include/txp_link.php: r1154 (7c0c55ff6580793dff0626f169e64ad6)
/include/txp_diag.php: r1154 (5d66b90f7e7720dd0e3526ca1b24cf89)
/lib/admin_config.php: r877 (9aea12193cc76eea1964eb0383ec6513)
/lib/txplib_misc.php: r1170 (7000a1b27aa40c90978211e6cff358ec)
/lib/taglib.php: r628 (493878f922262157601c26a999a1c478)
/lib/txplib_head.php: r1183 (fb85b66b4e379476935233f844844bef)
/lib/classTextile.php: r1141 (b066c2bfa94a26ae3d70b245dcf81369)
/lib/txplib_html.php: r1166 (bd11de6e6daa3391eab75a46db55ae36)
/lib/txplib_db.php: r1170 (5a2c3a1e328cd343a067cbb8fd25cd79)
/lib/IXRClass.php: r765 (2efb0fb05b55c634072b0bae9af38bdd)
/lib/txplib_forms.php: r950 (74da2c67abe4786c353ea416c13656eb)
/publish/taghandlers.php: r1188 (4e8eaeb0543d8fde09d6e423af4253b9)
/publish/atom.php: r1117 (14c1aa23c708898d7723b3d6b9c89050)
/publish/log.php: r864 (c3d16d3dfe375819a19fcd62398e4b86)
/publish/comment.php: r1187 (d55dde574418d2eaf6a394d703056d9a)
/publish/search.php: r884 (80f942f1dc301857c2fa9dcb16aa1246)
/publish/rss.php: r1099 (ce0d82b9435d8f1de01c8e2b6c585f93)
/publish.php: r1186 (d5c20bf2298e87969575f9e622bf2797)
/index.php: r1172 (52f753ebb51c1f7d5312485d9dbad7e4)
/css.php: r944 (df1c754417bdfb4e97a2c83ae5b454ee)

</code>
—————————————————

The hosting provider in question is Supanames. I have done lots of searching on Google etc and there are a number of people running Txp on Supanames.

Any information as to what is set up wrong, or if the think the problem lays somewhere else etc.

Thanks.

Offline

#2 2006-03-27 02:19:12

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Tech-heads: Textpattern times out when posting images

Is this an issue?

Offline

#3 2006-03-28 08:18:52

qwallis
Member
From: Köln Germany
Registered: 2006-03-13
Posts: 17
Website

Re: Tech-heads: Textpattern times out when posting images

I am using textpattern to set up a small community part of my site.
Currently it is possible to include images at the end of an article, (by pasting the URL in the Advanced Options/Article image box), or by using standard html etc. But as the people using the system will probably not be comfortable with writing html I was hoping very much that they would be able to include an image using textile code (i.e. <code>!http://www.an-image.com/image.jpg!</code>
But when this is tried the system crashes or hangs. I think I need to talk to my host about it, but as I don’t know what textpattern needs, or does, when the textile code for an image is used ,(as apposed to any other textile formatting which works fine), I was hoping for some technical information which would mean I could be specific, with any request I ask of my hosing provider to fix this issue.

So yes, for me this is an issue.

Hopefully I have explained the problem sufficiently, and hopefully I’m not being a total fuckwit and just missing something. I have spent a lot of time trying to sort this out on my own first.
I know for the technically able it would seem like a very small niggle, but the way articles can be formatted when written, using “textile�, was one of the big “yehs!� that made me sit down and spend the time setting it up, so for me it is rather a big disappointment. I understand, (or at least I think) that the problem lies with the host: but I have more chance getting them to fix it if I knew that I needed a memory_limit greater than 9388608 or a max_execution_time greater than 20 or a max_input_time other than -1 etc etc.

If this is the wrong place to ask then please do point me in the right direction.

Thanks. Robert

Offline

#4 2006-03-28 09:06:04

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Tech-heads: Textpattern times out when posting images

I believe you’ve run up against the Flickr hotlink protection:

Link back to Flickr when you post your photos elsewhere
The Flickr service makes it possible to post images hosted on Flickr to outside websites. However, pages on other websites that display images hosted on flickr.com must provide a link back to Flickr from each photo to its photo page on Flickr.

Offline

#5 2006-03-28 10:40:34

qwallis
Member
From: Köln Germany
Registered: 2006-03-13
Posts: 17
Website

Re: Tech-heads: Textpattern times out when posting images

I had thought about that already. Nope.

Tried again… [ <code>!http://forum.textpattern.com/img/avatars/1560.jpg!</code>] Can’t get your perky face or any absolute image URL to work using textile, (yes, “use textile” is set in Admin/preffs).

Offline

#6 2006-03-28 20:34:15

KurtRaschke
Plugin Author
Registered: 2004-05-16
Posts: 275

Re: Tech-heads: Textpattern times out when posting images

And if you include a plain old <img> tag in the article, rather than using the Textile syntax? What happens then?

-Kurt

Last edited by KurtRaschke (2006-03-28 22:59:45)


kurt@kurtraschke.com

Offline

#7 2006-03-28 22:34:27

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Tech-heads: Textpattern times out when posting images

Q, what plugins do you have installed?


Alex

Offline

#8 2006-03-29 11:49:57

qwallis
Member
From: Köln Germany
Registered: 2006-03-13
Posts: 17
Website

Re: Tech-heads: Textpattern times out when posting images

Hi Kurt, using an <code><img></code> tag works fine. It is only the textile format <code>!http://www.where-the-image-is.com/the-image.jpg!</code> that causes this problem.

Hello Alex, I have your zem_prblock plugin and Manfre’s mem_self_register (which I am yet to get working properly) running: but I have already tried turning them both off to see if it made any difference, which it didn’t.

Robert

Offline

#9 2006-03-30 05:07:51

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Tech-heads: Textpattern times out when posting images

Really weird. Yeah, I tested out your Textile image urls and they preview fine for me, both on the forum as well as my own Txp install.

Thing is, there shouldn’t be any way for your server to interfere, as the browser doesn’t ask your server about images at all. Have you tried a different browser?

Offline

#10 2006-03-30 11:55:16

qwallis
Member
From: Köln Germany
Registered: 2006-03-13
Posts: 17
Website

Re: Tech-heads: Textpattern times out when posting images

Yes I have tried IE and that hangs and then gives me a “Cannot find server or DNS Error”, firefox hangs for the same amount of time and then asks me what I want to do with the php file.

The only other issue I have with this install is that when I click on the “Manage languages” tab in admin preferences that it hangs for a short time and the tells me “Can’t connect to remote server to check for updated language files. Please try again later.” Now I know that my host has php set so that it can’t connect to remote sites. Quote “To protect your hosting package against a number of different threats, SupaNames prevent all automatic connections from PHP or CGI scripts to remote websites. Specifically if your script attempts to connect to a remote server, it will fail or time out.”

Which I assume is the cause of the error when I click the “Manage languages” tab, but I don’t think that should be an issue when trying to post an article containing the textile image formatting, at least, if it was is should not only be a problem when inserting the textile image code.

I haven’t yet contacted my hosting support team, as I hoped that I would be able to approach them with some idea as to what may need altering. My only hope if every other reason is ruled out, would be that perhaps one of their other customers may have had a similar problem. But that sounds like a long shot to me.

Now I am not sure that this has anything directly to do with the server; that was just my best guess. Any other ideas would be very welcome.

Robert

Offline

#11 2006-03-31 06:09:42

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Tech-heads: Textpattern times out when posting images

Which I assume is the cause of the error when I click the “Manage languages” tab

Yes. It’s not fatal, since Textpattern will fall back to the en-gb.txt language file.

but I don’t think that should be an issue when trying to post an article containing the textile image formatting, at least, if it was is should not only be a problem when inserting the textile image code.

Correct. Textpattern shouldn’t be trying to fetch the image at all. I’m not aware of anything in the core code that might cause it to do that; I asked about plugins because it’s possible one might do something like that.

firefox hangs for the same amount of time and then asks me what I want to do with the php file.

If you save the PHP file, what does it contain?


Alex

Offline

#12 2006-03-31 07:23:36

qwallis
Member
From: Köln Germany
Registered: 2006-03-13
Posts: 17
Website

Re: Tech-heads: Textpattern times out when posting images

zem wrote:

If you save the PHP file, what does it contain?

The file is empty if when saved. This was one thing I hadn’t thought of doing up to this point. I was quite dissapointed when it was empty, but I can’t see that the fact it saves empty can be seen to mean X as it obviously wasn’t empty, an empty php doc would just be parsed as an empty html doc wouldn’t it?

Robert

Offline

Board footer

Powered by FluxBB