Summary | edit picture results in a not found photo |
Queue | Ansel |
Queue Version | 1.1.1 |
Type | Bug |
State | Not A Bug |
Priority | 1. Low |
Owners | mrubinsk (at) horde (dot) org |
Requester | michael (at) bigmichi1 (dot) de |
Created | 05/10/2010 (5507 days ago) |
Due | |
Updated | 05/22/2010 (5495 days ago) |
Assigned | 05/10/2010 (5507 days ago) |
Resolved | 05/22/2010 (5495 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Not A Bug
var_dump($image_id);
results in 0
Util::getPost()? That is incorrect and is the cause of what you are
experiencing.
var_dump($image_id);
results in 0
$image_id = Util::getPost('image');
var_dump($image_id);
results in NULL
you put a var_dump($image_id); after line 21 (the line that assigns
image_id the value from the url parameter).
when i have a picture opened the edit link is:
https://xxxxxxx/ansel/image.php?gallery=31&image=733&page=0&actionID=editimage
here we have the right image number
but than all links in on the edit page have:
https://xxxxxxx/ansel/image.php?gallery=31&slug=&image=0&page=0&year=0&month=0&day=0&actionID=previewrotate270
put a var_dump($image_id); after line 21 (the line that assigns
image_id the value from the url parameter).
when i have a picture opened the edit link is:
https://xxxxxxx/ansel/image.php?gallery=31&image=733&page=0&actionID=editimage
here we have the right image number
but than all links in on the edit page have:
https://xxxxxxx/ansel/image.php?gallery=31&slug=&image=0&page=0&year=0&month=0&day=0&actionID=previewrotate270
or
https://xxxxxxx/ansel/image.php?gallery=31&slug=&image=0&page=0&year=0&month=0&day=0&actionID=setwatermark&share=
only the last two have the right number:
https://xxxxxxx/ansel/image.php?gallery=31&image=733&page=0&actionID=cropedit&nocache=6rqfxhtod8el
and also the a have a question sign here on the edit page
bug 9002makes the problem, iincluded this fix for image.php,
$image_id = (int)Util::getPost('image');
maybe thats wrong on my system?
*faces*, not the image itself, as you describe you are doing.
Still cannot reproduce. The errors in your your log indicate an issue
with retrieving the Ansel_Image object from storage. You are going to
have to dump the error and find out what the exact error is that is
being returned. Try putting something like:
Horde::logMessage(print_r($image, true), __FILE__, __LINE__, PEAR_LOG_ERR);
right before one of the lines in image.php that you are getting errors
on in your log.
bug 9002makes the problem, iincluded this fix for image.php,
$image_id = (int)Util::getPost('image');
maybe thats wrong on my system?
2. upload a picture to it
3. click on the picture
4. click on edit
=> picture with question sign
any link doesn't work except the back to gallery
in my php logs i found this one, maybe its related to it:
[11-Mai-2010 08:36:35] PHP Fatal error: Call to undefined method
PEAR_Error::rotate() in
/home/apache/horde-webmail-1.2.6-old/ansel/image.php on line 526
[11-Mai-2010 08:36:42] PHP Fatal error: Call to undefined method
PEAR_Error::flip() in
/home/apache/horde-webmail-1.2.6-old/ansel/image.php on line 533
[11-Mai-2010 08:36:45] PHP Fatal error: Call to undefined method
PEAR_Error::getDimensions() in
/home/apache/horde-webmail-1.2.6-old/ansel/image.php on line 335
Assigned to Michael Rubinsky
State ⇒ Feedback
please post a step-by-step to reproduce, starting with uploading a new
image?
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Queue ⇒ Ansel
Summary ⇒ edit picture results in a not found photo
Type ⇒ Bug
Priority ⇒ 1. Low
https://xxxx/ansel/image.php?gallery=15&image=436&page=1&actionID=editimage
to ratoate a picture i got only a question mark, and when i klick on
cancel i got photo not found