Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2005-11-06 18:55:46
- igork
- New Member
- Registered: 2005-11-06
- Posts: 3
there was a problem saving image data
Getting this message, when try to upload image.
There is no such problem with files.
I checked permissions, looks like all ok.
I’m stunned.
Offline
#2 2005-11-07 01:30:52
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: there was a problem saving image data
Can you post the exact and complete error message please? Also your diagnostics (low detail).
Alex
Offline
#3 2005-11-07 16:51:57
- killnine
- Member
- Registered: 2005-11-06
- Posts: 16
Re: there was a problem saving image data
I actually had a similar problem. I was getting errors that a particular function could not write to a particular folder. As it turned out, when setting up text pattern, I didnt realize that your temporary folder had to have the full address in it, not just ‘/tmp’ for example, but ‘/var/www/html/tmp’. See if thats your problem too
Offline
#4 2005-11-07 18:11:35
- igork
- New Member
- Registered: 2005-11-06
- Posts: 3
Re: there was a problem saving image data
> zem wrote:
> Can you post the exact and complete error message please? Also your diagnostics (low detail).
Exact error message is the same as in this topic.
Diagnostic looks like:
Textpattern version: 4.0.2 (r1076)
last_update: 2005-11-06 10:44:40/2005-11-01 14:01:30
Document root: F:/Apache Group/Apache2/htdocs (F:\Apache Group\Apache2\htdocs)
$path_to_site: F:\Apache Group\Apache2\htdocs
Textpattern path: F:\Apache Group\Apache2\htdocs\textpattern
Permanent link mode: messy
upload_tmp_dir: F:\PHP\uploadtemp
Temp folder: F:\Apache Group\Apache2\htdocs\textpattern\tmp
Site URL: localhost
PHP version: 5.0.5
server_time: 2005-11-07 20:07:51
MySQL: 5.0.15-nt
Locale: English_United Kingdom.1252
Server: Apache/2.0.55 (Win32) PHP/5.0.5
Apache version: Apache/2.0.55 (Win32) PHP/5.0.5
.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
————————————
Offline
#5 2005-11-07 23:04:32
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: there was a problem saving image data
Are you trying to upload a new image file, or replace an existing one?
Can you check, via phpmyadmin or the MySQL command line, that your txp_image table exists?
Does the problem occur with all images, or only certain types?
In textpattern/include/txp_image.php, try changing this line (400):
return gTxt('image_save_error');
to this:
return gTxt('image_save_error').' '.mysql_error();
And see what the error message is.
Alex
Offline
Re: there was a problem saving image data
> MySQL: 5.0.15-nt
What do you get for the query: <code>SELECT sql_mode</code>
Offline
#7 2005-11-08 19:11:10
- igork
- New Member
- Registered: 2005-11-06
- Posts: 3
Re: there was a problem saving image data
O.K. looks like that problem was with database
in txp_image, field `caption` text NOT NULL, and it without default, so error was : there was a problem saving image data Field ‘caption’ doesn’t have a default value
how I think, it’s ok to change this field to NULL , or not ?
Last edited by igork (2005-11-08 19:26:34)
Offline
#8 2005-11-22 13:48:52
- Visor57
- New Member
- Registered: 2005-11-22
- Posts: 3
Re: there was a problem saving image data
Hi there :)
I downloaded a copy of Textpattern [Ver 4.0.2 (r1076)] today to check it out and found that I experienced the same issue regarding image uploads.
It occurs with all images types and sizes.
After examining the “txp_image” table and changing the “caption” field to allow a NULL value, it works fine.
There is no “caption” field in “txp_files”, which explains why it worked fine from the outset.
Cheers,
V57
Last edited by Visor57 (2005-11-22 13:51:52)
Offline
Re: there was a problem saving image data
Hi Visor57, which db-version are you using? Can you post your diagnostics? Thanks.
Offline
#10 2005-11-22 13:59:37
- Visor57
- New Member
- Registered: 2005-11-22
- Posts: 3
Re: there was a problem saving image data
Hi Sencer, no prob ;)
Textpattern version: 4.0.2 (r1076)
last_update: 2005-11-22 13:02:17/2005-11-01 13:01:30
Document root: C:/Program Files/Apache Group/Apache2/htdocs (C:\Program Files\Apache Group\Apache2\htdocs)
$path_to_site: C:\Program Files\Apache Group\Apache2\htdocs\tptest
Textpattern path: C:\Program Files\Apache Group\Apache2\htdocs\tptest\textpattern
Permanent link mode: messy
Temp folder: C:\Program Files\Apache Group\Apache2\htdocs\tptest\textpattern\tmp
Site URL: station-it/tptest
PHP version: 5.0.5
server_time: 2005-11-22 15:58:39
MySQL: 5.0.15-nt
Locale: English_United Kingdom.1252
Server: Apache/2.0.53 (Win32) PHP/5.0.5
Apache version: Apache/2.0.53 (Win32) PHP/5.0.5
Pre-flight check:
————————————
C:\Program Files\Apache Group\Apache2\htdocs\tptest\textpattern\setup\ still exists
————————————
.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/utf8
character_set_client: utf8
character_set_connection: utf8
character_set_database: latin1
character_set_results: utf8
character_set_server: latin1
character_set_system: utf8
character_sets_dir: C:\Program Files\MySQL\MySQL Server 5.0\share\charsets/
18 Tables: OK
PHP extensions: bcmath, calendar, com_dotnet/0.1, ctype, ftp, iconv, odbc/1.0, pcre, session, SPL, SQLite, standard/5.0.5, tokenizer/0.1, zlib/1.1, libxml, dom/20031129, SimpleXML, wddx, xml, apache2handler, mbstring, mysql
Apache modules: core, mod_win32, mpm_winnt, http_core, mod_so, mod_access, mod_actions, mod_alias, mod_asis, mod_auth, mod_autoindex, mod_cgi, mod_dir, mod_env, mod_imap, mod_include, mod_isapi, mod_log_config, mod_mime, mod_negotiation, mod_setenvif, mod_userdir, mod_php5
/include/txp_category.php: r901 (ced49a43561099e1652fccb7880b8f66)
/include/txp_plugin.php: r902 (20ba701396c318619a4e00681af8b228)
/include/txp_auth.php: r928 (4cfa9ec7960f80308c9392cec5722616)
/include/txp_form.php: r947 (c0e4393328985742bd81cda61d10d5ed)
/include/txp_section.php: r904 (3575f34afd7bf1400ecb7926483fcbd2)
/include/txp_tag.php: r982 (c4f3b1cd5aa07a45f6218ec2a6befe0f)
/include/txp_list.php: r1042 (e85d2de1c63b41f0e5bdcf268e3c487b)
/include/txp_page.php: r876 (e22dc37b465b87757722732a225b25f3)
/include/txp_discuss.php: r1056 (1e6c25bf973a445a9e6ff710064f01f9)
/include/txp_prefs.php: r1026 (6c0696f2147c45276380a7438dbd1575)
/include/txp_log.php: r906 (68c4f32b70ce41a349f197b6bba6c200)
/include/txp_preview.php: r628 (a16f84b6610fc66db0bce51e25b7af34)
/include/txp_image.php: r1042 (d9c8518ac976a9f21af59c9012818546)
/include/txp_article.php: r1049 (7dfdffb58a90570e8ad90debc1017b0c)
/include/txp_css.php: r922 (0c596d9968052b89581d1ca65a77c5de)
/include/txp_admin.php: r1074 (7e87ff0e29101593fb170b1a2de9fd59)
/include/txp_link.php: r1042 (f4e99d4b37e5c80f3c9fb2f1b1c08e3d)
/include/txp_diag.php: r1075 (d4b97f820b0ea9abe593cb74bf3891c2)
/lib/admin_config.php: r877 (9aea12193cc76eea1964eb0383ec6513)
/lib/txplib_misc.php: r1064 (c4b8079db64c3fbe57ea961181d88512)
/lib/taglib.php: r628 (493878f922262157601c26a999a1c478)
/lib/txplib_head.php: r1055 (a8e03ea3e927ddde5fc25434a506dfb7)
/lib/classTextile.php: r1072 (52c3c2efdde23f52efdd0d7728c6986f)
/lib/txplib_html.php: r1002 (e8f4c2552170d92d5d353dae725c8bba)
/lib/txplib_db.php: r1064 (7dc8e32e097645d4340de2f809896521)
/lib/IXRClass.php: r765 (2efb0fb05b55c634072b0bae9af38bdd)
/lib/txplib_forms.php: r950 (74da2c67abe4786c353ea416c13656eb)
/publish/taghandlers.php: r1067 (1e9624108bdd485003629ae239619414)
/publish/atom.php: r1037 (30aea53e1c1fce877a10d2d9fa3ce90c)
/publish/log.php: r864 (c3d16d3dfe375819a19fcd62398e4b86)
/publish/comment.php: r1057 (7db181efda097083988e47eb00960915)
/publish/search.php: r884 (80f942f1dc301857c2fa9dcb16aa1246)
/publish/rss.php: r1037 (6848c34e120c99b6889b7f19c421b076)
/publish.php: r1073 (700374ed1a9cb57b5afc355ac977daad)
/index.php: r1076 (482a2e752575c2b7b620a86520b99303)
/css.php: r944 (df1c754417bdfb4e97a2c83ae5b454ee)
Offline
Re: there was a problem saving image data
Ok, thanks. It looks like mysql3 and 4 are silently dealing with it, while mysql5 is throwing an error.
We’ll fix this for the next version.
Offline
#12 2005-11-22 14:54:45
- Visor57
- New Member
- Registered: 2005-11-22
- Posts: 3
Re: there was a problem saving image data
Glad to be of assistance :)
Keep up the good work!
Offline
Pages: 1