Welcome, Guest
Username: Password: Remember me

TOPIC: Error::prepareTable(&$table) - & is missing

Error::prepareTable(&$tabl​e) - & is missing 13 Sep 2013 20:29 #11076

  • vlemos
  • vlemos's Avatar
  • Online
  • Elite Member
  • Posts: 295
  • Thank you received: 41
  • Karma: 21
Hello Admin

FYI

Strict standards: Declaration of XxxCkModelXxxxxxitem::prepareTable() should be compatible with JModelAdmin::prepareTable(&$table) in
...\components\com_xxx\models\xxxxxitem.php on line 37
protected function prepareTable($table)
{
	.
	.
	.
}


should be
protected function prepareTable(&$table)
{
	.
	.
	.
}

Regards
v



EDITED
ALSO:
public function test(SimpleXMLElement $element, $value, $group = null, JRegistry $input = null, JForm $form = null)
{
	.
	.
	.
}

Should be:
public function test(&$element, $value, $group = null, &$input = null, &$form = null)
{
	.
	.
	.
}

I believe this says that you are currently working on the builder. Good luck.
Last Edit: 13 Sep 2013 21:09 by vlemos.
The administrator has disabled public write access.

Error::prepareTable(&$tabl​e) - & is missing 13 Sep 2013 21:10 #11077

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Wich Joomla version ?

Strict standards are respected for the last Joomla release.
In some case it is impossible to fit in strict standards (in your particular case), because Joomla has rewrited some of its functions declarations.
prepareTable is one of them I think.
Coding is now a piece of cake
The administrator has disabled public write access.

Error::prepareTable(&$tabl​e) - & is missing 15 Sep 2013 01:59 #11079

  • vlemos
  • vlemos's Avatar
  • Online
  • Elite Member
  • Posts: 295
  • Thank you received: 41
  • Karma: 21
Joomla 2.5.14
The administrator has disabled public write access.

Error::prepareTable(&$tabl​e) - & is missing 15 Sep 2013 11:08 #11081

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
This is the reason why you get the issue.
With the declaration you give, it will produce the same error when running on 3.x
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.053 seconds

Get Started