Argument #2 is not an array from NSFW plugin

Support requests, bug reports, etc. go here. Dedicated servers / VDS hosting only
reibuehl
Bear Rating Trainee
Bear Rating Trainee
Posts: 25
Joined: 17 May 2013, 19:37

Argument #2 is not an array from NSFW plugin

Postby reibuehl » 03 Jun 2013, 11:12

Hi,

I have enabled the NSFW plugin that comes with tt-rss 1.7.9. I have defined a filter that assigns the tag "nsfw" to some feeds and I can see that the tags get added to posts in these feeds. However the plugin writes errors like this in the error log:

Code: Select all

E_WARNING (2)   plugins/nsfw/init.php:39   array_intersect(): Argument #2 is not an array


Did I define the tag somehow wrongly or what could cause this?

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Argument #2 is not an array from NSFW plugin

Postby fox » 04 Jun 2013, 15:34

Looks like nsfw plugin got broken because of some internal changes in tt-rss. This should fix it:

https://github.com/gothfox/Tiny-Tiny-RS ... 68c4aaf3c6

reibuehl
Bear Rating Trainee
Bear Rating Trainee
Posts: 25
Joined: 17 May 2013, 19:37

Re: Argument #2 is not an array from NSFW plugin

Postby reibuehl » 04 Jun 2013, 20:25

The fix works. Thanks for your help!

reibuehl
Bear Rating Trainee
Bear Rating Trainee
Posts: 25
Joined: 17 May 2013, 19:37

Re: Argument #2 is not an array from NSFW plugin

Postby reibuehl » 04 Jun 2013, 21:00

I was too fast, sorry. It looks like it works only for articles that have "nsfw" as the only tag. Articles with additional tags seem to stay untouched.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Argument #2 is not an array from NSFW plugin

Postby fox » 05 Jun 2013, 09:22

I'll try to take a look at this later today.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Argument #2 is not an array from NSFW plugin

Postby fox » 05 Jun 2013, 10:28



Return to “Support”

Who is online

Users browsing this forum: No registered users and 5 guests