#1 2014-01-15 11:52:20

Joergen
Translation Team
Germany
2011-09-30
114

(fixed) Message:"Notice: Undefined index: community..." after some...

Hallo,

after some changes in my Piwigo (User deleted, Alben deleted and moved).

I got now an error message (above left):

Notice: Undefined index: community_enabled in /web/vhosts/fc-vhs-kaarst.de/public/plugins/community/main.inc.php on line 182

This message is on all sites for visitors and users, see yourself: http://www.fc-vhs-kaarst.de/

As Admin I dont have this message!

What can it be?

Gruß
Jörgen

Last edited by Joergen (2014-01-29 23:24:46)

Offline

 

#2 2014-01-15 12:15:45

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: (fixed) Message:"Notice: Undefined index: community..." after some...

Hello

do you use Community plugin ? if not, remove it

what are your versions (Piwigo and plugin) ?

did you deleted the album "Community" ?

Offline

 

#3 2014-01-15 14:26:54

Joergen
Translation Team
Germany
2011-09-30
114

Re: (fixed) Message:"Notice: Undefined index: community..." after some...

Hi,

yes use Community plugin "needed".

Both newest Version:
Piwigo 2.5.3
Community 2.5.d

As far as I know there was never a "community" album.
But I deleted the Admin (user) album.

Last edited by Joergen (2014-01-15 14:28:13)

Offline

 

#4 2014-01-16 09:55:53

Joergen
Translation Team
Germany
2011-09-30
114

Re: (fixed) Message:"Notice: Undefined index: community..." after some...

No further Idea?

Where can I start searching?

Offline

 

#5 2014-01-16 11:16:37

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: (fixed) Message:"Notice: Undefined index: community..." after some...

no

i notify the author

Offline

 

#6 2014-01-16 13:17:23

Joergen
Translation Team
Germany
2011-09-30
114

Re: (fixed) Message:"Notice: Undefined index: community..." after some...

Thanks

Can I deinstall and reinstall Community Plugin? Or do I lose all settings for the User?

Offline

 

#7 2014-01-16 13:27:01

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: (fixed) Message:"Notice: Undefined index: community..." after some...

you will lose settings, but not photos

Offline

 

#8 2014-01-18 11:33:19

Joergen
Translation Team
Germany
2011-09-30
114

Re: (fixed) Message:"Notice: Undefined index: community..." after some...

Hi,

I notice something more, that properly can help to identify the problem.

When I am Locked in as Admin, the Notice message is not shown.
And in the menu both Picture upload links are seen.
See pic sc1.

When I am Locked in as User, the Notice message is shown (as seen also as visitors).
And in the menu one Picture upload links is gone.
See pic sc2

Last edited by Joergen (2014-01-18 11:33:51)

Offline

 

#9 2014-01-23 23:04:43

Joergen
Translation Team
Germany
2011-09-30
114

Re: (fixed) Message:"Notice: Undefined index: community..." after some...

@plg, any Idea what I can do?

Offline

 

#10 2014-01-24 06:06:01

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7239

Re: (fixed) Message:"Notice: Undefined index: community..." after some...


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#11 2014-01-24 08:17:59

Joergen
Translation Team
Germany
2011-09-30
114

Re: (fixed) Message:"Notice: Undefined index: community..." after some...

Yes activated.
But I think this is just a effect from the main problem of the community plugin (or something around it).

Offline

 

#12 2014-01-29 11:30:30

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13858

Re: (fixed) Message:"Notice: Undefined index: community..." after some...

I don't understand how $user_permissions['community_enabled'] can not be set.

Can you edit file plugins/community/include/functions_community.inc.php, line 47, before:

Code:

    return $_SESSION['community_user_permissions'];

insert

Code:

echo 'Community uses permissions from session<br>';
echo '<pre>'; print_r($_SESSION['community_user_permissions']); echo '</pre>';

Offline

 

#13 2014-01-29 12:13:52

Joergen
Translation Team
Germany
2011-09-30
114

Re: (fixed) Message:"Notice: Undefined index: community..." after some...

Thank you for taking care.

Yes I can edit files. Just for my understanding, I should add this code...

echo 'Community uses permissions from session<br>';
echo '<pre>'; print_r($_SESSION['community_user_permissions']); echo '</pre>';

before line 47...

    return $_SESSION['community_user_permissions'];

Offline

 

#14 2014-01-29 12:17:02

Joergen
Translation Team
Germany
2011-09-30
114

Re: (fixed) Message:"Notice: Undefined index: community..." after some...

Done

Offline

 

#15 2014-01-29 12:37:09

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13858

Re: (fixed) Message:"Notice: Undefined index: community..." after some...

OK, you can remove inserted code. I have copied the debug trace.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact