Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-11-08 15:47:16

MarcoK
Plugin Author
From: Como
Registered: 2006-10-17
Posts: 248
Website

Trouble with upload images

Hello!

I have a trouble when i try to upload an image.

When i have choose the image and i press the button upload it will load the /textpattern/index.php page and show me the front end site with same article listed.
The image is not uploaded and i can’t upload any image: jpg,png,gif.
Only the image that as at max 45kb of size was correctly uploaded.

I have no limit on my webserer and just the last TXP upgrade all work fine. Now i have TXP 4.4.1 (the problem start with 4.4.0)

Offline

#2 2011-11-08 19:25:15

maruchan
Member
From: Ukiah, California
Registered: 2010-06-12
Posts: 590
Website

Re: Trouble with upload images

Can you run diagnostics and paste the result here? I guess it would also be helpful to see your .htaccess files.

Offline

#3 2011-11-09 10:39:59

MarcoK
Plugin Author
From: Como
Registered: 2006-10-17
Posts: 248
Website

Re: Trouble with upload images

This is my diagnostic report

Versione di Textpattern: 4.4.0 (r3514)
Ultimo aggiornamento: 2011-04-10 06:53:36/2011-05-03 11:19:05
Radice del documento: /var/www/vhosts/kreatore.it/httpdocs
$path_to_site: /var/www/vhosts/kreatore.it/httpdocs
Percorso di Textpattern: /var/www/vhosts/kreatore.it/httpdocs/textpattern
Modalità link permanenti: section_title
open_basedir: /var/www/vhosts/kreatore.it/httpdocs/:/tmp/
upload_tmp_dir: /var/www/vhosts/youbeast.net/httpdocs/tmp/
Cartella file temporanei: /var/www/vhosts/kreatore.it/httpdocs/textpattern/tmp
URL del sito: www.kreatore.it
Versione di PHP: 5.3.5
GD Image Library: bundled (2.0.34 compatible); formati supportati: GIF, JPG, PNG.
Server TZ: Europe/Rome
Ora locale server: 2011-11-09 11:34:23
Abilita ora legale?: 0
Aggiorna automaticamente l'ora legale/solare?: 0
Fuso Orario:  (3600)
MySQL: 5.0.51a-24+lenny5
Locale: it_IT.UTF-8
Server: Apache
Versione di Apache: Apache
PHP Server API: apache2handler
Header RFC 2616: 
Sistema operativo server: Linux 2.6.26-2-amd64
Plug-in attivi: ob1_title-4.1, mck_navigation_menu-1.0m, mck_paypal-0.1m, rss_auto_excerpt-0.5, cbs_gravatar-0.3, zem_contact_reborn-4.0.3.20, zem_contact_lang-4.0.3.6, stm_javascript-0.3, mck_images-1.9.5m, mck_functions-0.1m, tru_tags-3.6, rss_admin_db_manager-4.3m, mck_picasa-0.1, upm_date_archive-0.2.5, mem_postmaster-1.0.7_modm, mem_postmaster_library-1.0.4, ied_plugin_composer-0.93, rah_textile_bar-0.7, adi_form_links-0.1, rah_autogrowing_textarea-0.4, esq_autoimageresize-1.02
Tema per l'interfaccia di amministrazione: classic 4.4.0
------------------------
Controlli preliminari: 
------------------------
Alcuni file di Textpattern sono stati modificati: 
	/var/www/vhosts/kreatore.it/httpdocs/textpattern/publish/taghandlers.php, 
	/var/www/vhosts/kreatore.it/httpdocs/textpattern/theme/classic/classic.php
------------------------
contenuto del file .htaccess: 
------------------------
#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
#SetEnv TZ America/Montreal
SetEnv TZ Europe/Berlin
------------------------

I have tested and into all my website (on the same server) i have the same problem indifferently by a TXP version.
I have asked but nothing was changed on my server configuration.

Last edited by MarcoK (2011-11-09 10:42:30)

Offline

#4 2011-11-09 10:55:32

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

Re: Trouble with upload images

I can see 2 things there which I do not understand

open_basedir: /var/www/vhosts/kreatore.it/httpdocs/:/tmp/
upload_tmp_dir: /var/www/vhosts/youbeast.net/httpdocs/tmp/

