Keyword

JParameter bug with plg_example &mod_k2_content

  • Coastal Views, LLC.
  • Coastal Views, LLC.'s Avatar Topic Author
  • Offline
  • New Member
More
12 years 11 months ago #57293 by Coastal Views, LLC.
JParameter bug with plg_example &mod_k2_content was created by Coastal Views, LLC.
Just did a fresh install of Joomla! 1.7.2 and K2 2.5 stable on my local server. So far everything seems to be working ok except the plg_example seems & mod_k2_content.

When I publish the mod_k2_content (with the plg_example enabled), and navigate to the page it is supposed to be displayed on, I get a blank white page. I turned on error reporting and this is the error I got:


Fatal error: Class 'JParameter' not found in /Volumes/Macintosh HD 2/jenniferormond/Documents/htdocs/jomsocial172/plugins/k2/example/example.php on line 79

If I disable the plg_example the mod_k2_content displays properly on the page.

I found the solution to the problem with the JParameter here:

forum.joomla.org/viewtopic.php?p=2526579

by adding the following code to the beginning of the example.php fixes the problem

jimport( 'joomla.html.parameter' );

Just wanted to post this in case anyone else was having the same problem

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


Powered by Kunena Forum