Argument 7 not passed to function

Support requests, bug reports, etc. go here. Dedicated servers / VDS hosting only
dariottolo
Bear Rating Trainee
Bear Rating Trainee
Posts: 27
Joined: 05 Jul 2014, 18:57

Argument 7 not passed to function

Postby dariottolo » 11 Jun 2016, 15:13

Hi all,

I am using the lastest git updated version of TT-Rss, on PHP 5.6.20 and PostgreSQL 9.4.7.

Attached is the dump of my "ttrss_error_log" table .

At some random times I find the entry in subject.

Any idea what might be the cause?

Thank you in advance.

Regards

Dario
Attachments
dump.zip
(1.32 KiB) Downloaded 70 times

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

Re: Argument 7 not passed to function

Postby fox » 11 Jun 2016, 15:55


dariottolo
Bear Rating Trainee
Bear Rating Trainee
Posts: 27
Joined: 05 Jul 2014, 18:57

Re: Argument 7 not passed to function

Postby dariottolo » 11 Jun 2016, 17:07



I think I edited /include/functions correctly.

Will report if it works or not.

So far no error in the logs.

dariottolo
Bear Rating Trainee
Bear Rating Trainee
Posts: 27
Joined: 05 Jul 2014, 18:57

Re: Argument 7 not passed to function

Postby dariottolo » 12 Jun 2016, 12:51

Just a quick update. I am pretty sure that Feed Debugger triggers the error.

If I run fD on any feed, with or without forcing refetch and rehash, once it completes, there is a new error in the error_log.

As you previously wrote, it does not break anything, so I will empty the logs every now and then.

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

Re: Argument 7 not passed to function

Postby fox » 12 Jun 2016, 13:47

doesn't happen here :(

ManuelW
Bear Rating Trainee
Bear Rating Trainee
Posts: 10
Joined: 30 Apr 2013, 18:16

Re: Argument 7 not passed to function

Postby ManuelW » 20 Oct 2016, 09:25

I get this error too on php5.5 and php5.6

E_WARNING (2) include/functions.php:359 func_get_arg(): Argument 7 not passed to function

It is spamming my error log

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

Re: Argument 7 not passed to function

Postby fox » 20 Oct 2016, 09:45

you might want to check your php configuration if @ (suppress warnings) operator is for some reason not working correctly on your install

as far as i can see there's no bug to be fixed here in tt-rss

e: if there's a stack trace post it here

toomanyaccounts
Bear Rating Trainee
Bear Rating Trainee
Posts: 5
Joined: 22 Dec 2016, 14:07

Re: Argument 7 not passed to function

Postby toomanyaccounts » 22 Dec 2016, 14:11

Same problem, can't figure out why.

Could this be an issue with php7?

Using almost vanilla configuration (just activated some extra extensions, nothing exotic).

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

Re: Argument 7 not passed to function

Postby fox » 22 Dec 2016, 14:40

i'm on php7 and i don't get this warning

please investigate if you can

e: it would also help extremely if you could just play with @ operator in that location where error occurs to see if some placement magically fixes it (lol php)

toomanyaccounts
Bear Rating Trainee
Bear Rating Trainee
Posts: 5
Joined: 22 Dec 2016, 14:07

Re: Argument 7 not passed to function

Postby toomanyaccounts » 22 Dec 2016, 21:44


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

Re: Argument 7 not passed to function

Postby fox » 22 Dec 2016, 21:59

@ prefix is basically "no warnings on this please" and yet for some people it doesn't work, no idea why

toomanyaccounts
Bear Rating Trainee
Bear Rating Trainee
Posts: 5
Joined: 22 Dec 2016, 14:07

Re: Argument 7 not passed to function

Postby toomanyaccounts » 26 Dec 2016, 01:46

Still works fine with the changed code, no more log spam, haven't noticed any side-effect, so I guess that did the trick.

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

Re: Argument 7 not passed to function

Postby fox » 26 Dec 2016, 16:07

it works i guess but its way less readable this way

i would prefer the offending php setting or w/e to be identified although i guess not this time

toomanyaccounts
Bear Rating Trainee
Bear Rating Trainee
Posts: 5
Joined: 22 Dec 2016, 14:07

Re: Argument 7 not passed to function

Postby toomanyaccounts » 31 Dec 2016, 15:09


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

Re: Argument 7 not passed to function

Postby fox » 31 Dec 2016, 16:00

please elaborate on why have you decided to make these changes and how is error suppression being disabled because i don't get it

1. error_reporting() returns an integer, why add === there?
2. handler function returns a boolean as per php documentation (set_error_handler()) which you are changing to 0 for some reason

e: i mean the example of the handler function is literally right there in the docs ffs


Return to “Support”

Who is online

Users browsing this forum: No registered users and 7 guests