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

TOPIC:

[FIXED] Call to undefined method::setModel 06 Mar 2012 14:35 #1510

I have a pretty serious error occuring when I generate my component in the sandbox or installed on my site. My component is large (1000 points)

The first 5 admin views work as expected - Good

An admin view one of my views is not showing properly when accessed from the horizontal submenu in the main component pane- the buttons and filter are nhot working, however, when accessed through the fly-out submenu off the top Components->Com Mine->View it works as expected. The link URL on the problem menu is missing the &layout=#### part.

FIXED: I just needed to make sure it was the default layout

NOT FIXED:

One of my admin lists is not showing at all, and is throwing a 500 server error whether accessed through the top menu or the component menu.

If you can access my component, it is LOCKr and then the 'Manage Levels' option. I checked my error log and it says:

PHP Fatal error: Call to undefined method LockrViewLevels::setModel() in /home/sites/netamity.com/public_html/dev/lockr/libraries/joomla/application/component/controller.php on line 677, referer: netamity.com/dev/lockr/administrator/ind...om_lockr&view=sports

Lockr is the name of my component
Levels is the name of a table

Please help. I have tried recreating the views and this has not worked. Why would half of the component work and the other half not????

Your help is appreciated

FIXED#######################################

Not sure what caused this issue, but to assist anyone who comes across the same issue, I did fix it:

For any views that are throwing errors, try recreating the table with a slightly different name, then recreate the views for that table. I did this and then removed the older table along with it's views and it sorted it. It might have been a quirk caused by my endless tinkering with things.

/FIXED#######################################

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

Last edit: by andypooz. Reason: found a solution
  • Page:
  • 1
Time to create page: 0.066 seconds

Amazing Tool !
And only tool I know that allows complete Scaffolding in terms of component creation. It really saves loads of time (actually much more than that). Simple architecture enables quick and painless changes at any time. Code is clean and consintent. It's just... what's the word... neat! :) Great work! You should definetely try this one!

pi_wo (JED)
         

Get Started