[SOLVED]: No extra field is shown in backend

  • arkadoo
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 7 months ago #1832 by arkadoo
No extra field is shown in backend was created by arkadoo
Hello
I've setup 2 extra field groups and the associated to a category. Plugin is enabled in plugin manager but nothing.
Can you help me?
I use J3.4.1 and K2 2.6.9
I followed the advise for k2 2.6.7. adding this : else if(!key_exists('plugins', $array)) $array = ''; to line 221 but nothing

thanks
alberto

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

  • arkadoo
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 7 months ago #1833 by arkadoo
Replied by arkadoo on topic No extra field is shown in backend
Update :
After some hours I think the problem is this, rendered inside Helper in output of displayGroupFields function
Warning: Illegal string offset 'class' in /web/htdocs/www.mysite.it/home/plugins/k2/mefgfork2/jrcalendar.php on line 37
Warning: Illegal string offset 'class' in /web/htdocs/www.mysite.it/home/plugins/k2/mefgfork2/jrcalendar.php on line 38
Warning: Illegal string offset 'class' in /web/htdocs/www.mysite.it/home/plugins/k2/mefgfork2/jrcalendar.php on line 38
Warning: Illegal string offset 'class' in /web/htdocs/www.mysite.it/home/plugins/k2/mefgfork2/jrcalendar.php on line 37
Warning: Illegal string offset 'class' in /web/htdocs/www.mysite.it/home/plugins/k2/mefgfork2/jrcalendar.php on line 38
Warning: Illegal string offset 'class' in /web/htdocs/www.mysite.it/home/plugins/k2/mefgfork2/jrcalendar.php on line 38
I think this is related to a date, removing this Group with date fields all is good
do you have ideas?
thanks!

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

  • arkadoo
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 7 months ago #1834 by arkadoo
Replied by arkadoo on topic No extra field is shown in backend
BUG FOUND :
in mefgfork2.php (1.3.7) at row 596 change this line :
Code:
$output = JHTML::_('jrcalendar.calendar', $active, 'K2ExtraField_' . $extraField->id, 'K2ExtraField_' . $extraField->id, '%Y-%m-%d', $attributes);

with this :
Code:
$output = JHTML::_('jrcalendar.calendar', $active, 'K2ExtraField_' . $extraField->id, 'K2ExtraField_' . $extraField->id, '%Y-%m-%d', $arrayAttributes);

as described in jrcalendar.php the last param should be an array, not a string.

Problem solved. this is not dependent from joomla version or k2 version..
Suggestion about this fix ?
Thanks

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

More
10 years 7 months ago #1836 by mmmaug1977
Replied by mmmaug1977 on topic No extra field is shown in backend
Hello,

Is it possible to send the backend login to check the problem myself?

If yes, please use the contact us form, also send what I do to reproduce the problem please.

Regards

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

  • arkadoo
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 7 months ago #1837 by arkadoo
Replied by arkadoo on topic No extra field is shown in backend
Hello Mohamed thanks for your answer
Now this problem is solved, how can I do to reproduce again?
I had this error on 'non existing class' and I saw that in calling function the passed param was a string, not an array as expected from
Code:
$attribs['class'] = isset($attribs['class']) ? $attribs['class'] : 'input-medium';
in jrcalendar
To reproduce I should remove the rework..

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

More
10 years 7 months ago #1839 by mmmaug1977
Replied by mmmaug1977 on topic No extra field is shown in backend
Ok, thanks for the feedback.

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

Powered by Kunena Forum