Keyword

Trying to build a k2 plugin....

  • Aleksey Kovalev
  • Aleksey Kovalev's Avatar Topic Author
  • Offline
  • New Member
More
14 years 4 weeks ago #87477 by Aleksey Kovalev
Trying to build a k2 plugin.... was created by Aleksey Kovalev
Hi there,I've been trying to build a k2 plugin, but I get a "Class "JLoader" not found fatal error when I enable plugin. Any ideas why that might be happening? I'm using the K2 api - JLoader::register('K2Plugin', JPATH_ADMINISTRATOR.DS.'components'.DS.'com_k2'.DS.'lib'.DS.'k2plugin.php'); at the beginning of the php file, and the plugin is registered in the k2 folder.

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

More
14 years 4 weeks ago #87478 by william white
Replied by william white on topic Trying to build a k2 plugin....
This may help, if you havent already downloaded it
community.getk2.org/forum/topics/example-k2-plugin-for

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

  • Aleksey Kovalev
  • Aleksey Kovalev's Avatar Topic Author
  • Offline
  • New Member
More
14 years 4 weeks ago #87479 by Aleksey Kovalev
Replied by Aleksey Kovalev on topic Trying to build a k2 plugin....
Thanks for the quick reply. Yes, I've been following that example plugin, but when I try to run my plugin script, it just stops at the third line of code, not knowing what JLoader class is for some reason.

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

  • Aleksey Kovalev
  • Aleksey Kovalev's Avatar Topic Author
  • Offline
  • New Member
More
14 years 4 weeks ago #87480 by Aleksey Kovalev
Replied by Aleksey Kovalev on topic Trying to build a k2 plugin....
Well, of course it wouldn't recognize JLoader. It showed me a blank page on the front page, so I tried commenting out the direct access protection and running the file directly, and it doesn't recognize the JLoader class that way. I'll keep debugging my code. Sorry, I'm just beginning with building joomla extensions.

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

More
14 years 4 weeks ago #87481 by william white
Replied by william white on topic Trying to build a k2 plugin....
Use the global setting "error reporting" to highest, it may tell you the line number and file name the error is coming from instesad of the white page

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


Powered by Kunena Forum