Support Offline : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

Simplicity ii error

Featured Lock Resolved
Installed Simplicity ii. When I preview the site, I get the following error:

Fatal error: Class 'JParameter' not found in /home/makanza/public_html/templates/shaper_simplicity_ii/lib/php/sp.template.helper.php on line 30

Not sure what it means or how to fix it. Any advice?

12 Answers

Kawshar Ahmed - Senior Staff

More than a month ago #Permalink
Add this line in sp.template.helper.php in function getParam() {}

jimport( 'joomla.html.parameter' );

Francis

More than a month ago #Permalink
Hi,
I too installed simplicity II and when previewing I get :

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in .../templates/shaper_simplicity_ii/lib/php/sp.template.helper.php on line 16

Any help will be appreciated, thanks guys.

Kawshar Ahmed - Senior Staff

More than a month ago #Permalink
Its required php 5. Check your php version.

Jane

More than a month ago #Permalink
b]kowshar wrote:[/b]
Add this line in sp.template.helper.php in function getParam() {}

jimport( 'joomla.html.parameter' );


Worked like a charm. Thanks so much!

Jane

Kawshar Ahmed - Senior Staff

More than a month ago #Permalink
follow this directory templates/shaper_simplicity_ii/lib/php/sp.template.helper.php

Kawshar Ahmed - Senior Staff

More than a month ago #Permalink
Just replace old public function getParam() function with that one.
	
public function getParam(){
$app = & JFactory::getApplication();
$strparam = null;
$strini = JPATH_THEMES.DS.$app->getTemplate().DS.'params.ini';
jimport('joomla.filesystem.file');
jimport( 'joomla.html.parameter' );
if (JFile::exists($strini)) {
$strparam = JFile::read($strini);
} else {
$strparam = null;
}
return new JParameter($strparam);
}

Julian

More than a month ago #Permalink
I have the same problem as above on Line 16 not line 30. Error comes up BEFORE the getParam function.

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' ... Line 16

Kawshar Ahmed - Senior Staff

More than a month ago #Permalink
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' ... Line 16

You need to upgrade your php version to php5.

JoseYAZ

More than a month ago #Permalink
Add this line in sp.template.helper.php in function getParam() {}

jimport( 'joomla.html.parameter' );

It's ok! and for 1and1, is necesary:

Added the following line to the top of the .htaccess file nad everything worked perfectly:

AddType x-mapp-php5 .php


There are no replies made for this post yet.
Be one of the first to reply to this post!

Leaderboard (30 days)

Paul Frankowski

Paul Frankowski

Total Accepted Answers: 111
Toufiq

Toufiq

Total Accepted Answers: 67
Mehtaz Afsana Borsha

Mehtaz Afsana Borsha

Total Accepted Answers: 26
Ofi Khan

Ofi Khan

Total Accepted Answers: 12
Rashida Rahman

Rashida Rahman

Total Accepted Answers: 9

120

Templates

310719

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us