xoops forums

flaggada

Friend of XOOPS
Posted on: 2013/1/3 16:02
flaggada
flaggada (Show more)
Friend of XOOPS
Posts: 20
Since: 2008/10/6
#1

Bug in last svn Publisher with permissions

Hello,

I've installed the last svn Publisher version, on xoops 2.5.5, with a thousand news, and it seems to be some issues on permissions.

As an admin, everythings goes fine, wheras another type of user (registered or non registered), it's not possible to go inside categories. They could see articles with the direct link, but they couldn't travel in the module. A permission error try to display (I say try because, there's a my-history error before).

I've tryed to find the issue, i've redefined all the permissions everywhere, and it seems to be something in the class file, but unfortunately, I'm not a php killer.

Whatever, thanks for your work, it's really a great job.

redheadedrod

Home away from home
Posted on: 2013/1/3 16:42
redheadedrod
redheadedrod (Show more)
Home away from home
Posts: 1296
Since: 2008/2/26
#2

Re: Bug in last svn Publisher with permissions

I believe there was discussion somewhere else on here that if you have a lot of groups and topics right now publisher may run out of memory causing permissions issues. Check your used memory and see if this is the case. If it is I thought I saw Trabis was considering different options but he is also a core developer now and is busy working on the core.

If you do a search elsewhere for publisher you can read up on the issue. I don't think it currently is resolved.

Rodney

trabis

Core Developer
Posted on: 2013/1/3 19:33
trabis
trabis (Show more)
Core Developer
Posts: 2268
Since: 2006/9/1 1
#3

Re: Bug in last svn Publisher with permissions

Quote:

flaggada wrote:
Hello,

I've installed the last svn Publisher version, on xoops 2.5.5, with a thousand news, and it seems to be some issues on permissions.


Thanks for testing publisher.
This issue was fixed on latest svn version. Please update.

flaggada

Friend of XOOPS
Posted on: 2013/1/4 8:58
flaggada
flaggada (Show more)
Friend of XOOPS
Posts: 20
Since: 2008/10/6
#4

Re: Bug in last svn Publisher with permissions

Hello, thanks for your quick answer

Just installed the new svn, and now, there is no error message, and we can travel through categories.

But it seems that all the permissions of read have been disabled. Permission of article take the advantage of categorie's permissions
i.e, when you're not the admin, you don't see any articles, even if you have the permission to see the category.
To see them, I must edit every articles and define permissions on the 3rd sheet. Quite a long work.

Thanks again

trabis

Core Developer
Posted on: 2013/1/4 18:56
trabis
trabis (Show more)
Core Developer
Posts: 2268
Since: 2006/9/1 1
#5

Re: Bug in last svn Publisher with permissions

Quote:

flaggada wrote:

To see them, I must edit every articles and define permissions on the 3rd sheet. Quite a long work.


It should be the opposite because I removed item permissions in publisher, there is only category permissions.
If you have access to a category you should have access to all items inside it.
I'll look to see if there is a bug or not.

trabis

Core Developer
Posted on: 2013/1/4 19:24
trabis
trabis (Show more)
Core Developer
Posts: 2268
Since: 2006/9/1 1
#6

Re: Bug in last svn Publisher with permissions

@flaggada

I detected a problem in the category page(perhaps also on blocks, did not test). It was not showing the articles list.
It should be fixed now on svn. Please test it(again).

flaggada

Friend of XOOPS
Posted on: 2013/1/4 19:48
flaggada
flaggada (Show more)
Friend of XOOPS
Posts: 20
Since: 2008/10/6
#7

Re: Bug in last svn Publisher with permissions

After the update... That's fixed, thanks a lot

flaggada

Friend of XOOPS
Posted on: 2013/1/8 15:12
flaggada
flaggada (Show more)
Friend of XOOPS
Posts: 20
Since: 2008/10/6
#8

Re: Bug in last svn Publisher with permissions

Hello

1 After another test, the problem was fixed in the defined categories but not in the modules/publisher/index.php page, where a blank page appears:

Fatal error: Call to a member function getVar() on a non-object in /home/www/web/modules/publisher/class/item.php on line 1611

2 Another thing is that when you defined the number of character to be shown in the latest news block, when you submit a summary with the item, it takes the summary text to display but don't apply the limitation of characters. If you don't write in the summary field, it will take the full text with the limitation...

3 The notation system doesn't apply the right number of stars, corresponding to the global note. Not very important...

Thanks

trabis

Core Developer
Posted on: 2013/1/9 22:20
trabis
trabis (Show more)
Core Developer
Posts: 2268
Since: 2006/9/1 1
#9

Re: Bug in last svn Publisher with permissions

@flaggada:
I could not reproduce number 3!

The other should be fixed now, please test it.

flaggada

Friend of XOOPS
Posted on: 2013/1/11 8:56
flaggada
flaggada (Show more)
Friend of XOOPS
Posts: 20
Since: 2008/10/6
#10

Re: Bug in last svn Publisher with permissions

For 3 it doesn't matter, 1 and 2 fixed, thanks a lot