Keyword

Doubts about the new extra fields features v2.6.2

  • DINALVA ROMANCINI
  • DINALVA ROMANCINI's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 10 months ago #107199 by DINALVA ROMANCINI
Doubts about the new extra fields features v2.6.2 was created by DINALVA ROMANCINI
Hi... I'm really happy to have this new feature in K2: the possiblity to call certain extra fields without need of hacks... This is really useful! ;)

But I have a question:

Can I use the code to call a extra field in mod_k2_content? or mod_k2_tools?

Cause I put the php code to show an extra field (when the mod_k2_content show an article) but this give error, blank page.

This is strange, cause, if the module doesn't recognize the extra field, it should simply show nothing, but this error proves a possible bug in core...

Maybe this new code was created to work exclusively in the item view. But the documentation doesn't say anything about it.


Please, someone can clarify the question....?

Regards! And keep the excellent work!

PS: J 3.0.2 | K2 2.6.2 | Core SEF

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

More
11 years 10 months ago #107200 by william white
Replied by william white on topic Re: Doubts about the new extra fields features v2.6.2
First set error reporting on and see whats causing the error, it may be syntax or scoping issue

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

  • DINALVA ROMANCINI
  • DINALVA ROMANCINI's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 10 months ago #107201 by DINALVA ROMANCINI
Replied by DINALVA ROMANCINI on topic Re: Doubts about the new extra fields features v2.6.2
Hi William, thanks for the fast reply... so this is a bug? I have to post it in code.google.com/p/getk2/issues/list ?

Also the code is not working in category_item.php neither... This is a big problem for my overrides...

Hope to have a fix asap... thanks again! B)

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

  • DINALVA ROMANCINI
  • DINALVA ROMANCINI's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 10 months ago #107202 by DINALVA ROMANCINI
Replied by DINALVA ROMANCINI on topic Re: Doubts about the new extra fields features v2.6.2
Wlliam... I can't see this issue reported in the issue list

There are a lot of people with problems with extra-fields in the forum... Can I know if it's a real bug or i'm missing something???

BTW I try to activate the "show extra fields" in the mod_k2_content options, but the code gives error or blank page anyway.... :dry: only works in item.php

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

More
11 years 10 months ago #107203 by william white
Replied by william white on topic Re: Doubts about the new extra fields features v2.6.2
as i stated above
turn joomla error reporting on
goto site- global configuration - server tab - and set error reporting to high
reload the page
see if it reports an error so you can find what is confilcting.
I dont think its a bug, but something that confilcts

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

  • DINALVA ROMANCINI
  • DINALVA ROMANCINI's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 10 months ago - 11 years 10 months ago #107204 by DINALVA ROMANCINI
Replied by DINALVA ROMANCINI on topic Re: Doubts about the new extra fields features v2.6.2
Hi William... the error is this:

Fatal error: Using $this when not in object context in /home/d/mysite/www/templates/protostar/html/mod_k2_content/gastes/default.php on line 9

Regards!

BTW: The code is working fine in category_item.php

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

  • DINALVA ROMANCINI
  • DINALVA ROMANCINI's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 9 months ago #107205 by DINALVA ROMANCINI
Replied by DINALVA ROMANCINI on topic Re: Doubts about the new extra fields features v2.6.2
So... is this a bug or not? :dry:

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

  • DINALVA ROMANCINI
  • DINALVA ROMANCINI's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 8 months ago #107206 by DINALVA ROMANCINI
Replied by DINALVA ROMANCINI on topic Re: Doubts about the new extra fields features v2.6.2
So... is this a bug or not?

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

More
11 years 8 months ago #107207 by william white
Replied by william white on topic Re: Doubts about the new extra fields features v2.6.2
Using $this when not in object
means just what it says
have you modified or overriden the mod_k2_content?
if you have youve made and error in scoping the variables.
if you have not i would suggest back up , then install k2 over the top, and recreate the module.
if you still get the error, disable plugins one at a time and see if youve added something that may be confilicting....

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


Powered by Kunena Forum