Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-08-24 14:01:05

WhiteDog
Member
From: Maine
Registered: 2005-09-07
Posts: 174

there was a problem saving image data

I have been getting this and a series of other similar error messages every time i try to replace or upload new images. I’d check the DB and fix the table but I am unsure of what or how to do this. This error occured after I migrated to a new server. All help will be greatly appreciated

I checked past forums and foudn the following thread

http://forum.textpattern.com/viewtopic.php?id=17603

Below are my diagnostics
________________________________________

Textpattern version: 4.0.3 (r1188)
Last Update: 2006-07-12 16:50:35/2006-08-22 17:27:18
Document root: /home/jwhitedo/public_html
$path_to_site: /home/jwhitedo/public_html/c2h
Textpattern path: /home/jwhitedo/public_html/c2h/textpattern
Permanent link mode: messy
Temp folder: /tmp
Site URL: www.whitedogarts.com/c2h
PHP version: 4.4.2RC2-dev
Register globals: 1
Server Local Time: 2006-08-24 08:59:38
MySQL: 4.0.20-standard
Locale: en_US.UTF-8
Server: Apache/1.3.34 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_ssl/2.8.25 OpenSSL/0.9.7a
Apache version: Apache/1.3.34 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_ssl/2.8.25 OpenSSL/0.9.7a
PHP Server API: apache
Server OS: Linux 2.4.29-grsec

.htaccess file contents:
————————————

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


Grrr RRR nnndth grrr Skeek!

Offline

#2 2006-08-24 14:07:54

WhiteDog
Member
From: Maine
Registered: 2005-09-07
Posts: 174

Re: there was a problem saving image data

sorry to bother I fixed it i set id to auto_increment :) thansk for helping people in the past though!


Grrr RRR nnndth grrr Skeek!

Offline

#3 2006-08-24 14:38:25

hcgtv
Archived Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: there was a problem saving image data

I’ve had the same issues, using phpMyAdmin on my local server to save the database and then uploading it to my VPS. It seemed to ignore the auto_increment fields, I made sure it was checked and I specified the target database.

Check your other files, they may need to be changed also since auto_increment is used often.

Offline

#4 2006-08-24 15:02:41

WhiteDog
Member
From: Maine
Registered: 2005-09-07
Posts: 174

Re: there was a problem saving image data

yeah i had to do auto_increment to everything with id in the table thank you


Grrr RRR nnndth grrr Skeek!

Offline

#5 2006-08-24 17:45:15

WhiteDog
Member
From: Maine
Registered: 2005-09-07
Posts: 174

Re: there was a problem saving image data

i just tried chaning exisitng image and got an error stating need to chmod to 777 so I chmod to 777 then i tried again and then recieved a php error stating <code>
Warning: chmod(): Operation not permitted in /home/jwhitedo/public_html/c2h/textpattern/include/txp_image.php on line 412</code>. So i changed the file from 0755 to 0777 and still the error persisted

Last edited by WhiteDog (2006-08-24 17:55:50)


Grrr RRR nnndth grrr Skeek!

Offline

#6 2006-08-24 19:51:12

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: there was a problem saving image data

Can you tell us the user+group and permissions for both the image file and the directory that file is in?
And is it possible to create new images without problems?

Offline

#7 2006-08-25 04:54:22

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

Re: there was a problem saving image data

Okay, let me make sure I understand: your images folder – as entered in your advanced prefs – is chmoded to 777, right?

Offline

#8 2006-08-25 11:26:40

WhiteDog
Member
From: Maine
Registered: 2005-09-07
Posts: 174

Re: there was a problem saving image data

User is admin with all rights
yes the image folder is written to 777 and the images in folder are chmoded to 755
I can add new images with no problem but i cant change existing images

it was the image file i tried changing to 777 after i did that I got the php error

Last edited by WhiteDog (2006-08-25 14:24:55)


Grrr RRR nnndth grrr Skeek!

Offline

#9 2006-08-25 15:15:46

hcgtv
Archived Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: there was a problem saving image data

Take a look at the owner.group of the new images you add, then with your FTP program change the images you migrated over to be the same.

Offline

#10 2006-08-25 15:31:52

WhiteDog
Member
From: Maine
Registered: 2005-09-07
Posts: 174

Re: there was a problem saving image data

i just compared the new image properties to the old image properties. The new images are set to 777 and the old are set to 755, but when i change the old to 777 to match the new images I get this error Warning: chmod(): Operation not permitted in /home/jwhitedo/public_html/c2h/textpattern/include/txp_image.php on line 412


Grrr RRR nnndth grrr Skeek!

Offline

#11 2006-08-27 23:46:39

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

Re: there was a problem saving image data

Could be a number of things – filesystem permissions, mount options, PHP config, ACLs. But the gist of the error message is accurate: the operating system says Textpattern (or the PHP process or the Apache process) doesn’t have permission to use chmod on that file.

Regardless, the chmod warning is incidental. If images are working and visisble, there’s no need to worry about it.

Last edited by zem (2006-08-28 00:00:51)


Alex

Offline

#12 2006-08-30 15:06:44

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 700
Website Mastodon

Re: there was a problem saving image data

i am having a similar problem described (yet not answered) in this thread: http://forum.textpattern.com/viewtopic.php?id=18300

my image folder has permissions 777, the images have 757 (not 755, but this was autogenerated from textpattern…), though, and one image in question (id=1 / the replacement for the original divider.gif) does not show up in the admins image list anymore.

if i include the image in an article like
<code><txp:image id=“1” /></code>
or
<code><txp:image id=1 /></code>
i get an error in Production Status “testing” which looks like this:
<code>tag_error <txp:notice message=“malformed image tag” /> -> Textpattern Warning: unknown_tag</code>

all other images display well, don’t produce errors and they show up in the images list in the admin section.

sorry to mix this issue up again, but actually it seems, that there’s quirks, which render already uploaded images useless, when replacing them with the textpattern supplied method (in my case via <code>http://txp.kliklak.net/textpattern/index.php?event=image&step=image_edit&id=1</code>

when i go to this link i get an individual image editing page incl. the backend navigation, but no other content displayed other than the goto pulldown menu, the textpattern logo below, and below
Textpattern · 4.0.3
Logged in as myAdminName
Logout

weird.

the displayed error message on the frontend then seems to indicate, that the problem is to be found elsewhere, but not in the permissions (anymore).

uhm, any ideas?
i think WhiteDog’s and my issue are mutual at least.

Last edited by jayrope (2006-08-30 15:07:45)


A hole turned upside down is a dome, when there’s also gravity.

Offline

Board footer

Powered by FluxBB