insert images "You are not authorized"

Please report bugs here!

Moderator: Thorsten

Post Reply
diplomsiedler
Posts: 38
Joined: Thu Feb 19, 2004 11:55 am
Contact:

insert images "You are not authorized"

Post by diplomsiedler »

Hi,

I updated on V 1.6.0 and now my authors can't insert images. They get "You are not authorized". What' wrong?

Regards
Marc
ENCYCLOPÆDIA CATANICA - http://www.siedeln.de/faq
Thorsten
Posts: 15614
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

did you run the update?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
diplomsiedler
Posts: 38
Joined: Thu Feb 19, 2004 11:55 am
Contact:

Post by diplomsiedler »

Of course
ENCYCLOPÆDIA CATANICA - http://www.siedeln.de/faq
Thorsten
Posts: 15614
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

I'll check it.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
Posts: 15614
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

it works for me here. Which rights do the users have?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
diplomsiedler
Posts: 38
Joined: Thu Feb 19, 2004 11:55 am
Contact:

Post by diplomsiedler »

Nearly all rights. 00011100111111111111011 :?

They don't have:

Benutzer hinzufügen
Benutzer editieren
Benutzer löschen
Log ansehen
Adminlog einsehen
Sicherung wiederherstellen

Marc
ENCYCLOPÆDIA CATANICA - http://www.siedeln.de/faq
Thorsten
Posts: 15614
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

works here, too...

Can you give me access to your FAQ?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Docstone
Posts: 26
Joined: Thu Jun 08, 2006 10:21 am

Post by Docstone »

Hi there!

Got the same Troubles by updating to 1.6.1.

Imagemanager doesn't upload any Picture, on refresh it says an error:

Code: Select all

Notice: Undefined variable: auth in C:\WDB_NEU\faq\admin\editor\plugins\ImageManager\images.php on line 96
You are not authorized.
In This Line the code

Code: Select all

if ($auth && $permission["addatt"]) {
should check, if the user is allowed to add attachments? if yes, the user is definitly so:

Code: Select all

User (User1) 11111111111111111111111
greets,
Docstone
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Post by matteo »

Hi,
locate, backup and open the file [PATH_TO_PMFINSTALL]/admin/editor/plugins/ImageManager/images.php and, please, add this debug code just above the line 96:

Code: Select all

...
// Debug code - START
print '$auth: '.$auth.'<br />';
print '$permission["addatt"]: '.$permission["addatt"].'<br />';
exit();
// Debug code - END
if ($auth && $permission["addatt"]) {
...
This is what I expect you'll see in the main image manager window when you'll try to upload a new image by clicking on the "Insert/Modify Image" button in the editor toolbar:

Code: Select all

$auth: 1
$permission["addatt"]: 1
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
Docstone
Posts: 26
Joined: Thu Jun 08, 2006 10:21 am

Post by Docstone »

Its exactly what you expected me to see:


Code: Select all

$auth: 1
$permission["addatt"]: 1

greets
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Post by matteo »

Hi,
if so, currently I miss the reason why you got from your logs:

Code: Select all

Notice: Undefined variable: auth in C:\WDB_NEU\faq\admin\editor\plugins\ImageManager\images.php on line 96
This is the rule: IF $auth is undefined THEN it is correct to read "You are not authorized." BECAUSE the AND condition fails.

But in your case $auth variable seems to be correctly defined since you can regularly read:

Code: Select all

$auth: 1
I need some time to think at the reason why this could be possible...
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
Docstone
Posts: 26
Joined: Thu Jun 08, 2006 10:21 am

Post by Docstone »

Hi there!

i just want to know, if there's something new on this issue?

greets,
Doc Stone
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Post by matteo »

Hi Docstone,
nothing new at the moment.
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
berlina
Posts: 4
Joined: Sat Dec 30, 2006 4:42 pm

Post by berlina »

[ENGLISH]
Hi Guys,

give it something news on this issue?
Now, i run in the same Problem.
My authors can insert pictures, uploaded them but can't read them.

If I try to insert a new image per upload, i see from my last uploaded file only the filename, but not the picture.
The only pictures i can see are the phpmyfaq pictures.

I don't find any reason at this moment :(
I can't give you a link to my FAQ, because it runs in a intranet.




[DEUTSCH]
Hi, gibt es hier irgendwas neues zu dem Thema?
Heute habe ich das gleiche Problem bekommen, Autoren können Bilder uploaden, aber sie werden nicht angezeigt.
Wenn man erneut ein Bild hochlädt, dann sehe ich im Vorschaufenster nur den Dateinamen des Bildes aber nicht das Bild ansich.
Die einzigen Bilder die ich sehen kann, sind die die von hause mit dem script mitkommen.

Einen Link zu meinem installierten Script kann ich euch leider nicht geben, denn es läuft im Intranet.


MY SYSTEM:

Windows 2003
IIS 6
PHP Version 5.2.1RC4-dev (ISAPI)
MySQL-Client-Version: 5.0.22
phpMyFAQ 1.6.8
Post Reply