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

TOPIC:

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

  • vlemos
  • vlemos's Avatar Topic Author
  • Away
  • Elite Member
  • Elite Member
  • Posts: 295
  • Thank you received: 41
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.

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

Last edit: by vlemos.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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

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

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

  • vlemos
  • vlemos's Avatar Topic Author
  • Away
  • Elite Member
  • Elite Member
  • Posts: 295
  • Thank you received: 41
Joomla 2.5.14

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

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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

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

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

  I found "cook" two days ago. Played around with it for a day and then within a day got rid of two legacy applications in IBM Lotus Domino Notes and replaced them with "cook". It was really easy. A piece of cake. Actually it was even easier than cooking. Cooking involves more work than developing with "cook". What can I say about "cook"? Great application great price for what it delivers great forum with a lot of information and fast responses active and friendly community fast forward moving development cycle So what should I say "Monsieur Le Cook"? Keep the good work going it will lead to success. Having become a paying member in the words of Edith Piaf may I say ..... non rien de rien ... je ne regrette rien. Vive La France.
FK (JED)
         

Get Started