Welcome, Guest
Username: Password: Remember me

TOPIC: [CLOSED] Missing argument 2 for JApplication::getUserStateF

[CLOSED] Missing argument 2 for JApplication::getUserStateF 13 Feb 2012 14:11 #1266

  • BTB300
  • BTB300's Avatar
  • Offline
  • Moderator
  • Posts: 415
  • Thank you received: 132
  • Karma: 47
Missing argument 2 for JApplication::getUserStateFromRequest(), called in/............/......../controllers/TABLE NAME THAT I AM HAVING TROUBLE WITH.php on line 57 and defined in /........./libraries/joomla/application/application.php on line 622

I dont see this in sand box but i do see it in the live site

It appears on two of my admin

list views and the edit item view

have rebuilt project and re-downloaded and uninstalled component and installed several times

i have even deleted the databases associated with this component

and still get the problem

I guess its something with the configuration / user access setting

in the singular view i can not view any lists - logged in as a super administrator

but in similar tables i can edit details and view lists just fine

THE CODE ON LINE #57
55. // Register the filtering request variables
56. $app->getUserStateFromRequest( $this->namespace . 'filter_membership_group', 'filter_membership_group', '', 'int' );
57. $app->getUserStateFromRequest( $this->namespace . 'filter_' );
Last Edit: 13 Feb 2012 14:41 by BTB300. Reason: Added the code
The administrator has disabled public write access.

Re: Missing argument 2 for JApplication::getUserStateF 26 Feb 2012 10:31 #1448

  • iconvisual
  • iconvisual's Avatar
  • Offline
  • Senior Member
  • Keen Joomla! 1.7 Developer
  • Posts: 53
  • Thank you received: 5
  • Karma: 1
Bingo. Me too. It happened a few days ago - and some how I resolved it. (Silly me).
Now it's happening again. I 'did' have a Search Filter in place, added about 6 fields to search on, didn't work at all.
So I removed the Search Filter entirely - and bang. There's the error message:
Warning: Missing argument 2 for JApplication::getUserStateFromRequest(), called in /home2/iconvmco/public_html/crmtest/components/com_eaglehomescrm/controllers/leads.php on line 58 and defined in /home2/iconvmco/public_html/crmtest/libraries/joomla/application/application.php on line 622

Doesn't matter if I'm a logged in user or no, still happens.

From what BTB300 has said I'm guessing the problem lies here:
57. $app->getUserStateFromRequest( $this->namespace . 'filter_' );
- it's missing (as the error says) the 2nd parameter.

Jocelyn?

Regards,

Edward.
Keen Joomla! and PHP/MySQL developer. Excited about J-Cook.
The administrator has disabled public write access.

Re: Missing argument 2 for JApplication::getUserStateF 27 Feb 2012 12:18 #1457

  • BTB300
  • BTB300's Avatar
  • Offline
  • Moderator
  • Posts: 415
  • Thank you received: 132
  • Karma: 47
Hey Hey! Much the same as what i was seeing when i posted...
- happens on two admin views.
- i dont see it in sandbox.
- I see it on live site
- didnt see it on local install (windows7 64 bit, apache...).
- brought live site down and mysql dbs to local --> the problem moved to the local install
- yes a number of search fields in the filter
- uninstall / reinstall didnt change

- yes somehow fixed it
- and now its back

happens only on my second and third tables in the in admin views
this time only have one search parameter in the filter
The administrator has disabled public write access.

Re: Missing argument 2 for JApplication::getUserStateF 08 Mar 2012 23:00 #1530

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
I still can't see it, It's difficult to work in the dark !!!

But It is possible it has been solved now because I cleaned a bit the engine at this point.
I am not sure anyway.
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: BTB300

Re: Missing argument 2 for JApplication::getUserStateF 20 Mar 2012 15:31 #1695

  • BTB300
  • BTB300's Avatar
  • Offline
  • Moderator
  • Posts: 415
  • Thank you received: 132
  • Karma: 47
solved???
have not seen this issue for a while now so i guess we can call it closed??
The administrator has disabled public write access.
Time to create page: 0.102 seconds

Get Started