"Athentication failed!" error for image field.

4 views
Skip to first unread message

GaVrA

unread,
Jul 7, 2010, 2:42:50 PM7/7/10
to Magic Fields
Im using "User Role Editor" to allow certain usergroups to have access
to certain pages. They only have basic rights like:

-read
-Edit published pages
-Hostels

The third is custom write panel i created with magic fields. Now,
everything works except image field.

This is how it looks like when a user from that usergroup logs in and
goes to edit his page:

http://i30.tinypic.com/2i8kjyb.jpg

When i log in(as an admin) everything works ok.

Also when i give that usergroup this abillity:

-Edit posts

All of a sudden it works. That special usergroup now can use image
fields to upload images.

Any idea whats going on?

GaVrA

unread,
Jul 11, 2010, 12:38:10 PM7/11/10
to Magic Fields
This is a bug in magic fields. Thanks to vladimir at shinephp.com for
pointing this out:

http://shinephp.com/community/topic/ure-and-magic-fields-problem?replies=7#post-53

Hunk

unread,
Jul 11, 2010, 1:58:22 PM7/11/10
to Magic Fields
thanks for report this bug and fix :-)

On Jul 11, 11:38 am, GaVrA <ga...@crtaci.info> wrote:
> This is a bug in magic fields. Thanks to vladimir at shinephp.com for
> pointing this out:
>
> http://shinephp.com/community/topic/ure-and-magic-fields-problem?repl...

GaVrA

unread,
Jul 11, 2010, 3:24:22 PM7/11/10
to Magic Fields
I would like to mention, if you use upload in that image field to
upload image from your pc everything works. But if you try to upload
picture via "URL" input field, it still brings up "Athentication
Error". Also, after that error pops up it gives me "Delete" link, as
if it uploaded the image, but the image is not shown.

Hunk

unread,
Jul 11, 2010, 4:38:09 PM7/11/10
to Magic Fields

GaVrA

unread,
Jul 11, 2010, 4:55:37 PM7/11/10
to magic-...@googlegroups.com
Ok, i just found another problem with these image fields. FYI i did edit RCCWP_GetFile.php and i am now able to paste url of the image, click upload and not get that error.

Now, if you are using normal image upload, aka uploading image from your PC, the image is uploaded and shown in write panel but when i click update, the page refreshes and then the image is gone.

For using "URL" input field to upload image it does the same. It downloads the image, then shows it but after clicking "Update" button the image is gone.

Im now checking my FTP server, to see if the image is even saved on the server.

GaVrA

unread,
Jul 11, 2010, 4:57:33 PM7/11/10
to Magic Fields
Yes, i can confirm that the image IS uploaded to the server.

On Jul 11, 10:55 pm, GaVrA <ga...@arvag.net> wrote:
> Ok, i just found another problem with these image fields. FYI i did edit
> RCCWP_GetFile.php and i am now able to paste url of the image, click upload
> and *not* get that error.
>
> Now, if you are using normal image upload, aka uploading image from your PC,
> the image is uploaded and shown in write panel but when i click update, the
> page refreshes and then the image is gone.
>
> For using "URL" input field to upload image it does the same. It downloads
> the image, then shows it but after clicking "Update" button the image is
> gone.
>
> Im now checking my FTP server, to see if the image is even saved on the
> server.
>
> On Sun, Jul 11, 2010 at 10:38 PM, Hunk <ing.ed...@gmail.com> wrote:
> > check this commit
> >http://github.com/hunk/Magic-Fields/commit/805a47e493d921bd52f53c0c98...

Hunk

unread,
Jul 11, 2010, 5:38:40 PM7/11/10
to Magic Fields
this work fine for me http://screencast.com/t/ZjhlNWEy

GaVrA

unread,
Jul 11, 2010, 5:50:24 PM7/11/10
to magic-...@googlegroups.com
Like i said, this is only happening with users in usergroups that have restricted permissions. When i log in with my account(admin) then i can do whatever i want.

Try here on my site:

http://www.backpackers.rs/acommodation/hostels/

on bottom left you have log in form:

username: belgrade
password: 123

it will redirect you back to that same page after login. Then go to this page:

http://www.backpackers.rs/acommodation/hostels/belgrade/

You should be able now to see link at very bottom of the content:

Izmenite sadržaj ove stranice.

http://www.backpackers.rs/wp-admin/post.php?post=654&action=edit

When that page opens up you will see image field called "Naslovna slika". Go ahead and try to upload an image there and hit update after.

Hunk

unread,
Jul 11, 2010, 7:38:51 PM7/11/10
to Magic Fields
check line 24 of RCCWP_Post.php

On Jul 11, 4:50 pm, GaVrA <ga...@arvag.net> wrote:
> Like i said, this is only happening with users in usergroups that have
> restricted permissions. When i log in with my account(admin) then i can do
> whatever i want.
>
> Try here on my site:
>
> http://www.backpackers.rs/acommodation/hostels/
>
> on bottom left you have log in form:
>
> username: belgrade
> password: 123
>
> it will redirect you back to that same page after login. Then go to this
> page:
>
> http://www.backpackers.rs/acommodation/hostels/belgrade/
>
> You should be able now to see link at very bottom of the content:
>
> Izmenite sadržaj ove
> stranice.<http://www.backpackers.rs/wp-admin/post.php?post=654&action=edit>
>
> http://www.backpackers.rs/wp-admin/post.php?post=654&action=edit
>
> When that page opens up you will see image field called "Naslovna slika". Go
> ahead and try to upload an image there and hit update after.
>
> On Sun, Jul 11, 2010 at 11:38 PM, Hunk <ing.ed...@gmail.com> wrote:
> > this work fine for mehttp://screencast.com/t/ZjhlNWEy

GaVrA

unread,
Jul 11, 2010, 8:05:04 PM7/11/10
to magic-...@googlegroups.com
RCCWP_GetDuplicate.php

line 4

RCCWP_GetFile.php

line 63

RCCWP_Post.php

line 24

RCCWP_removeFiles.php

line 7

RCCWP_upload.php

line 23

This really look bad to me. Imo all these files needs a fix. Just dont know what to do except comment out those lines...

Hunk

unread,
Jul 11, 2010, 9:58:44 PM7/11/10
to Magic Fields
all these changes have sent them to the development version

On Jul 11, 7:05 pm, GaVrA <ga...@arvag.net> wrote:
> RCCWP_GetDuplicate.php
>
> line 4
>
> RCCWP_GetFile.php
>
> line 63
>
> RCCWP_Post.php
>
> line 24
>
> RCCWP_removeFiles.php
>
> line 7
>
> RCCWP_upload.php
>
> line 23
>
> This really look bad to me. Imo all these files needs a fix. Just dont know
> what to do except comment out those lines...
>

GaVrA

unread,
Jul 11, 2010, 10:14:33 PM7/11/10
to magic-...@googlegroups.com
Im sorry but i dont really understand what that means. :)

David Valdez

unread,
Jul 11, 2010, 10:48:49 PM7/11/10
to magic-...@googlegroups.com
basically is to this issue is actually fixed in the development version :) 
--
David.
Reply all
Reply to author
Forward
0 new messages