Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

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

  • BTB300
  • BTB300's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Posts: 415
  • Thank you received: 132
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_' );

Please Log in or Create an account to join the conversation.

Last edit: by BTB300. Reason: Added the code

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

  • iconvisual
  • iconvisual's Avatar
  • Offline
  • Senior Member
  • Senior Member
  • Keen Joomla! 1.7 Developer
  • Posts: 53
  • Thank you received: 5
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.

Please Log in or Create an account to join the conversation.

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

  • BTB300
  • BTB300's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Posts: 415
  • Thank you received: 132
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

Please Log in or Create an account to join the conversation.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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 following user(s) said Thank You: BTB300

Please Log in or Create an account to join the conversation.

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

  • BTB300
  • BTB300's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Posts: 415
  • Thank you received: 132
solved???
have not seen this issue for a while now so i guess we can call it closed??

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.063 seconds

This Component Generator is the REAL component generator. This tool is very easy to use and in a matter of minutes I was building a fully working extension. I was amazed with the end result... worth every cent...
Griiettner (JED)

         

Get Started