Welcome, Guest
Username: Password: Remember me

TOPIC: [FIXED] Call to undefined method::setModel

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

  • andypooz
  • andypooz's Avatar
  • Offline
  • New Member
  • Posts: 18
  • Thank you received: 2
  • Karma: 0
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#######################################
Last Edit: 08 Mar 2012 12:01 by andypooz. Reason: found a solution
The administrator has disabled public write access.
Time to create page: 0.062 seconds

Get Started