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.105 seconds

For starters it's just so easy to design an app in a way that I'm used to i.e. database first then views followed by customization. The fork system is pure brilliance from a developer standpoint as I can override things and still add and update my projects with minimal effort! Truly amazing to be able to build components in Joomla using incremental refinement without having to do everything by hand. Thanks for the great tool! I am so much more productive now than ever and I can't imagine building components any other way!!!!
Dave (Forum)

Get Started