On the first it is the : and the second youbeast.net


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

Offline

#5 2011-11-09 11:14:42

MarcoK
Plugin Author
From: Como
Registered: 2006-10-17
Posts: 248
Website

Re: Trouble with upload images

it’s true. WHHHHAAA!!

I found that lines into all my diagnostic website. WHI? Where i can modify that lines?

Offline

#6 2011-11-09 12:18:25

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

Re: Trouble with upload images

I’m not certain as my installs do not have anything like open_basedir or upload_tmp_dir in the diagnostics. Did they get created by some plugin(s)? Hopefully somebody with more knowledge than me will be able to help.


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

Offline

#7 2011-11-09 13:24:42

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,529
Website GitHub Twitter

Re: Trouble with upload images

Hi

There is a $txpcfg[‘txpath’] in config file maybe you can check it to see if it s correct, for the second maybe the tmp directory setting in pref admin tab in textapttern!

Cheers

Offline

#8 2011-11-09 13:54:48

MarcoK
Plugin Author
From: Como
Registered: 2006-10-17
Posts: 248
Website

Re: Trouble with upload images

$txpcfg[‘txpath’] = ‘/var/www/vhosts/kreatore.it/httpdocs/textpattern’;

it’s correct and this is the value of tmp directory in admin prefs

/var/www/vhosts/kreatore.it/httpdocs/textpattern/tmp

So, i don’t understand where i get the link at youbeast.net

Offline

#9 2011-11-09 14:03:17

MarcoK
Plugin Author
From: Como
Registered: 2006-10-17
Posts: 248
Website

Re: Trouble with upload images

I have try to reinstall TXP to a sub directory.
During installation i obtain thi warning

Warning: realpath() [function.realpath]: SAFE MODE Restriction in effect. The script whose uid is 10051 is not allowed to access /tmp/txp_pRGa6Q owned by uid 33 in /var/www/vhosts/kreatore.it/httpdocs/TEST/textpattern/lib/txplib_misc.php on line 1457

After i look into diagnostic and i found the same error whit youbeast.net

Offline

#10 2011-11-09 14:03:24

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,529
Website GitHub Twitter

Re: Trouble with upload images

Hi in the diagnostic it says alos that taghandler.php and classic.php are modified is this your modifications?

Offline

#11 2011-11-09 14:43:13

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

Re: Trouble with upload images

MarcoK wrote:

So, i don’t understand where i get the link at youbeast.net

Those come from your PHP’s configuration files. It might be possible that your PHP configuration files are outdated and some directives are incorrect. If you are on shared hosting, and you don’t have access to server configuration, contact your service provider. If it’s self managed service (VPS. dedicated etc), check your temporary directory, upload_tmp_dir and open_basedir options.

I would also highly recommend turning PHP’s safe mode off as it is deprecated as of PHP 5.3.0 (you’re using 5.3.5) and can cause problems.

colak wrote:

Did they get created by some plugin(s)?

Those settings and their values are from PHP’s configuration, not from Textpattern plugins. You don’t see those because your PHP configuration doesn’t include/use those options.

Dragondz wrote:

There is a $txpcfg[‘txpath’] in config file maybe you can check it to see if it s correct, for the second maybe the tmp directory setting in pref admin tab in textapttern!

The path in config.php isn’t really used for anything on a normal single site install. It’s there for fallback and backwards compatibility with plugins. Textpattern picks the installation path automatically without even looking at what is placed to the config file.

Dragondz wrote:

Hi in the diagnostic it says alos that taghandler.php and classic.php are modified is this your modifications?

Shouldn’t be in a way or other related to the issues which are not even caused by Textpattern itself. Other file is part of the theme and other is the tag library. Likely other is patched or uses forked version, and a theme is a theme.

Last edited by Gocom (2011-11-09 14:50:38)

Offline

#12 2011-11-09 16:04:01

MarcoK
Plugin Author
From: Como
Registered: 2006-10-17
Posts: 248
Website

Re: Trouble with upload images

classic.php yes (i have modified standar admin theme)
taghandler.php no, is the original.

Now i download agin TXP 4.4.1 and i replace all file with the original.

Offline

Board footer

Powered by FluxBB