Support Forums

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

Sharon

More than a month ago #Permalink
Thanks for directing me here.
Tried, but I could not find the file in the template files. can you direct me?
Thanks! :)

Kawshar Ahmed - Senior Staff

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

Sharon

More than a month ago #Permalink
I could not find the function in that file.
could you direct me to where it is?
or is there a possibility to get a fixed file?
Many Thanks... and sorry for asking so many questions.
I like the template and would love to use it...

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);
}

Sharon

More than a month ago #Permalink
Thank you.
I uninstalled the version I downloaded from joomla24 and re-installed a version from your site and then the file contained the function.
(in the other version the function was not in that file).
it now works.
:)

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)

Sifat

Sifat

Total Accepted Answers: 101
Toufiq

Toufiq

Total Accepted Answers: 87
Paul Frankowski

Paul Frankowski

Total Accepted Answers: 86
Rifat Wahid Alif

Rifat Wahid Alif

Total Accepted Answers: 2
FUTURECLIENT

FUTURECLIENT

Total Accepted Answers: 2

115

Templates

295672

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